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.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

AppleScript.PropertyCount

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 )

Parameters

Parameter Description Example value
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 FileMaker tutorial videos