• 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: Emmanuel <email@hidden>
  • Date: Wed, 7 Jul 2004 15:52:46 +0200

At 9:27 AM -0400 06/07/04, Alexandre Koff wrote:
>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.

Sorry if this has been said already, but I use:

-------------
system attribute "LANG"
-------------

and then I take whatever precedes an underscore (or the whole string if there's no underscore). Which gives:

-------------
find text "^[^_]+" in (system attribute "LANG") with regexp and string result
-------------

Emmanuel
_______________________________________________
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 Berkowitz <email@hidden>
    • Re: Getting the default language with AppleScript
      • From: Paul Skinner <email@hidden>
References: 
 >Getting the default language with AppleScript (From: Alexandre Koff <email@hidden>)

  • Prev by Date: Re: Getting the default language with AppleScript
  • 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