I'm sure that this is very simple but I cannot figure how to do it:
On closing the stack I'm saving all the preferences in a file like this (in the stack script):
Code: Select all
on closeStack
set the cCurrentView of stack gPrefsFile to gCurrentView
......
......
save stack gPrefsFile
close stack gPrefsFile
end closeStack
Code: Select all
on mouseUp
answer question "Are you sure you want to reset all your Preferences ?" with OK and Cancel
if it is Cancel then exit to top
else delete file gPrefsFile
answer "All your Preferences have been reset. Please restart the app."
## what to put here to bypass the closeStack command in the stack script?
end mouseUp
How to get it working properly?
keram