Re: Installer script
Re: Installer script
- Subject: Re: Installer script
- From: Kai Edwards <email@hidden>
- Date: Mon, 02 Sep 2002 08:48:30 +0000
on Mon, 02 Sep 2002 04:45:57 +0000, I wrote:
>
---------------------------------------------------------------
>
tell application "Finder" to set {x, y} to {0, computer "sysv"}
>
repeat with n from 3 to 0 by -1
>
set {x, y} to {x + (y div (16 ^ n)) * (0.1 ^ -(n - 2)), y mod (16 ^ n)}
>
end repeat
>
display dialog "Mac OS Version: " & x
>
---------------------------------------------------------------
I'm sure I missed a whole bunch of refinements, there - but here's a couple
of small ones for that middle line:
----------------------------------------------------------------------
tell 16 ^ n to set {x, y} to {x + (y div it) * (0.1 ^ (2 - n)), y mod it}
----------------------------------------------------------------------
Kai
--
email@hidden
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.