AppleScript editor cannot save .scpt file

applescriptfile

I've created a simple AppleScript .scpt file, using TextEdit.

If I now open it with AppleScript editor, I can run it. But when I try to modify and save it, I get the following error:

enter image description here

It's frustrating that such a basic operation has got me completely stuck.

What is going wrong?

Best Answer

This is happening because .scpt extension is used for compiled scripts, just use .applescript extension and it will work just file.

Yet another example of the stupid coded error messages.