I'm stuck... I've got a Mainstack plus a card. On a button that gets the directory I have the following code
Code: Select all
on mouseUp
ClearVariables
local tFolder
answer folder "Please choose folder"
put it into tFolder
if there is no folder tFolder then exit mouseUp
put tFolder into field "Folder"
put listFiles(currentFolder()) into field "Result"
set the cFolderDirectory of this stack to field "Folder"
focus on fld "Result"
end mouseUp