Platforms to show: All Mac Windows Linux Cross-Platform

Back to OSAScriptMBS class.

OSAScriptMBS.compile(byref error as dictionary) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Compiles the script.

OSAScriptMBS.compiledDataForType(type as string, options as Integer, byref error as dictionary) as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Compile data for a given type and options.

OSAScriptMBS.copy as OSAScriptMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a copy of the script.

OSAScriptMBS.execute(byref error as dictionary) as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Executes the script.
Example
dim s as new OSAScriptMBS("display dialog ""Hello""")
dim d as Dictionary
call s.execute(d)

OSAScriptMBS.executeAndReturnDisplayValue(byref displayValue as NSAttributedStringMBS, byref error as dictionary) as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Executes the script and returns the display value of result.

OSAScriptMBS.executeAppleEvent(event as NSAppleEventDescriptorMBS, byref error as dictionary) as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Executes an apple event in the script.

OSAScriptMBS.executeHandlerWithName(Name as String, arguments() as String, byref error as dictionary) as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Executes an event handler in the script.

OSAScriptMBS.richTextFromDescriptor(descriptor as NSAppleEventDescriptorMBS) as NSAttributedStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Queries rich text for an Appleevent descriptor.

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


The biggest plugin in space...