2

I've been wanting to figure this out for years. When trying to rename an open PREVIEW image file by typing a new filename directly into the name field at the very top of the Toolbar's Name field, the only way I can execute that name change is by hitting TAB KEY vs the ENTER key. If I hit TAB, the new name sticks. If I hit ENTER, the filename is not changed.

screenshot of renaming file in toolbar

Same behavior for opened TEXT DOCs as well.

I understand that "a solution" is to simply remember to use the TAB key vs the ENTER key, however, in my 25+ years using Macs and Preview, that "solution" has never stuck behaviorally, because my muscle memory is far stronger and more deeply reinforced by an exponentially larger number of Finder file list rename operations where one types the new name and hits ENTER to execute the rename.

My question is: Is there any Terminal code or other solution that would enable me to override using Mac's default TAB KEY and instead allow me to hit ENTER, which for me is far more intuitive to my workflow?

2 Answers 2

1

It drove me nuts and I found the answer just here:

https://forums.macrumors.com/threads/can-no-longer-rename-files-in-preview.2035115/post-24469396

The cause turned out to be a hidden setting in ~/Library/Preferences/.GlobalPreferences.plist If NSAutomaticWindowAnimationEnabled is set to NO, then the problem occurs. If I turn it back to YES or delete that setting, renaming files in Preview works again.

For those of you using something like TinkerToll or Onyx, the hidden setting is in the General area and is called "Animate opening windows".

1
  • 1
    Thanks very much @Oliver — I've looked for several years, never finding answer. From reading further in the MacRumors thread listed, a followup reply provided a terminal command to fix, I tried it, and poof I can now rename preview images . I was indeed able to fix it with the terminal command: defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool YES
    – UXdesigner
    Commented Feb 17, 2021 at 1:59
0
  1. Open Spotlight (magnifying glass in upper right corner)
  2. Enter "terminal" and hit Enter to open the Terminal app
  3. Copy & paste following command:
    defaults write NSGlobalDomain 
    NSAutomaticWindowAnimationsEnabled -bool YES
    
  4. Hit Enter
1
  • So it is by default off? What side effects does it have, and what option in system settings affect it?
    – hym3242
    Commented Jun 11 at 12:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .