home ~ socials ~ projects ~ rss

Run An AppleScript From The Command Line

September 2021

Use the osascript to run an AppleScript from the command line

For example:

osascript hello_world.scpt

Which works with a script like this saved from Script Editor

return "Hello, World"
end of line
Share link:
https://www.alanwsmith.com/en/20/eo/qj/ne/?run-an-applescript-from-the-command-line