Platforms to show: All Mac Windows Linux Cross-Platform

Back to AppleScriptErrorMBS class.

AppleScriptErrorMBS.AppName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The name of the application.

Value is "" if no application is used (e.g. on compiling).
(Read and Write property)

AppleScriptErrorMBS.AppSerial as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The application serial number.

Nil if no application is used.
You can create a ProcessMBS class using this serial.s
(Read and Write property)

AppleScriptErrorMBS.BriefMessage as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The brief error message.
Example
dim ASErr as AppleScriptErrorMBS
MsgBox "Details: " + ASErr.BriefMessage

(Read and Write property)

AppleScriptErrorMBS.Errorcode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The error code.
Example
dim a as new AppleScriptMBS

a.Compile "hello"
a.Execute

MsgBox str(a.Error.Errorcode) // -2753

(Read and Write property)

AppleScriptErrorMBS.ErrorCodeAvailable as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
whether the error code is known in the ErrorCode property.
Example
dim a as new AppleScriptMBS

a.Compile "hello"
a.Execute

MsgBox str(a.Error.ErrorCodeAvailable)

The error code property may be 0, but still there may be an error.
(Read and Write property)

AppleScriptErrorMBS.Message as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The error message.
Example
dim a as new AppleScriptMBS

a.Compile "hello"
a.Execute

MsgBox a.Error.Message

(Read and Write property)

AppleScriptErrorMBS.RangeAvailable as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
whether the rangestart and rangeend properties have valid values.
Example
dim a as new AppleScriptMBS

a.Compile "hello"
a.Execute

MsgBox str(a.error.RangeAvailable)+": "+str(a.error.RangeStart)+"-"+str(a.error.RangeEnd)

(Read and Write property)

AppleScriptErrorMBS.RangeEnd as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The end of the source text range.
Example
dim a as new AppleScriptMBS

a.Compile "hello"
a.Execute

MsgBox str(a.error.RangeAvailable)+": "+str(a.error.RangeStart)+"-"+str(a.error.RangeEnd)

(Read and Write property)

AppleScriptErrorMBS.RangeStart as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Apple Script MBS MacClassic Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The start of the source text range.
Example
dim a as new AppleScriptMBS

a.Compile "hello"
a.Execute

MsgBox str(a.error.RangeAvailable)+": "+str(a.error.RangeStart)+"-"+str(a.error.RangeEnd)

(Read and Write property)

The items on this page are in the following plugins: MBS MacClassic Plugin.


The biggest plugin in space...