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.
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.