Externally reffed-off

Richmond Mathewson richmondmathewson at gmail.com
Wed Jan 10 07:13:52 EST 2018


I thought I'd "play a game", so I set up a new stack with 2 buttons:

[Mac OS]

Button 1 contained this script:

onmouseUp
     setthedefaultfoldertospecialfolderpath("resources"
endmouseUp

and Button 2 contained this script:

onmouseUp
   putthedefaultFolder
endmouseUp

I clicked on Button 1 and then on Button 2

and got this in the Message Box:

/Users/richmondmathewson/LiveCode/LiveCode Indy 
8.1.8.app/Contents/Tools/Toolset

So, feeling "really daring" I made a third button, "Button 3" (surely not?)
containing this script:

onmouseUp
     setthedefaultfoldertoitem 1 to-5 oftheeffectivefilenameofthis stack
endmouseUp

then clicked Button 3 followed by Button 2, and got this in the Message Box:

/Users/richmondmathewson/LiveCode/LiveCode Indy 
8.1.8.app/Contents/Tools/Toolset

so, obviously " setthedefaultfoldertoitem 1 to-5 
oftheeffectivefilenameofthis stack"

is useless.

Richmond.


On 10/1/2018 1:32 pm, Klaus major-k via use-livecode wrote:
> set the defaultfolder to specialfolderpath("resources")




More information about the use-livecode mailing list