Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Long list of defaults commands Apps
If you've been around this site for a while, you know that the "defaults" command in Terminal can do a lot. It can set many hidden settings and preferences in Mac OS X, and in individual applications.

Mathias Bynens has posted a long list of these commands on github. I haven't looked closely, but I'm willing to bet that some of them haven't been posted here as hints yet.

There used to be a great tool called Secrets, which was a preference pane, and which allowed GUI access to many of these commands. Alas, Secrets hasn't been updated for Lion, so using Terminal is the best way to apply these commands.

If you're unfamiliar with how to use these commands, here's what you need to know. Open Terminal (in /Applications/Utilities), then paste one of the commands into Terminal and press Return. The commands in the list are the parts that begin with "defaults," such as:
defaults write com.apple.dock no-glass -bool true
This command removes the 3D graphics from the Dock.

Thanks to appstorm Mac for pointing out this page.
    •    
  • Currently 4.50 / 5
  You rated: 5 / 5 (8 votes cast)
 
[16,532 views]  

Long list of defaults commands | 11 comments | Create New Account
Click here to return to the 'Long list of defaults commands ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Long list of defaults commands
Authored by: richard2 on Apr 04, '12 08:07:16AM
Beware that disabling Lion's window animations (defaults write -g NSAutomaticWindowAnimationsEnabled -bool false) will cause some applications to freeze if you open the dictionary/thesaurus panel (control-command-D).

[ Reply to This | # ]
Long list of defaults commands
Authored by: peterpk on Apr 04, '12 08:32:27AM
Many of these preferences can be controlled by GUI using Marcel Bresink's TinkerTool.

[ Reply to This | # ]
Or by Secrets.prefpane
Authored by: lullabud on Apr 04, '12 11:33:28AM

Lot's of ways to find hidden features :D



[ Reply to This | # ]
Or by Secrets.prefpane
Authored by: kirkmc on Apr 04, '12 12:10:39PM

As I say in the hint, Secrets hasn't been updated for Lion.

---
Mac OS X Hints editor - Macworld senior contributor
http://www.mcelhearn.com



[ Reply to This | # ]
Or by Secrets.prefpane
Authored by: The Eck on Apr 05, '12 12:04:20PM

The link is dead at Blacktree.



[ Reply to This | # ]
Long list of defaults commands
Authored by: wgscott on Apr 05, '12 07:37:39AM
# Disable the “reopen windows when logging back in” option
# This works, although the checkbox will still appear to be checked.
defaults write com.apple.loginwindow TALLogoutSavesState -bool false
defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false
This alone justifies the hint!

[ Reply to This | # ]
Long list of defaults commands
Authored by: glusk on Apr 06, '12 09:59:42AM

Oh, wow! This works!
(Not trying to sound like I didn't think it would, but I'm very happy to finally make Lion a little less helpful.)

A million thank you's for posting this.



[ Reply to This | # ]
Long list of defaults commands
Authored by: The Eck on Apr 05, '12 11:41:01AM

Thanks for the link. I scanned the list and right away found one that will immediately be written:

# Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app

I hated doing a copy and then finding that I'd have to remove extraneous characters.



[ Reply to This | # ]
Long list of defaults commands
Authored by: TGV on Apr 06, '12 12:15:27AM

Excellent hint. And remember: it's a git repository (with more useful stuff, just click on the name "dotfile" on top), so it is maintained, and it can be updated. So check for differences from time to time: you can see what changes were made to this document using the "history" tab in the top right corner of the document.



[ Reply to This | # ]
Long list of defaults commands
Authored by: pettri on Apr 08, '12 06:35:59AM

If you want to see most if not ALL the commands available via the command line check out CLIX from rixstep (it's free) and beyond value if you want to learn (the command line).

---
Have a Great day!
pete.



[ Reply to This | # ]
Long list of defaults commands
Authored by: bdm on Apr 10, '12 05:17:27AM

As always with this type of thing, remember that one reason a feature might be unadvertised is that it is insufficiently tested and maybe even known to break something.



[ Reply to This | # ]