---
title: NSDocument.SaveOperationType.autosaveAsOperation
framework: appkit
role: symbol
role_heading: Case
path: appkit/nsdocument/saveoperationtype/autosaveasoperation
---

# NSDocument.SaveOperationType.autosaveAsOperation

An operation that writes a document’s contents to a new file or file package even though the user has not explicitly requested it, then changes the document’s current location to point to the just-written file or file package.

## Declaration

```swift
case autosaveAsOperation
```

## See Also

### Constants

- [NSDocument.SaveOperationType.saveOperation](appkit/nsdocument/saveoperationtype/saveoperation.md)
- [NSDocument.SaveOperationType.saveAsOperation](appkit/nsdocument/saveoperationtype/saveasoperation.md)
- [NSDocument.SaveOperationType.saveToOperation](appkit/nsdocument/saveoperationtype/savetooperation.md)
- [NSDocument.SaveOperationType.autosaveElsewhereOperation](appkit/nsdocument/saveoperationtype/autosaveelsewhereoperation.md)
- [NSDocument.SaveOperationType.autosaveInPlaceOperation](appkit/nsdocument/saveoperationtype/autosaveinplaceoperation.md)
