<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/OpenConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWorkspaceOpenConfiguration"
  },
  "title" : "NSWorkspace.OpenConfiguration"
}
-->

# NSWorkspace.OpenConfiguration

The configuration options for opening URLs or launching apps.

```
class OpenConfiguration
```

## Overview

Create an [`NSWorkspace.OpenConfiguration`](/documentation/AppKit/NSWorkspace/OpenConfiguration) object before launching an app or opening a URL using the shared [`NSWorkspace`](/documentation/AppKit/NSWorkspace) object. Use the properties of this object to customize the behavior of the launched app or the handling of the URLs. For example, you might tell the app to hide itself immediately after launch.

## Topics

### Creating a workspace configuration object

[`configuration`](/documentation/AppKit/NSWorkspaceOpenConfiguration/configuration)

Creates and returns a new workspace configuration object containing default values.

### Handling URLs

[`requiresUniversalLinks`](/documentation/AppKit/NSWorkspace/OpenConfiguration/requiresUniversalLinks)

A Boolean value indicating whether you require the URL to have an associated universal link.

[`isForPrinting`](/documentation/AppKit/NSWorkspace/OpenConfiguration/isForPrinting)

A Boolean value indicating whether you want to print the contents of documents and URLs instead of opening them.

### Specifying app-related behaviors

[`activates`](/documentation/AppKit/NSWorkspace/OpenConfiguration/activates)

A Boolean value indicating whether the system activates the app and brings it to the foreground.

[`addsToRecentItems`](/documentation/AppKit/NSWorkspace/OpenConfiguration/addsToRecentItems)

A Boolean value indicating whether to add the app or documents to the Recent Items menu.

[`allowsRunningApplicationSubstitution`](/documentation/AppKit/NSWorkspace/OpenConfiguration/allowsRunningApplicationSubstitution)

A Boolean value that indicates whether to use a running instance of an application even if it’s at a different URL.

[`createsNewApplicationInstance`](/documentation/AppKit/NSWorkspace/OpenConfiguration/createsNewApplicationInstance)

A Boolean value indicating whether you want the system to launch a new instance of the app.

[`hides`](/documentation/AppKit/NSWorkspace/OpenConfiguration/hides)

A Boolean value indicating whether you want the app to hide itself after it launches.

[`hidesOthers`](/documentation/AppKit/NSWorkspace/OpenConfiguration/hidesOthers)

A Boolean value indicating whether you want to hide all apps except the one that launched.

### Prompting the user

[`promptsUserIfNeeded`](/documentation/AppKit/NSWorkspace/OpenConfiguration/promptsUserIfNeeded)

A Boolean value indicating whether to display errors, authentication requests, or other UI elements to the user.

### Specifying launch attributes

[`appleEvent`](/documentation/AppKit/NSWorkspace/OpenConfiguration/appleEvent)

The first Apple event to send to the new app.

[`arguments`](/documentation/AppKit/NSWorkspace/OpenConfiguration/arguments)

The set of command-line arguments to pass to a new app instance at launch time.

[`environment`](/documentation/AppKit/NSWorkspace/OpenConfiguration/environment)

The set of environment variables to set in a new app instance.

[`architecture`](/documentation/AppKit/NSWorkspace/OpenConfiguration/architecture)

The architecture version of the app to launch.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)