---
title: "openApplication(at:configuration:completionHandler:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsworkspace/openapplication(at:configuration:completionhandler:)"
---

# openApplication(at:configuration:completionHandler:)

Launches the app at the specified URL and asynchronously reports back on the app’s status.

## Declaration

```swift
func openApplication(at applicationURL: URL, configuration: NSWorkspace.OpenConfiguration, completionHandler: (@Sendable (NSRunningApplication?, (any Error)?) -> Void)? = nil)
```

```swift
func openApplication(at applicationURL: URL, configuration: NSWorkspace.OpenConfiguration) async throws -> NSRunningApplication
```

## Parameters

- `applicationURL`: A URL specifying the location of the app in the file system.
- `configuration`: The options that indicate how you want to launch the app.
- `completionHandler`: The completion handler block to call asynchronously with the results. AppKit executes the completion handler on a concurrent queue. The handler block has no return value and takes the following parameters:

## Discussion

Discussion

## See Also

### Launching and Hiding Apps

- [hideOtherApplications()](appkit/nsworkspace/hideotherapplications().md)
