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

# open(_:)

Opens the location at the specified URL.

## Declaration

```swift
func open(_ url: URL) -> Bool
```

## Parameters

- `url`: A URL specifying the location to open.

## Return Value

Return Value true if the location was successfully opened; otherwise, false.

## Discussion

Discussion You can call this method safely from any thread in macOS 10.6 and later.

## See Also

### Opening URLs

- [open(_:configuration:completionHandler:)](appkit/nsworkspace/open(_:configuration:completionhandler:).md)
- [open(_:withApplicationAt:configuration:completionHandler:)](appkit/nsworkspace/open(_:withapplicationat:configuration:completionhandler:).md)
