Application Folder
Nicolas Cueto
nicolas_cueto at yahoo.com
Thu Sep 1 06:56:25 EDT 2005
Hello,
If you want to learn on your own, then have a look in the
documentation under "directory" (a.k.a., "defaultFolder").
But if you're just/also after a cut-and-paste solution for finding
the directory of a stack/stand-alone -- especially a solution
that works whether or not your working in the development
environment -- then here's the bit of script I always rely on:
put the itemDel into tSavedDel
set the itemDel to "/"
put the effective fileName of this stack into
tStackfolderPlusStackname
delete the last item of tStackfolderPlusStackname
put tStackfolderPlusStackname into tStackFolder
set the itemDel to tSavedDel
Cheers,
Nicolas Cueto
niconiko language school
More information about the use-livecode
mailing list