Zipping an application package by script
Ken Ray
kray at sonsothunder.com
Fri Sep 12 02:25:50 EDT 2008
> function altGoodMacSystemForUnzip
> put systemVersion() into tNum
> set itemDel to "."
> put item 1 of tNum into t1
> put item 2 of tNum into t2
> put item 3 of tNum into t3
> if t1 < 10 then return false
> if t2 < 2 then return false
> if t2 = 2 and t3 > 8 then return true
> if t2 > 2 then return true
> return false
> end altGoodMacSystemForUnzip
Hey Chipp, FYI, here's a shorter way of performing the same check:
function altGoodMacSystemForUnzip
put systemVersion() into tNum
split tNum by "."
return (tNum[1]>=10 and ((tNum[2]=2 and tNum[3]>8) or (tNum[2] >2)))
end altGoodMacSystemForUnzip
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list