Platforms to show: All Mac Windows Linux Cross-Platform

Back to MacFileOperationMBS class.

MacFileOperationMBS.Cancel

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Cancels the specified FSFileOperation.

Lasterror is set.

MacFileOperationMBS.CopyObject(Item as folderitem, DestinationFolder as folderitem, DestinationName as string, Options as Integer, statusChangeInterval as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
This routine will start an asynchronous copy of the object specified by Item to the directory specified by DestinationFolder.

If DestinationName is provided then the new object will be renamed to DestinationName. If DestinationName is empty then the name of the source object will be used.

You will receive StatusChanged events.

Options: One or more FSFileOperation flags
statusChangeInterval: The minimum time between callbacks within a single stage of an operation in seconds.

Some examples using this method:

MacFileOperationMBS.MoveObject(Item as folderitem, DestinationFolder as folderitem, DestinationName as string, Options as Integer, statusChangeInterval as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
This routine will start an asynchronous move of the object specified by source to the directory specified by DestinationFolder.

If DestinationName is provided then the new object will be renamed to destName. If DestinationName is empty then the name of the source object will be used.

By default a move across volumes will result in a copy and deletion of the original source. The kFSFileOperationDoNotMoveAcrossVolumes flag will cause cross volume moves to do nothing and return an error.

Options: One or more FSFileOperation flags
statusChangeInterval: The minimum time between callbacks within a single stage of an operation in seconds.

MacFileOperationMBS.MoveObjectToTrash(Item as folderitem, Options as Integer, statusChangeInterval as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This routine will start an asynchronous move of the object specified by source to the trash.

If the volume the source object resides on does not support a trash folder then the operation will return an error (this is the same circumstance that triggers the delete immediately behavior in the Finder).

Options: One or more FSFileOperation flags
statusChangeInterval: The minimum time between callbacks within a single stage of an operation in seconds.

MacFileOperationMBS.Status as MacFileOperationStatusMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
This routine returns the current status of an FileOperation.

Lasterror is set.
Returns nil on any error.

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


The biggest plugin in space...