Error running read only Script

Hello, when double clicking on any script I have made or the examples that came with the mac either the script is open by the script editor and not ran, if they are in the drop down menu they work fine. If they are saved as a run only script I get an error message: “Unable to read the file because the script is not editable (it was saved as run-only).” when I double click on them.

Hi, pierreg.

That’s the correct behaviour. If you want a saved script to run when you double-click it, you have to save it as an application. There’s a pop-up menu called “File Format:” (on English-language systems) in the “Save As…” dialog. You can select “Application” from there.

If you check the “Run Only” box, the script will be saved without its source text and you won’t be able to read or edit the file. Don’t do that unless you’ve also saved a version that isn’t run only! :slight_smile:

You know somtimes I get so frustrated I think I try every possibility, but I end up skipping one and make myself look like an idiot in front of everyone.

Thank you,

“Basic research is what I’m doing when I don’t know what I’m doing”
- Wernher von Braun

Model: iMac G5 1.8 20" 2GB DDR
AppleScript: ?
Browser: Safari 412.5
Operating System: Mac OS X (10.4)

I just spent a whole night writting a new script and saved it as run only by mistake without putting the source somewhere!
Am I screwed now?

Damn that sucks…