• 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: Peter Fischer <email@hidden>
  • Date: Tue, 6 Jul 2004 18:49:23 +0200

Hi Alex,

I was just wondering if anyone knows how to get the user's default
language using AppleScript. I was reading through the AppleScript
documentation on developer.apple.com but it seems to be a bit lacking.

The single line:

set theLang to (do shell script "defaults read com.apple.dock.loc")

should give you a result like "en_US", "fr_FR" or "de_DE" and so on...
So it returns the language designation of the default language.

--
Peter Fischer aka Snow
Fischer-Bayern
"The source for german AppleScripters"
http://www.fischer-bayern.de
RSS-Feeds:
Pinnwand: http://fischer-bayern.de/applescript/rss/rss.xml
Forum: http://fischer-bayern.de/phpBB2/rdf.php
_______________________________________________
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: email@hidden
References: 
 >Getting the default language with AppleScript (From: Alexandre Koff <email@hidden>)

  • Prev by Date: Re: (OFF) Curiosity & It's Relation To Cats
  • Next by Date: Re: Alias replacing script
  • Previous by thread: Getting the default language with AppleScript
  • Next by thread: Re: Getting the default language with AppleScript
  • Index(es):
    • Date
    • Thread