Delete Preferences file
Posted: Sun Feb 08, 2015 12:47 pm
Hi,
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):
and in the button for deleting the Preferences stack is:
When the Preferences file gets deleted and the stack is about to close I'm getting of course an error because the Preferences file is not there anymore: execution error at line 493 (Chunk: can't find stack), char 25
How to get it working properly?
keram
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 closeStackCode: 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 mouseUpHow to get it working properly?
keram