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

Re: Two quick questions


  • Subject: Re: Two quick questions
  • From: Ted Fitzpatrick <email@hidden>
  • Date: Fri, 23 Mar 2007 05:58:40 -0700

Your first question:

tell application "Finder"


version


end tell

... didn't have time to fully investigate your second question though ...

Ted


On Mar 23, 2007, at 4:00 AM, Bryan Lockwood wrote:

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
 _______________________________________________
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: KOENIG Yvan <email@hidden>
    • Re: Two quick questions
      • From: Robert Poland <email@hidden>
References: 
 >Two quick questions (From: Bryan Lockwood <email@hidden>)

  • Prev by Date: Scripting Sidebar Adding
  • Next by Date: Re: Two quick questions
  • Previous by thread: Two quick questions
  • Next by thread: Re: Two quick questions
  • Index(es):
    • Date
    • Thread