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

AppleScript.LastError

Returns the last error code.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AppleScript 1.0 Yes No Yes, macOS only No No

MBS( "AppleScript.LastError" )

Parameters

none

Description

Returns the last error code.
Any AppleScript Errors that are not trapped using "try" blocks, will abort the AppleScript. Also returns AppleScript compile errors. This function is useful for error trapping your scripts.

Examples

Get Last Error

MBS( "AppleScript.LastError" )

See also


AppleScript.GetPropertyValue   -   AppleScript.LastErrorMessage

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins