Platforms to show: All Mac Windows Linux Cross-Platform

Back to OSAScriptMBS class.

OSAScriptMBS.OSAScriptErrorAppAddressKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Error Dictionary key for error app address.

OSAScriptMBS.OSAScriptErrorAppNameKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the keys for the error dictionary.

String containing the target application name

OSAScriptMBS.OSAScriptErrorBriefMessageKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the keys for the error dictionary.
Example
dim s as new OSAScriptMBS("display dialXXX ""Hello""")
dim d as Dictionary
call s.compile(d)

MsgBox d.Value(OSAScriptMBS.OSAScriptErrorBriefMessageKey)

String containing just the failure; may or may not be the same value as NSLocalizedFailureReasonErrorKey

OSAScriptMBS.OSAScriptErrorExpectedTypeKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the keys for the error dictionary.

Should be NSAppleEventDescriptorMBS object in dictionary.

OSAScriptMBS.OSAScriptErrorMessageKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the keys for the error dictionary.
Example
dim s as new OSAScriptMBS("display dialXXX ""Hello""")
dim d as Dictionary
call s.compile(d)

MsgBox d.Value(OSAScriptMBS.OSAScriptErrorMessageKey)

String containing entire error message; may or may not be the same value as NSLocalizedDescriptionKey.

OSAScriptMBS.OSAScriptErrorNumberKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the keys for the error dictionary.
Example
dim s as new OSAScriptMBS("display dialXXX ""Hello""")
dim d as Dictionary
call s.compile(d)

// shows -2740
MsgBox d.Value(OSAScriptMBS.OSAScriptErrorNumberKey)

Number containing an OSAError; may or may not be the same value as the NSError code

OSAScriptMBS.OSAScriptErrorOffendingObjectKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the keys for the error dictionary.

Should be NSAppleEventDescriptorMBS object in dictionary.

OSAScriptMBS.OSAScriptErrorPartialResultKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the keys for the error dictionary.

Should be NSAppleEventDescriptorMBS object in dictionary.

OSAScriptMBS.OSAScriptErrorRangeKey as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the keys for the error dictionary.
Example
dim s as new OSAScriptMBS("display dialXXX ""Hello""")
dim d as Dictionary
call s.compile(d)

// shows {0, 15}
MsgBox d.Value(OSAScriptMBS.OSAScriptErrorRangeKey)

Value containing an range indicating the range of source characters where the error occurred

OSAScriptMBS.OSAStorageApplicationBundleType as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the storage types.

Application Bundle

OSAScriptMBS.OSAStorageApplicationType as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the storage types.

Application file

OSAScriptMBS.OSAStorageScriptBundleType as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the storage types.

Script bundle file

OSAScriptMBS.OSAStorageScriptType as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the storage types.

Script file

OSAScriptMBS.OSAStorageTextType as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the storage types.

Text file

OSAScriptMBS.scriptDataDescriptorWithContentsOfFile(file as FolderItem) as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Reads script from file into AppleEventDescriptor.

OSAScriptMBS.scriptDataDescriptorWithContentsOfURL(URL as String) as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Reads script from file into AppleEventDescriptor.

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


The biggest plugin in space...