Terminal Icon

Running AppleScript scripts from Terminal

You can run AppleScript scripts from Terminal by using the osascript command.

osascript scriptname 

In this example “scriptname” is the name of the AppleScript you want to run.

To run an AppleScript script from Terminal:

Enter the following in the Terminal window:

osascript scriptname 

In this example, "scriptname" is the name of the AppleScript script you want to run.

For more information on the osascript command, see the osascript man page by entering “man osascript” in the Terminal window.

For more information about AppleScript, see the Apple AppleScript website.


Related Topics

AppleScript

Open

man page for osascript

AppleScript website