• 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: How can I simplify the math in this script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I simplify the math in this script?


  • Subject: Re: How can I simplify the math in this script?
  • From: Jeff Porten <email@hidden>
  • Date: Mon, 16 Jun 2008 19:48:50 -0400

Thought 1: Not enough time right now to write out a full answer, but I got as far as this with the intention of passing it to a routine:

set timeDividers to {7 * 24 * 60 * 60, 24 * 60 * 60, 60 * 60, 60}
set timeLabels to {" weeks", " days", " hours", " minutes"}

Thought 2: The dead simplest way is to express Launch3G in base 60, fetch the last two digits, then reexpress the remainder in base 24 and base 7 and grabbing the last digit of each.  Problem is that I don't know offhand of a calculator that will do that -- but my guess is that there's something accessible via do shell script.

Best,
Jeff

 _______________________________________________
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: How can I simplify the math in this script?
      • From: Michelle Steiner <email@hidden>
References: 
 >How can I simplify the math in this script? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How can I simplify the math in this script?
  • Next by Date: Re: How can I simplify the math in this script?
  • Previous by thread: Re: How can I simplify the math in this script?
  • Next by thread: Re: How can I simplify the math in this script?
  • Index(es):
    • Date
    • Thread