Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

AppleScript.Compile

Compiles the script and returns the Script ID.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AppleScript 1.0 Yes No Yes, macOS only No No
MBS( "AppleScript.Compile"; Script Text )   More

Parameters

Parameter Description Example value
Script Text This is the text of the script to compile "3 + 4"

Result

Returns ScriptID or error.

Description

Compiles the script and returns the Script ID.
You can use the Script ID to run the script using the AppleScript.Execute function. The compiled script is stored in memory. This is useful if you have large script that needs to be run over and over again.

Examples

Compile a script

MBS( "AppleScript.Compile" ; $Applescript )

See also

Created 18th August 2014, last changed 31st October 2016


AppleScript.Close   -   AppleScript.Execute

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins