macOS – How to Create an Executable File for AppleScript

applescriptterminal

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.

Best Answer

  1. Write your AppleScript in Script Editor.

  2. Choose FileSave and select Application as File Format.

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