Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries the number of properties in the script.

Component Version macOS Windows Linux Server iOS SDK
AppleScript 4.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "AppleScript.PropertyCount"; Script ID )   More


Parameter Description Example
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

This function checks for a license.

Created 18th August 2014, last changed 31st October 2016

AppleScript.List - AppleScript.Run