Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

"The document could not be saved/exported as"

Since the installation of Mavericks, I get this problem that I have been trying to investigate, without success so far:


With all application (could it be Preview, Pages and so on), when I first want to save or export the document, the Save dialog displays the default folder (let's say the Documents folder), then if I try to "save" there, or in a child directory, I get a "The document XXX.xxx could not be saved/exported as XYX.yxy".


If, instead of browsing from this default directory, I go back to the root (that is, click "User" then "Documents" and so on), the error vanishes, and the next save goes OK. Until I close the application and start over.


A hint:

The same thing can happen when unzipping a file, and I once observed, when trying to make a new folder from the Unzipping dialog, a "This folder is read-only" indication. In this case again, selecting the same folder by going back to the root, made this indication vanish.


So my guess is that there is some permission problem with the default path / shortcut for writing documents, but I have no clue about how to fix this.


I tried fixing the disk permissions and running all maintenance tasks of Onyx, but the problem doesn't go away.


I would be grateful if anybody had a clue or solution!


Thanks

MacBook Air, OS X Mavericks (10.9.1)

Posted on Jan 22, 2014 11:12 AM

Reply
Question marked as Best reply

Posted on Jan 22, 2014 5:16 PM

If you're having trouble making changes to files that are inside your home folder (represented by a house icon in the sidebar of a Finder window), or if you can't get changes to the settings of an application to stick, then please see below.

Back up all data.

This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.

I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.

Step 1

If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.

Triple-click anywhere in the following line on this page to select it:

{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-


Copy the selected text to the Clipboard by pressing the key combination command-C.

Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.

You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.

Step 2 (optional)

Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.

Boot into Recovery. When the OS X Utilities screen appears, select

Utilities Terminal

from the menu bar. A Terminal window will open.

In the Terminal window, type this:

res

Press the tab key. The partial command you typed will automatically be completed to this:

resetpassword

Press return. A Reset Password dialog will open. You’re not going to reset a password.

In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.

Select your username from the menu labeled Select the user account if it's not already selected.

Under Reset Home Directory Permissions and ACLs, click the Reset button.

Select

Restart

from the menu bar.

5 replies
Question marked as Best reply

Jan 22, 2014 5:16 PM in response to Adrien P

If you're having trouble making changes to files that are inside your home folder (represented by a house icon in the sidebar of a Finder window), or if you can't get changes to the settings of an application to stick, then please see below.

Back up all data.

This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.

I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.

Step 1

If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.

Triple-click anywhere in the following line on this page to select it:

{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-


Copy the selected text to the Clipboard by pressing the key combination command-C.

Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.

You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.

Step 2 (optional)

Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.

Boot into Recovery. When the OS X Utilities screen appears, select

Utilities Terminal

from the menu bar. A Terminal window will open.

In the Terminal window, type this:

res

Press the tab key. The partial command you typed will automatically be completed to this:

resetpassword

Press return. A Reset Password dialog will open. You’re not going to reset a password.

In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.

Select your username from the menu labeled Select the user account if it's not already selected.

Under Reset Home Directory Permissions and ACLs, click the Reset button.

Select

Restart

from the menu bar.

Apr 21, 2015 7:16 AM in response to Adrien P

I have this problem but only with one application: Quartz Composer. It will not save files where a file with that exists in the current directory. The exception being the trash folder where I can save over files no problem. I don't use the Home folder to save files (creates to many issues when using a different user accounts, I'll often use another user account to test instabilities with Quartz Composer plugins for example). I save all my work on the main (fusion) volume. Neither steps 1 nor 2 have resolved this and I've even upgraded to Yosemite from Mavericks and still suffering. Clean install of 10.10.3 with no migration and all the pain that brings is next.

"The document could not be saved/exported as"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.