Last active
November 30, 2022 11:47
-
-
Save AndyPiddock/4a445ecf9fe99ef91df47d4af8180fe1 to your computer and use it in GitHub Desktop.
LiveCode: get the path and file name of the running stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--To get the path and file name | |
--the effective fileName of this stack | |
--To get just the path this works... | |
set the itemDelimiter to "/" | |
put (item 1 to -2 of the effective fileName of this stack) & "/" into tMyPath | |
--To incude the stack file name | |
set the itemDelimiter to "/" | |
get the fileName of this stack | |
set the defaultFolder to item 1 to -2 of it | |
put it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment