• 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: How do you find the OSX version while running in Classic?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you find the OSX version while running in Classic?


  • Subject: Re: How do you find the OSX version while running in Classic?
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 28 Aug 2002 17:36:11 -0700

On 8/28/02 4:36 PM, "Daniel Weinstein" <email@hidden> wrote:

> I've got an application that will run correctly in OSX in 10.2, but not in
> any earlier version of OSX. If I send this out to users I need to disable
> the application if they are running any version of OSX earlier than 10.2.
>
> Does anyone know how to find this?
>
Assuming it will only ever run in OS X or later:

set fulldata to do shell script "sw_vers"
set OSVersion to word 2 of paragraph 2 of fulldata
if (text 1 thru 2 of OSVersion) as integer > 10 or (character 4 of
OSVersion) as integer > 1 then
--do your stuff
else
-- some message
end if


Since you may want to revise this when OS 11 comes out some day, you could
use just the character 4 bit.
--
Paul Berkowitz
_______________________________________________
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: 
 >How do you find the OSX version while running in Classic? (From: Daniel Weinstein <email@hidden>)

  • Prev by Date: Re: Checking the OS Version?
  • Next by Date: Finalizing Script
  • Previous by thread: How do you find the OSX version while running in Classic?
  • Next by thread: RE: How do you find the OSX version while running in Classic?
  • Index(es):
    • Date
    • Thread