• 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
best way to get user's default language...not a list of installed languages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

best way to get user's default language...not a list of installed languages


  • Subject: best way to get user's default language...not a list of installed languages
  • From: Graham Anderson <email@hidden>
  • Date: Wed, 26 Jan 2005 09:44:05 -0800

wow that was a bit confusing...
is there an accepted way to get the user's default language that works in most case and then politely fails if it can not ?
On Jan 26, 2005, at 8:01 AM, Adam K. Wuellner wrote:



On Jan 25, 2005, at 11:06 PM, Graham Anderson wrote:

I have started to beta test the app and someone reported this bug:
2005-01-25 21:18:30.933
defaults[421]
The domain/default pair of (kCFPreferencesAnyApplication, AppleLocale) does not exist


anyone know what that could be ?
<snip>
--Language
set defaultLanguage to do shell script "defaults read -globalDomain AppleLocale"
<snip>

There is a discussion in the archives, thread title "Getting the default language with AppleScript", that covers this. The method you are using is not sufficient for all cases.

It starts here:
<http://lists.apple.com/archives/applescript-users/2004/Jul/ msg00138.html>



_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: best way to get user's default language...not a list of installed languages
      • From: Emmanuel <email@hidden>
References: 
 >Re: 'include' statement in applescript (From: Paul Berkowitz <email@hidden>)
 >Re: 'include' statement in applescript (From: Graham Anderson <email@hidden>)
 >Re: 'include' statement in applescript (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: reference by location in iTunes
  • Next by Date: Re: iWork Pages
  • Previous by thread: Re: 'include' statement in applescript
  • Next by thread: Re: best way to get user's default language...not a list of installed languages
  • Index(es):
    • Date
    • Thread