Mac OS X: Make Command + Q work with Finder as well
by admin on May.04, 2013, under MAC OS X
If you’re used to closing windows with Command+Q and you’d also like this trick to work with Finder, you can simply add a “Quit Finder” menu item to all Finder instances which will also enable closing the window with Command+Q.
Just open up your Terminal and enter the following command:
defaults write com.apple.finder QuitMenuItem -bool yes
Now you just have to restart finder (Command+ALT+ESC => Select Finder => Restart Finder) or optionally just enter the following terminal command in order to kill all Finder windows:
killall Finder
Note: This solution, however, will quit all Finder windows at once. If you’d like to close the active window only, simply use Command+W 🙂
In order to undo above changes, you can simply enter the following command:
defaults delete com.apple.finder QuitMenuItem
(and restart Finder again)
May 18th, 2013 on 02:27
maybe xkill works on Mac too? Would also work for other applications than Finder, of course you would have to set a keybinding first.