<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserAutomatorTask/CompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@T@NSUserAutomatorTaskCompletionHandler"
  },
  "title" : "NSUserAutomatorTask.CompletionHandler"
}
-->

# NSUserAutomatorTask.CompletionHandler

Implement this block to retrieve the output of the Automator workflow executed by [`execute(withInput:completionHandler:)`](/documentation/Foundation/NSUserAutomatorTask/execute(withInput:completionHandler:)).

```
typealias CompletionHandler = @Sendable (Any?, (any Error)?) -> Void
```

---

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)