Re: "Autoload in AddOns" doesn't load?
- To: mathgroup at smc.vnet.net
- Subject: [mg38799] Re: "Autoload in AddOns" doesn't load?
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Mon, 13 Jan 2003 04:11:36 -0500 (EST)
- References: <avm420$n82$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Borut, A flexible way - if necessary, put a file init.m in the folder Autoload Suppose that you have a .m file with code in it. Suppose that <<abc will load this file. Put <<abc into init.m. and your file will be loaded Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565 - "Borut L" <gollum at email.si> wrote in message news:avm420$n82$1 at smc.vnet.net... > Helo, I have a bit of a problem with auto-loading my code. > > I've put a directory MyProcedures in Mathematica/4.2/AddOns/Autoload > directory, and into it a file Quickie.m and a directory Kernel with a > decleration file init.m. Now, in file Quickie a function MakeAGif is > declared, which works ok when starting Mathematica. > > MakeAGif[name_String, dir_String, src_] := > ( > SetDirectory[dir]; > Export[name, src, "GIF", > ConversionOptions -> { > "Transparency" -> RGBColor[1, 1, 1], > "Disposal" -> Background, > "Loop" -> True} > ] // Timing > ); > > There is also a variable animeClosePlay declared, which should be used > 'post-ani', ie "animation generator" // animeClosePlay, but this does not > work! > > animeClosePlay:= > ( > SelectionMove[EvaluationNotebook[], All, GeneratedCell]; > FrontEndTokenExecute["OpenCloseGroup"]; > FrontEndTokenExecute["SelectionAnimate"]; > ) > > > I guess my understanding of what is acctually happening here, lacks > something. > > Help me please. > > > Borut Levart > Slovenia > > >