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

AppleScript.LastErrorPosition

Queries position of error in source text.

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

Parameters

none

Result

Returns empty, number or error.

Description

Queries position of error in source text.
If no position was saved as last error, we return empty value.
Otherwise we return text position of the compile error.

See also

Release notes

Blog Entries

This function is free to use.

Created 31st March 2023, last changed 31st March 2023


AppleScript.LastErrorMessage - AppleScript.List