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.PropertyCount
Queries the number of properties in the script.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| AppleScript | 4.2 | Yes | No | No | Yes, macOS only | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Script ID | The Id of the script you want to execute. This ID returned by the AppleScript.Compile function. | 1 |
Result
Returns number or error.
Description
Queries the number of properties in the script.Lasterror is set.
Examples
Compiles code and query property count:
Set Variable [ $scriptID; Value:MBS( "AppleScript.Compile"; AppleScript Properties::AppleScriptCode ) ]
Set Variable [ $count; Value:MBS( "AppleScript.PropertyCount"; $scriptID) ]
Set Variable [ $r; Value:MBS( "AppleScript.Close"; $scriptID) ]
See also
Created 18th August 2014, last changed 31st October 2016
AppleScript.LastErrorMessage - AppleScript.Run
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins