Re: Mac OS Version Sniffer
Re: Mac OS Version Sniffer
- Subject: Re: Mac OS Version Sniffer
- From: bryan <email@hidden>
- Date: Thu, 24 Oct 2002 09:03:44 -0400
Your script gave me an error about not being able to make the
Finder Version into a number in 9.2.2; so I modified it slightly.
tell application "Finder"
set whatversion to version
if whatversion as number * 10 then
display dialog "You are running OS X"
else
display dialog "You are running OS 9.2.2 or earlier"
end if
end tell
Please verify that this works for other versions.
Bryan Kaufman
Sean wrote:
>
Hi,
>
>
The following steps should do the job
>
>
> tell application "Finder"
>
> set whatversion to version as number
>
> if whatversion !C 10 then
>
> display dialog "You are running OS X"
>
> else
>
> display dialog "You are running OS 9.2.2 or earlier"
>
> end if
>
> end tell
>
>
or
>
>
> set whatversion to (version of application "Finder")
>
>
Under OS 9.2.1 it returns "9.2", under OS X 10.1.2 it returns "10.1.2",
>
and under OS X 10.2.1 it returns "10.2"
>
>
I haven't tested it under other versions of classic OS or Mac OS X but
>
since the Finder version tends to change with major system revisions,
>
it should be reasonably accurate.
>
>
Sean.
>
>
On Wednesday, October 16, 2002, at 11:45 PM, Ken Goff wrote:
>
>
> Is there an AppleScript that is compatible with both Mac OS 9 and Mac
>
> OS X and that can determine which version of the Mac OS is running?
>
> --
>
> -Ken Goff
>
> MacEssentials
>
> _______________________________________________
>
> 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.
[demime 0.98b removed an attachment of type text/x-vcard which had a name of bryan.vcf]
_______________________________________________
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.