Re: Comparing version strings
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