Re: Getting the default language with AppleScript
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.