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


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" )




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.


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