• 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: Philip Aker <email@hidden>
  • Date: Fri, 21 Dec 2007 00:56:46 -0800

On 2007-12-20, at 22:25:04, Donald Hall wrote:

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:

Yes.

set cv to (do shell script "sw_vers -productVersion | cut -d '.' -f 1-2 | tr -d .") as number
if (cv is less than 105) then
beep
end if


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

 _______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >Re: sysv and OS X 10.4.10 and .11 (From: Donald Hall <email@hidden>)

  • Prev by Date: Bash to AppleScript? (Is this possible to do with AS?)
  • Next by Date: Re: Bash to AppleScript? (Is this possible to do with AS?)
  • 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