Instance Method

activateFileViewerSelecting(_:)

Activates the Finder, and opens one or more windows selecting the specified files.

Declaration

func activateFileViewerSelecting(_ fileURLs: [URL])

Parameters

fileURLs

The files to select and display in the Finder.

Discussion

It is safe to call this method from any thread of your app.

See Also

Manipulating Files

func duplicate([URL], completionHandler: (([URL : URL], Error?) -> Void)? = nil)

Duplicates the specified URLS asynchronously in the same manner as the Finder.

func recycle([URL], completionHandler: (([URL : URL], Error?) -> Void)? = nil)

Moves the specified URLs to the trash in the same manner as the Finder.

func selectFile(String?, inFileViewerRootedAtPath: String)

Selects the file specified by fullPath.