Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Force a running applescript to stop, pause or quit

Friends:

Lets say I have an Applescript that is running and I need to stop it. Force quit is not an option, because the script will be well on its way before Force quit responds. Is there a keyboard combination or other technique to force the running Applescript to stop, pause or quit?

Thanks amigos,

Migs

Dual 2 GHz PowerPC G5/ 1.5 Gb SDRAM, Mac OS X (10.5.1)

Posted on Feb 22, 2008 9:09 AM

Reply
Question marked as Best reply

Posted on Feb 22, 2008 12:23 PM

Not really, short of logging out or shutting down. You could include occasional dialogs throughout the script which gave the user the opportunity to quit.

Or you could save your script as a stay-open application and include a quit handler:

on quit
continue quit
end quit

This will let you use the standard Command-Q shortcut to quit the script application, and you could incorporate clean-up routines in the quit handler which would be less messy than just stopping in mid-flow.

H
3 replies
Question marked as Best reply

Feb 22, 2008 12:23 PM in response to Miguel Reznicek

Not really, short of logging out or shutting down. You could include occasional dialogs throughout the script which gave the user the opportunity to quit.

Or you could save your script as a stay-open application and include a quit handler:

on quit
continue quit
end quit

This will let you use the standard Command-Q shortcut to quit the script application, and you could incorporate clean-up routines in the quit handler which would be less messy than just stopping in mid-flow.

H

Force a running applescript to stop, pause or quit

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.