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
- AppleScript.Compile
- AppleScript.Execute
- AppleScript.GetPropertyName
- AppleScript.LastError
- AppleScript.LastErrorPosition
- CNContact.SetValue
Release notes
- Version 14.0
- Fixed AppleScript.Compile to clear last error for AppleScript.LastErrorMessage function.
Example Databases
- OS Scripting/AppleScript Print with Preview
- OS Scripting/AppleScript Properties
- OS Scripting/Email Text from Apple Mail
Blog Entries
- MBS FileMaker Plugin, version 13.6pr1
- Read and write notes in Contacts
- New in MBS FileMaker Plugin 13.2
- Send text message from FileMaker via iMessage
This function is free to use.
Created 18th August 2014, last changed 31st October 2016