---
title: "activateFileViewerSelecting(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsworkspace/activatefileviewerselecting(_:)"
---

# activateFileViewerSelecting(_:)

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

## Declaration

```swift
func activateFileViewerSelecting(_ fileURLs: [URL])
```

## Parameters

- `fileURLs`: The files to select and display in the Finder.

## Discussion

Discussion You can safely call this method from any thread of your app.

## See Also

### Manipulating Files

- [duplicate(_:completionHandler:)](appkit/nsworkspace/duplicate(_:completionhandler:).md)
- [recycle(_:completionHandler:)](appkit/nsworkspace/recycle(_:completionhandler:).md)
- [selectFile(_:inFileViewerRootedAtPath:)](appkit/nsworkspace/selectfile(_:infileviewerrootedatpath:).md)
