All functions   Mac OS X   Windows   Crossplatform   Components   New in version: 1.0   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   2.0  

Applescript.LastErrorMessage

Component: Applescript
Mac OS X: Works
Windows: Does nothing

MBS("Applescript.LastErrorMessage")

Parameters

none

Description

Any AppleScript Errors that are not trapped using “try” blocks, will abort the AppleScript. AppleScript Compile errors are also reported here. This function is useful for error trapping your scripts.

Examples

Get the Last Applescript Error as text

MBS( "Applescript.LastErrorMessage")

Feedback: Report problem or ask question.