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


Queries the number of properties in the script.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AppleScript 4.2 Yes No Yes, macOS only No No
MBS( "AppleScript.PropertyCount"; Script ID )   More


Parameter Description Example value
Script ID The Id of the script you want to execute. This ID returned by the AppleScript.Compile function. 1


Returns number or error.


Queries the number of properties in the script.
Lasterror is set.


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.

MBS FileMaker Plugins