Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
11.0
11.1
11.2
11.3
11.4
11.5
12.0
12.1
12.2
12.3
Statistic
FMM
Blog
AppleScript.Compile
Compiles the script and returns the Script ID.
Component | Version | macOS | Windows | Linux | Server | iOS SDK | License |
AppleScript | 1.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No | Paid |
MBS( "AppleScript.Compile"; Script Text ) More
Parameters
Parameter | Description | Example |
---|---|---|
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
- AppleScript.Close
- AppleScript.Execute
- AppleScript.GetPropertyName
- AppleScript.GetPropertyValue
- AppleScript.PropertyCount
- AppleScript.Run
- AppleScript.SetPropertyValue
Created 18th August 2014, last changed 15th February 2022
AppleScript.Close - AppleScript.Execute
Feedback: Report problem or ask question.
