Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I adjust my font aliasing setting by:

defaults -currentHost write -globalDomain AppleFontSmoothing -int 3

which is a hint from macworld.

I am wondering where are these defaults stored and how can I retrive the current values? Thanks~

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

The "global domain" preferences are stored in

/Users/yourname/Library/Preferences/ByHost/.GlobalPreferences.$UUID.plist, where $UUID is, well, a UUID, identifying your machine.

share|improve this answer
    
Got it! I can see what are saved by: open .GlobalPreferences.<UDID>.plist in the ~/Library/Preferences/ByHost/ folder. –  ohho Nov 4 '10 at 8:55
add comment

All preference files are stored in ~/Library/Preferences/ in .plist files named by reverse domain name, so for example com.Apple.iPhoto.plist or similar. The 'defaults' command is just a front-end for that.

share|improve this answer
    
I tried to search the ` ~/Library/Preferences/` folder but cannot found any AppleFontSmoothing string. For this particular example, which plist file is storing the 3 value? –  ohho Nov 4 '10 at 2:22
    
True, in general, but not in this case. –  Daniel Beck Nov 4 '10 at 7:13
    
Ah, I see - it's in a subfolder as an invisible file. So I would have been correct If I had said they're in ~/Library/Preferences/* and left it at that. :) –  Justin Mrkva Nov 4 '10 at 16:47
add comment

You wrote a global value that wasn't there before.

to read it now:

defaults -currentHost read -globalDomain AppleFontSmoothing

to change it

defaults -currentHost write -globalDomain AppleFontSmoothing -int SIZE#

to set it back to normal

defaults -currentHost delete -globalDomain AppleFontSmoothing

Further down in the post you referenced this is all referenced. More info on defaults can be found at apple's developer site.

http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/defaults.1.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.