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

AppleScript.LastErrorMessage

Returns the last error message.

Component Version macOS Windows Linux Server iOS SDK
AppleScript 1.0 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "AppleScript.LastErrorMessage" )

Parameters

none

Description

Returns the last error message.
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")

See also

Release notes

Example Databases

Blog Entries

This function is free to use.

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


AppleScript.LastError - AppleScript.LastErrorPosition

💬 Ask a question or report a problem