• 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 20:05:10 -0400

The idea was to routinize it so you could pass them as arguments; if you can pass the constants themselves, yeah, that's better.  Never thought of doing that.  But I'm still noodling on a clever way of doing numeric base conversions, as that would result in a script of something between 1 and 4 lines.

Best,
Jeff


On Jun 16, 2008, at 7:56 PM, Michelle Steiner wrote:

On Jun 16, 2008, at 4:48 PM, Jeff Porten wrote:

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"}

Why set timeDividers to numbers when there are predefined constants of weeks, days, hours, and minutes?

-- Michelle

-- 
The Constitution is no ceiling of liberties. It is a floor of freedoms.
 _______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >How can I simplify the math in this script? (From: Michelle Steiner <email@hidden>)
 >Re: How can I simplify the math in this script? (From: Jeff Porten <email@hidden>)
 >Re: 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