Name

run script

Syntax

run script aliasOrFile [with parameters list]

Description

Tells the top-level script of the compiled script file or text file aliasOrFile to run, optionally handing it the list as the parameters for its explicit run handler, and returns the result.

Example

run script alias "myDisk:myFile"

Get AppleScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.