<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Automator",
  "identifier" : "/documentation/Automator/AMWorkspace",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Automator"
    ],
    "preciseIdentifier" : "c:objc(cs)AMWorkspace"
  },
  "title" : "AMWorkspace"
}
-->

# AMWorkspace

A workspace for running an Automator workflow.

```
class AMWorkspace
```

## Overview

The [`AMWorkspace`](/documentation/Automator/AMWorkspace) class provides access to the shared workspace in the Automator framework, where you can run workflows without a workflow controller. Use [`shared`](/documentation/Automator/AMWorkspace/shared) to access the shared workspace and [`runWorkflow(atPath:withInput:)`](/documentation/Automator/AMWorkspace/runWorkflow(atPath:withInput:)) to run your workflow in it.

## Topics

### Accessing the Shared Workspace

[`sharedWorkspace`](/documentation/Automator/AMWorkspace/shared)

The shared workspace object.

### Running Workflows

[`-  runWorkflowAtPath:withInput:error:`](/documentation/Automator/AMWorkspace/runWorkflow(atPath:withInput:))

Loads and runs the specified workflow file.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)