Re: Getting the default language with AppleScript
Re: Getting the default language with AppleScript
- Subject: Re: Getting the default language with AppleScript
- From: Bill <email@hidden>
- Date: Wed, 7 Jul 2004 10:15:02 +0800
do shell script " defaults read -g AppleLocale"
But where is this plist file?
Martin,
The revelant plist file is:
~/Library/Preferences/.GlobalPreferences.plist
Well, AppleLocale is not AppleLanguages ;)
$ defaults read -g AppleLocale
-- en_HK
$ defaults read -g | grep AppleLanguages
-- AppleLanguages = ("zh_TW", "zh_CN", en);
The list ("zh_TW", "zh_CN", en) reflects the top to bottom order in
language of International Pref. of System Preferences. Once we drag
language to change the order, the above shell command will report the
change. However, for applications, they need to be quitted &
reactivated, in order to take effect.
So, on my machine "zh_TW" is the default language at this moment.
bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.