Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSUserUnixTaskMBS class.
NSUserUnixTaskMBS.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 |
The returned object will be, or raises exception if the file does not appear to match any of the known types.
The script should have a valid file extension like ".sh" and the executable bit set (chmod +x) to be able to run. First line of the script should have the shebang line like "#!/bin/bash" and line endings should be Chr(10) as in EndOfLine.Unix.
See also:
NSUserUnixTaskMBS.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 |
The returned object will be, or raises exception if the file does not appear to match any of the known types.
See also:
NSUserUnixTaskMBS.executeWithArguments(arguments() as string, 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 |
The arguments do not undergo shell expansion, so you do not need to do special quoting, and shell variables are not resolved.
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.