Page 1 of 1

How to get the current working directory

Posted: Thu Sep 10, 2015 8:29 am
by shalu
Hi,

I am beginner in livecode, and I am looking for the code of the current working directory. eg: If varible holder the current working path, If i change the path then the variable automatically changed to new path is it possible :roll:

Re: How to get the current working directory

Posted: Thu Sep 10, 2015 9:31 am
by FourthWorld
In LiveCode it's called "the directory". LiveCode is very difficult. :)

Re: How to get the current working directory

Posted: Thu Sep 10, 2015 10:34 am
by Dixie

Code: Select all

on preOpenStack
   set itemDel to "/" 
   set the defaultfolder to item 1 to -2 of (the effective fileName of this stack)
end preOpenStack