• 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: Installer script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Naming Files from List Ref
  • Next by Date: Re: Naming Files from List Ref
  • Previous by thread: Re: Installer script
  • Next by thread: Installer script
  • Index(es):
    • Date
    • Thread