• 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
Two quick questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two quick questions


  • Subject: Two quick questions
  • From: Bryan Lockwood <email@hidden>
  • Date: Fri, 23 Mar 2007 07:00:14 -0400
  • Thread-topic: Two quick questions

1. How do I get the version of the OS?

2. How do I most reliably ascertain the local language. I say that because
I've been using something like:

    set lang to user locale of (system info)

This apparently works fine, or at least I thought so, returning things like
"en_us" or "de_de"; however, lately it's not tracking too well. Currently
I'm set up for German, and in fact all the menus etc. are appearing in
German, only my technique is still returning "en_us". This is the case on at
least two of my machines, so I'm thinking that there must be a better way.

Thinking that perhaps System Events just hadn't gotten the message somehow,
I killed it and restarted it, but that made no difference.

And in fact I have seen an alternative way somewhere, but I have so many
snippets of AppelScript in my mind, and I can't remember where I saw it, but
it basically used System Preferences to determine the language, and I'm
thinking this has to be better than system info.

Thanks in advance.

Bryan Lockwood


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Two quick questions
      • From: kai <email@hidden>
    • Re: Two quick questions
      • From: deivy petrescu <email@hidden>
    • Re: Two quick questions
      • From: Ted Fitzpatrick <email@hidden>
  • Prev by Date: Re: iTunes, NSAppleScript, and timeout
  • Next by Date: Scripting Sidebar Adding
  • Previous by thread: Re: Doh!
  • Next by thread: Re: Two quick questions
  • Index(es):
    • Date
    • Thread