How to create an executable file for an AppleScript? I want to create an executable file that when run will send a popup. I have the code for the popup

osascript -e 'tell app "Finder" to display dialog "message"'

but don't know how to create an executable file.
Write your AppleScript in Script Editor.


Choose File → Save and select Application as File Format.




This gives you an .app which will run your AppleScript when opened.