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~

link|improve this question

feedback

3 Answers

up vote 0 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.

link|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
feedback

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.

link|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. :) – jfm429 Nov 4 '10 at 16:47
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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