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?