• 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: Checking the OS Version?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking the OS Version?


  • Subject: Re: Checking the OS Version?
  • From: Bill Briggs <email@hidden>
  • Date: Thu, 8 Aug 2002 17:40:35 -0300

This line:

system attribute "sysv"

will return the system's gestalt code, which in this case is 4117, which if you convert it to hex is 1015, which is the system version.

In pre-X systems you could get the version of the finder

tell application "Finder"
get version
end tell

and that would usually line up with the OS version (I'm not sure of what cases this wouldn't apply to). To compare

tell application "Finder"

set x to computer "sysv"
set y to version
end tell
{x, y}

--> {2320, "9.1"}
-- note that 2320 is 0910 in Hex

In X you don't need the tell block, but you do need to convert to hex to get the version.

- web

At 10:39 AM -0700 08/08/02, email@hidden wrote:
I know that this is possible, because I recall seeing the code somewhere,
but now I can't find it.

How do I determine what OS the script is running under? The delineations
can just be "Is it 10?", if that's what I can get.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Checking the OS Version? (From: email@hidden)

  • Prev by Date: Re: Way to get user's IP address into Applescript variable?
  • Next by Date: Re: Checking the OS Version?
  • Previous by thread: Re: Checking the OS Version?
  • Next by thread: Re: Checking the OS Version?
  • Index(es):
    • Date
    • Thread