setting the default folder to the folder where the stack is..

Sjoerd Op 't Land sjoerdoptland at mac.com
Thu Dec 13 16:42:01 EST 2001


Devin Asay wrote/ schreef:

> At 7:44 AM -0800 12/13/01, Niklas wrote:
>> How do you set the default folder to the same folder
>> where the stack is?
>> I suppose its just to use "the filename of this stack"
>> and remove the filename..?
>> I am using the starterkit. so if its possible to do it
>> with two statements, that would be grand!
>> /Niklas
> 
> I often put this function into my stack script to provide a simple
> way to get the path to the current folder:
> [snip]
With your solution, it would still cost Niklas some lines in his stack
script. Another solution would be:

  set itemDel to "/"
  set the directory to item 1 to -2 of the fileName of this stack

(Have used the starter kit for some years, so... ;-)

Hope this helps.

Regards, / Groeten,
Sjoerd




More information about the use-livecode mailing list