Re: sysv and OS X 10.4.10 and .11
Re: sysv and OS X 10.4.10 and .11
- Subject: Re: sysv and OS X 10.4.10 and .11
- From: Donald Hall <email@hidden>
- Date: Thu, 20 Dec 2007 23:25:04 -0700
Title: Re: sysv and OS X 10.4.10 and
.11
Thanks to Philip and Ed for the replies.
What I want to do is some like this:
if system version is pre Leopard then
launch this program
else
launch that program
end if
Comparing strings will work fine:
set v to (system info)'s system
version
if v < "10.5" then
launch this program
else
launch that program
end if
(Of course, comparing strings will fail for something like
"10.4.9" and "10.4.10", but I should be okay until
OS X 10.10 comes out :-))
I have used "sysv" in the past, but was a little
nervous about it because of the way its scheme breaks down for .10 and
higher releases. Seems like something that could bite me in some
future version of AS.
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden