AppleScript.LastErrorPosition
-----------------------------

Queries position of error in source text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AppleScript](component_AppleScript.md) | [13.2](newinversion132.md) | ✅ 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

- [AppleScript.LastErrorMessage](AppleScriptLastErrorMessage.md)

### Release notes

- **Version 13.2**
    - Added [AppleScript.LastErrorPosition](https://www.mbsplugins.eu/AppleScriptLastErrorPosition.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 13.2](https://www.mbsplugins.de/archive/2023-05-17/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.2pr1](https://www.mbsplugins.de/archive/2023-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[AppleScript.LastErrorMessage](AppleScriptLastErrorMessage.md) - [AppleScript.List](AppleScriptList.md)

[HTML Version](AppleScriptLastErrorPosition.shtml)