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?

  • To which folder/directory are you trying to save it to? – nohillside May 22 '14 at 9:01
  • to ~/Desktop/Foo/ – P i May 22 '14 at 9:34
  • I assume the folder exists and you have write access. Did you try another folder? Or creating a simple text file and store it there? – nohillside May 22 '14 at 9:46
  • Thanks, I got it to work by creating a new file, pasting the contents in, saving. Still not sure why it won't save a document created by another editor. – P i May 22 '14 at 9:51
  • 6
    I was facing the same problem. Essentially, both you and me are creating non-compiled .scpt files by hand when this is a compiled file format (contrary to .applescript). Lri gives the right answer here. – user36018 Oct 18 '14 at 15:19

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.

You must log in to answer this question.

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