• 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: Beast way to test for OS version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beast way to test for OS version


  • Subject: Re: Beast way to test for OS version
  • From: Laine Lee <email@hidden>
  • Date: Tue, 03 Jan 2006 13:07:44 -0600
  • Thread-topic: Beast way to test for OS version

On 12/19/05 6:25 PM, "Brett Conlon" <email@hidden> wrote:

>
> Hiya,
>
> What is the best way for a script to test for the version of OSX a user is
> running?
>
> I'm setting up UI scripting for printing and there are some minor changes from
> 10.3.9 to 10.4 and I'd like to include an OSXTest handler then IF statements
> to act accordingly?
>
> Merry Christmas,
>
> Cojcolds
>

I don't remember where I picked this one up, but it's my favorite, beastly
or not.


set the hexData to system attribute "sysv"
set hexString to {}
repeat 4 times
    set hexString to ((hexData mod 16) as string) & hexString
    set hexData to hexData div 16
end repeat
set the OS_version to the hexString as string
display dialog "" & OS_version & ""


--
Laine Lee


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: hdiutil burn
  • Next by Date: Re: Need help with image events droplet to save multiple files as png
  • Previous by thread: Optical Media Sizes
  • Next by thread: How do I delete the 1st three characters from a variable
  • Index(es):
    • Date
    • Thread