• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the default language with AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Getting the default language with AppleScript
      • From: Paul Skinner <email@hidden>
    • Re: Getting the default language with AppleScript
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Re: QuarkXPress 6 Spread Finder
  • Next by Date: Re: Getting the default language with AppleScript
  • Previous by thread: Re: Getting the default language with AppleScript
  • Next by thread: Re: Getting the default language with AppleScript
  • Index(es):
    • Date
    • Thread