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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
AppleScript.Compile
Compiles the script and returns the Script ID.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| AppleScript | 1.0 | Yes | No | No | Yes, macOS only | No |
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
Blog Entries
Created 18th August 2014, last changed 31st October 2016
AppleScript.Close - AppleScript.Execute
Feedback: Report problem or ask question.
Links
MBS FileMaker blog