NSUserAppleScriptTaskMBS 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 NSUserAppleScriptTaskMBS class.

NSUserAppleScriptTaskMBS.Constructor(file as folderitem, byref error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Tasks MBS MacExtras Plugin 16.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initialize given a folderitem for a script file.

The returned object will be of one of the specific sub-classes, or raises exception if the file does not appear to match any of the known types. (If used from a sub-class, the result will be of that class, or raises exception.)

See also:

NSUserAppleScriptTaskMBS.Constructor(URL as String, byref error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Tasks MBS MacExtras Plugin 16.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initialize given a URL for a script file.

The returned object will be of one of the specific sub-classes, or raises exception if the file does not appear to match any of the known types. (If used from a sub-class, the result will be of that class, or raises exception.)

See also:

NSUserAppleScriptTaskMBS.executeWithAppleEvent(eventDesc as NSAppleEventDescriptorMBS, tag as Variant = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Tasks MBS MacExtras Plugin 16.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Execute the AppleScript script by sending it the given Apple event.

Pass nil for eventDesc to execute the script's default "run" handler.
Calls later ExecuteFinished event.
The tag value is passed to the executeFinished event.

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


💬 Ask a question or report a problem