Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSWorkspaceMBS class.
NSWorkspaceMBS.duplicateCompleted(files() as FolderItem, Mapping as Dictionary, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa | MBS MacCocoa Plugin | 26.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
files: An array of FolderItem objects representing the files to duplicate.
Mapping: A dictionary parameter whose keys and values are FolderItem objects. Each key is a FolderItem from the files parameter. The value of each key is a FolderItem representing the location of the duplicated file. If this method could not duplicate a file, the corresponding FolderItem is not included in the dictionary.
error: If the operation succeeded for every file, this parameter is nil. If the operation failed for one or more files, the parameter contains an error object describing the overall result of the operation in a manner suitable for presentation to the user.
NSWorkspaceMBS.openCompleted(item as Variant, application as Variant, configuration as NSWorkspaceOpenConfigurationMBS, runningApp as NSRunningApplicationMBS, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa | MBS MacCocoa Plugin | 26.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
We provide the folderitem or URL in item.
If you asked to open an application, we provide the URL or folderitem here.
runningApp: On success, this parameter contains a reference to the launched app. If the app wasn’t launched, this parameter is nil.
error: On failure, this parameter contains an NSErrorMBS object indicating the reason for the failure. If the app launched successfully, this parameter is nil.
NSWorkspaceMBS.recycleCompleted(files() as FolderItem, Mapping as Dictionary, error as NSErrorMBS, tag as Variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa | MBS MacCocoa Plugin | 26.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
files: An array of FolderItem objects representing the files to move to the trash.
Mapping: A dictionary that maps the file’s original location to its location in the trash. Each key is a FolderItem from the files parameter. The value of each key is a FolderItem representing the location of the file in the trash. If this method could not move a file to the trash, the corresponding FolderItem is not included in the dictionary.
error: If the operation succeeded for every file, this parameter is nil. If the operation failed for one or more files, the parameter contains an error object describing the overall result of the operation in a manner suitable for presentation to the user.
NSWorkspaceMBS.requestAuthorizationCompleted(type as Integer, authorization as NSWorkspaceAuthorizationMBS, error as NSErrorMBS, tag as variant)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | Cocoa | MBS MacCocoa Plugin | 19.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
type: The type of file operation requested.
authorization: The authorization granted for this app. Use it when creating a new NSFileManagerMBS with fileManagerWithAuthorization function.
error: nil if the app is authorized; otherwise, a pointer to the authorization error.
The completion event to call when the authorization request is completed.
The items on this page are in the following plugins: MBS MacCocoa Plugin.