Benches macOS

3

Force a running applescript to stop, paus…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    HD

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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

  2. 0

    Miguel Reznicek

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks HD. I was thinking of stopping an application that I didn't write.-Migs

  3. 0

    red_menace

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Depending on what the script is doing, pressing command-period will cancel it.