Standalone problems

Ken Ray kray at sonsothunder.com
Fri Jul 14 10:13:44 EDT 2006


On 7/14/06 6:51 AM, "Bob Hartley" <rev at armbase.com> wrote:


> How would I make that work for wherever the user has it in their HardDrive
> (windows only I'm afraid so should be easier) I remember that I has short
> filepath problems when I tried this before.

Bob, what's worked for me is a trick I learned from Trevor Devore: make a
substack of your mainstack called "Externals" (or the equivalent), set the
"externals" of that substack to the relative path from the directory you
want to use as your main directory (I'll call it "<maindir>" here), and then
when the mainstack loads, set the defaultFolder (directory) to <maindir>,
and then execute:

  start using stack "Externals"

This loads the Externals substack as a library, and activates the loading of
the externals themselves. Additionally, since the substack is now a library,
the externals are available to all of your stacks as they are running (which
is usually what one wants). And to unload the externals, simply "stop using"
the Externals substack.

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list