Re: How do you find the OSX version while running in Classic?
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.