<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.6.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/openTempFile:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWorkspace(im)openTempFile:"
  },
  "title" : "openTempFile:"
}
-->

# openTempFile:

Opens the specified temporary file using the default app for its type.

```
- (BOOL) openTempFile:(NSString *) fullPath;
```

## Parameters

`fullPath`

The full path to the temporary file.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the file was successfully opened; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The sending app is deactivated before the request is sent. Using this method instead of one of the `openFile:...` methods lets the receiving app know that it should delete the file when it no longer needs it. Currently provides the same functionality as [`openFile(_:)`](/documentation/AppKit/NSWorkspace/openFile(_:)).

---

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)