How do I make an AppleScript file into a Mac App?
Solution 1:
In Script Editor, select File > Save As and set File Format to Application. (In Mojave and later, the Save As choice in the File menu is not visible unless you hold down the Option key.)
Open Bundle Contents drawer and see the applet.icns file, copy your icon to that.
See "Saving a script as an application" in Script Editor help.
Solution 2:
In El Capitan at least you can use osacompile
, e.g:
osacompile -o MyScript.app MyScript.scpt
Solution 3:
to export an an application, do File -> Export and set the drop-down list to "Application"
Solution 4:
Open the information window for your Application cmd+i
and drag your icon file (icns
format) onto the top left default icon.