setting the defaultPath with dynamic values
Posted: Wed Aug 28, 2013 5:28 pm
I have a need to open a specific folder path, looking in the dictionary I could not find an exact example of how this should appear.
There are examples of different uses, but none that explain the defaultPath method, at least from what I read.
source dictionary
answer file "Select a file to delete:"
answer files "Select the files you wish to process:"
answer file "Input:" with "/Macintosh HD/"
answer file (field "Prompt") with type "LiveCode Stacks|rev|RSTK"
answer files "Select the images you wish to view:" with type "JPEG Images|jpg|JPEG" \
I tried several methods but they all result in the same default path.
What happens is the standard dialog does not appear, as expected but appears as the default path which is users desktop.
So for example the user has to navigate, this way, desktop,user,folder1,folder2,file,
Are there any other methods of setting the defaultPath where I could can open a folder in a set location without having the user to navigate through several layers of folders and paths each time?
There are examples of different uses, but none that explain the defaultPath method, at least from what I read.
source dictionary
answer file "Select a file to delete:"
answer files "Select the files you wish to process:"
answer file "Input:" with "/Macintosh HD/"
answer file (field "Prompt") with type "LiveCode Stacks|rev|RSTK"
answer files "Select the images you wish to view:" with type "JPEG Images|jpg|JPEG" \
I tried several methods but they all result in the same default path.
Code: Select all
on mouseUp
local tStartDirectory
get tDirectory //tDirectory is set as a global
put it into tStartDirectory
answer file "Select a file" with tStartDirectory
end mouseUp
So for example the user has to navigate, this way, desktop,user,folder1,folder2,file,
Are there any other methods of setting the defaultPath where I could can open a folder in a set location without having the user to navigate through several layers of folders and paths each time?