Re: How can I simplify the math in this script?
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.
|
_______________________________________________
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