You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Stop Script Editor from autosaving uncompilable scripts

I'm seeing a bug in Script Editor Autosave in which it tries to autosave scripts continually. This fails because the script cannot compile, then I have to cancel the autosave. In addition, Autosave does not know it is autosaving, so if it does compile it throws an error dialog that the script can't be saved because it was saved by another application. I can then choose "Save anyway" etc. It's really wrecking my Applescripting.


What's the solution?

Posted on Jan 22, 2023 1:22 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 23, 2023 7:21 AM

There is no specific feature in Apple's Script Editor that controls autosave. That is a system wide setting controlled from System Preferences/Settings that Apple's applications detect if configured. When disabled, no applications will autosave and you will know that because the red traffic light accumulates a black dot in it until you manually save the application's content.


In Monterey and previous, System Preferences > General > [ ✓ ] Ask to keep changes when closing documents.


The only time Script Editor autosave rears its head with me is when I am writing AppleScript/Objective-C code in Script Editor and it tells me it failed to autosave the script. That only appears briefly over the toolbar and does not present a dialog I need to dismiss. There is the open-ended trial of LateNight Software's Script Debugger that I fall back on and it can work in concert with the revived :macscripter.net.

1 reply
Question marked as Top-ranking reply

Jan 23, 2023 7:21 AM in response to Gnarlodious

There is no specific feature in Apple's Script Editor that controls autosave. That is a system wide setting controlled from System Preferences/Settings that Apple's applications detect if configured. When disabled, no applications will autosave and you will know that because the red traffic light accumulates a black dot in it until you manually save the application's content.


In Monterey and previous, System Preferences > General > [ ✓ ] Ask to keep changes when closing documents.


The only time Script Editor autosave rears its head with me is when I am writing AppleScript/Objective-C code in Script Editor and it tells me it failed to autosave the script. That only appears briefly over the toolbar and does not present a dialog I need to dismiss. There is the open-ended trial of LateNight Software's Script Debugger that I fall back on and it can work in concert with the revived :macscripter.net.

Stop Script Editor from autosaving uncompilable scripts

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