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.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


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


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


Returns ScriptID or error.


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.


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.

MBS Xojo Plugins