Skip to content

Instantly share code, notes, and snippets.

@AndyPiddock
Last active November 30, 2022 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyPiddock/4a445ecf9fe99ef91df47d4af8180fe1 to your computer and use it in GitHub Desktop.
Save AndyPiddock/4a445ecf9fe99ef91df47d4af8180fe1 to your computer and use it in GitHub Desktop.
LiveCode: get the path and file name of the running stack
--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