Reputation: 37238
I created an apple script and placed on my desktop. I first saved it as .app and when double clicked it ran code successfully and closed. However in the time it would run it would show an icon in my dock.
So to avoid that i thought lets save it as a run only script. So I did that but now when I double click it, it doesn't run the script, it just says 'it was saved as read only and cannot open'.
Upvotes: 1
Views: 908
Reputation:
You can edit the Contents/Info.plist
(easy with Xcode) located in the app bundle and add a Application is agent (UIElement)
- Key with value YES
to it. Now it shouldn't show in the Dock when running.
The raw text to include is:
<key>LSUIElement</key>
<true/>
Upvotes: 2
Reputation: 89509
Change your run only script's extension from ".scpt
" to ".app
" and you should be able to run the thing.
More information can be found in this closely related question.
Upvotes: 1