<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/SaveOperationType/autosaveElsewhereOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSSaveOperationType@NSAutosaveElsewhereOperation"
  },
  "title" : "NSDocument.SaveOperationType.autosaveElsewhereOperation"
}
-->

# NSDocument.SaveOperationType.autosaveElsewhereOperation

An operation that writes an autosave version of the file to a different location.

```
case autosaveElsewhereOperation
```

## Discussion

For an [`NSDocument`](/documentation/AppKit/NSDocument) subclass that overrides [`autosavesInPlace`](/documentation/AppKit/NSDocument/autosavesInPlace) to have the value <doc://com.apple.documentation/documentation/Swift/true>, this is used during autosaving of documents that have never been saved and therefore do not yet have a document file that can be overwritten during autosaving. `NSDocument` may also pass `NSAutosaveElsewhereOperation` when invoking `writeSafelyToURL:ofType:forSaveOperation:error:` while duplicating or reverting a document.

---

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)