Platforms to show: All Mac Windows Linux Cross-Platform
Cocoa Tasks
Cocoa functions for running shell commands or executing applications.
- Classes
- class NSFileHandleMBS
- method acceptConnectionInBackgroundAndNotify
- method AvailableBytes as Integer
- method availableData as MemoryBlock
- method closeFile
- method Constructor
- method fileDescriptor as Integer
- shared method fileHandleForReadingAtFile(path as folderitem) as NSFileHandleMBS
- shared method fileHandleForReadingAtPath(path as string) as NSFileHandleMBS
- shared method fileHandleForReadingFromFile(URL as folderitem, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForReadingFromURL(URL as string, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForUpdatingAtFile(path as folderitem) as NSFileHandleMBS
- shared method fileHandleForUpdatingAtPath(path as string) as NSFileHandleMBS
- shared method fileHandleForUpdatingFile(URL as folderitem, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForUpdatingURL(URL as string, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForWritingAtFile(path as folderitem) as NSFileHandleMBS
- shared method fileHandleForWritingAtPath(path as string) as NSFileHandleMBS
- shared method fileHandleForWritingToFile(URL as folderitem, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleForWritingToURL(URL as string, byref error as NSErrorMBS) as NSFileHandleMBS
- shared method fileHandleWithFileDescriptor(fd as Integer) as NSFileHandleMBS
- shared method fileHandleWithFileDescriptor(fd as Integer, closeOnDealloc as boolean) as NSFileHandleMBS
- shared method fileHandleWithNullDevice as NSFileHandleMBS
- shared method fileHandleWithStandardError as NSFileHandleMBS
- shared method fileHandleWithStandardInput as NSFileHandleMBS
- shared method fileHandleWithStandardOutput as NSFileHandleMBS
- shared method NSFileHandleConnectionAcceptedNotification as string
- shared method NSFileHandleDataAvailableNotification as string
- shared method NSFileHandleNotificationDataItem as string
- shared method NSFileHandleNotificationFileHandleItem as string
- shared method NSFileHandleNotificationMonitorModes as string
- shared method NSFileHandleOperationException as string
- shared method NSFileHandleReadCompletionNotification as string
- shared method NSFileHandleReadToEndOfFileCompletionNotification as string
- method readDataOfLength(length as Integer) as MemoryBlock
- method readDataToEndOfFile as MemoryBlock
- method readInBackgroundAndNotify
- method readToEndOfFileInBackgroundAndNotify
- method seekToEndOfFile as UInt64
- method seekToFileOffset(offset as UInt64)
- method synchronizeFile
- method truncateFileAtOffset(offset as UInt64)
- method waitForDataInBackgroundAndNotify
- method writeData(data as MemoryBlock)
- property Handle as Integer
- property offsetInFile as UInt64
- class NSPipeMBS
- method Constructor
- method fileHandleForReading as NSFileHandleMBS
- method fileHandleForWriting as NSFileHandleMBS
- shared method pipe as NSPipeMBS
- property Handle as Integer
- class NSTaskMBS
- method arguments as string()
- method Constructor
- method Destructor
- method interrupt
- method launch
- shared method launchedTaskWithLaunchPath(path as string, arguments() as string) as NSTaskMBS
- shared method NSTaskDidTerminateNotification as string
- method resume as boolean
- method setArguments(arguments() as string)
- method setStandardError(p as NSFileHandleMBS)
- method setStandardError(p as NSPipeMBS)
- method setStandardInput(p as NSFileHandleMBS)
- method setStandardInput(p as NSPipeMBS)
- method setStandardOutput(p as NSFileHandleMBS)
- method setStandardOutput(p as NSPipeMBS)
- method standardError as Variant
- method standardInput as Variant
- method standardOutput as Variant
- method suspend as boolean
- method terminate
- method waitUntilExit
- property currentDirectoryPath as string
- property Handle as Integer
- property isRunning as boolean
- property launchPath as string
- property processIdentifier as Integer
- property qualityOfService as Integer
- property terminationReason as Integer
- property terminationStatus as Integer
- property environment as dictionary
- event Terminated
- class NSUserAppleScriptTaskMBS
- method Constructor(file as folderitem, byref error as NSErrorMBS)
- method Constructor(URL as String, byref error as NSErrorMBS)
- method executeWithAppleEvent(eventDesc as NSAppleEventDescriptorMBS, tag as Variant = nil)
- class NSUserAutomatorTaskMBS
- method Constructor(file as folderitem, byref error as NSErrorMBS)
- method Constructor(URL as String, byref error as NSErrorMBS)
- method executeWithInput(input as Variant, tag as Variant = nil)
- property Variables as Dictionary
- class NSUserScriptTaskMBS
- shared method Available as Boolean
- method Constructor(file as folderitem, byref error as NSErrorMBS)
- method Constructor(URL as String, byref error as NSErrorMBS)
- method execute(tag as Variant = nil)
- shared method ScriptFolder as FolderItem
- property Handle as Integer
- property scriptURL as String
- event executeFinished(error as NSErrorMBS, tag as Variant, result as Variant, input as Variant)
- class NSUserUnixTaskMBS
- method Constructor(file as folderitem, byref error as NSErrorMBS)
- method Constructor(URL as String, byref error as NSErrorMBS)
- method executeWithArguments(arguments() as string, tag as Variant = nil)
- property standardError as NSFileHandleMBS
- property standardInput as NSFileHandleMBS
- property standardOutput as NSFileHandleMBS
- class NSFileHandleMBS
- Blog Entries
Release notes
- Version 22.1
- Changed NSUserUnixTaskMBS class constructor to not raise exception, so you can check error parameter easier.
- Version 17.4
- Fixed NSPipeMBS class to no longer crash app for broken pipes. We set the signal to be ignored in Constructor.
- Version 17.2
- Changed NSUserUnixTaskMBS properties for file handles to be writable.
The items on this page are in the following plugins: MBS MacCocoa Plugin, MBS MacExtras Plugin.