OSAScriptMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.Constructor(Data as MemoryBlock, byref error as dictionary)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates new script from compiled data.

See also:

OSAScriptMBS.Constructor(Data as MemoryBlock, url as string, storageOptions as Integer, byref error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates new script from compiled data.

See also:

OSAScriptMBS.Constructor(Data as NSAppleEventDescriptorMBS, URL as String, LanguageInstance as OSALanguageInstanceMBS, storageOptions as Integer, byref error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates new script from data.

See also:

OSAScriptMBS.Constructor(File as FolderItem, byref error as dictionary)

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

See also:

OSAScriptMBS.Constructor(File as FolderItem, language as OSALanguageMBS, byref error as dictionary)

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

See also:

OSAScriptMBS.Constructor(File as FolderItem, languageInstance as OSALanguageInstanceMBS, storageOptions as Integer, byref error as NSErrorMBS)

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

See also:

OSAScriptMBS.Constructor(Source as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates new script from source code.
Example
dim s as new OSAScriptMBS("display dialog ""Hello""")
MsgBox s.source

See also:

OSAScriptMBS.Constructor(Source as String, Language as OSALanguageMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates new script from source code.

See also:

OSAScriptMBS.Constructor(Source as String, URL as String, LanguageInstance as OSALanguageInstanceMBS, storageOptions as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacExtras Plugin 15.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates new script from source code.

See also:

OSAScriptMBS.Constructor(URL as String, byref error as dictionary)

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

See also:

OSAScriptMBS.Constructor(URL as String, language as OSALanguageMBS, byref error as dictionary)

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

See also:

OSAScriptMBS.Constructor(URL as String, languageInstance as OSALanguageInstanceMBS, storageOptions as Integer, byref error as NSErrorMBS)

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

See also:

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.

OSAScriptMBS.writeToFile(File as FolderItem, type as String, 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
Writes script to a file.

See also:

OSAScriptMBS.writeToFile(File as FolderItem, type as String, storageOptions as Integer, 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
Writes script to a file.

See also:

OSAScriptMBS.writeToURL(URL as String, type as String, 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
Writes script to a file.

See also:

OSAScriptMBS.writeToURL(URL as String, type as String, storageOptions as Integer, 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
Writes script to a file.

See also:

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


💬 Ask a question or report a problem