• 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: sysv and OS X 10.4.10 and .11
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: sysv and OS X 10.4.10 and .11
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Help with mail please
  • Next by Date: Re: How to start/restart the Finder from an AS app?
  • Previous by thread: Re: sysv and OS X 10.4.10 and .11
  • Next by thread: Re: sysv and OS X 10.4.10 and .11
  • Index(es):
    • Date
    • Thread