• 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: Comparing version strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comparing version strings


  • Subject: Re: Comparing version strings
  • From: KOENIG Yvan <email@hidden>
  • Date: Thu, 11 Dec 2008 16:02:21 +0100


Le 11 déc. 2008 à 15:05, SVV Satyanarayana a écrit :

The following command give the version of mono:
do shell script "/usr/bin/mono -V | awk '/version/ {print $5}'"

I am getting the output as "1.2.5"
Now I want to compare the mono version whether it is greater than or equal to 1.2.5 using script.
How to check it through Apple Script.


Thanks & Regards,
Satya.


set v12 to "1.2"
set v125 to "1.2.5"
set v127 to "1.2.7"
set v13 to "1.3"
set match to v125 > v12 (* returns true *)
log match
set match to v127 > v125 (* returns true *)
log match
set match to v13 > v127 (* returns true *)
log match


Yvan KOENIG (from FRANCE jeudi 11 décembre 2008 16:01:46)


_______________________________________________ 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: Comparing version strings
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Finder folder names (From: Luther Fuller <email@hidden>)
 >Re: Finder folder names (From: Luther Fuller <email@hidden>)
 >Re: Finder folder names (From: Tim Mansour <email@hidden>)
 >Re: Finder folder names (From: Luther Fuller <email@hidden>)
 >Dock folder menus (From: Luther Fuller <email@hidden>)
 >Comparing version strings (From: SVV Satyanarayana <email@hidden>)

  • Prev by Date: Code Signing
  • Next by Date: Folder action scripts playing rough ?
  • Previous by thread: Re: Comparing version strings
  • Next by thread: Re: Comparing version strings
  • Index(es):
    • Date
    • Thread