1

I stupidly ran an AppleScript script on my Mac running macOS Mojave and the script is running in an endless loop. I thought something obvious like pressing the Esc key would end the program. However, neither the Esc key or anything like CTRL + Z etc works.

How can I interrupt the loop and end the script using a hotkey or similar method?

I tried to click the program but it won't let me unless the loop of the keystrokes stop.

NOTE: I need to save my work so I can't shut it down.

1

https://support.apple.com/en-il/guide/script-editor/scrptedshtcut/mac

The answer is indicated here. Command + period (.)

2
  • 2
    Please write the answer here not just a link – mmmmmm Jul 30 '19 at 18:38
  • 1
    You can also kill (force quit) Script Editor and, provided it autosaves your documents, the scripts will be restored to the last compiled versions when you reopen. This is sometimes useful when the keyboard shortcut isn’t viable which is the case in a few possible situations that aren’t uncommon. – CJK Jul 31 '19 at 11:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .