How do you interupt a script.
Posted: Sat Feb 09, 2008 2:33 am
I have a a script that call a chain of scripts that are embedded in the stack scripts of many stacks.
On my first script, I open the file dialog box and user has to click on a file to import. If they click on the file and press open, everything continues and works great.
If they click on the "cancel" button, it just closes the dialog and still continues.
How do you stop the script and put in a line of code that says something like:
if it is "cancel" then go to cd "home"
stop script "open Files" -- I know this is not a legal line of code..lol.
Thanks you so much
On my first script, I open the file dialog box and user has to click on a file to import. If they click on the file and press open, everything continues and works great.
If they click on the "cancel" button, it just closes the dialog and still continues.
How do you stop the script and put in a line of code that says something like:
if it is "cancel" then go to cd "home"
stop script "open Files" -- I know this is not a legal line of code..lol.
Thanks you so much