|
@@ -1465,7 +1465,7 @@ let LOCKED_KEY = "locked"
|
|
|
if document != nil {
|
|
|
document!.setDocumentAttributes(attribute)
|
|
|
|
|
|
- let path = fileURL.path.stringByAppendingPathComponent(url.lastPathComponent)
|
|
|
+ let path = fileURL.path.stringByAppendingPathComponent(url.deletingPathExtension().lastPathComponent) + "_SetPassword" + "." + url.pathExtension
|
|
|
let success = document!.write(to: NSURL(fileURLWithPath: path) as URL, withOptions: options)
|
|
|
if success {
|
|
|
self.view.window?.endSheet((self.currentWindowController.window)!)
|