• 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: Getting record items of a sublist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting record items of a sublist


  • Subject: Re: Getting record items of a sublist
  • From: Christopher Stone <email@hidden>
  • Date: Sun, 30 Oct 2011 19:00:35 -0500

On Oct 30, 2011, at 17:15, Nigel Garvey wrote:
Thanks! I'll give it a try. Not being able to use GetMilliSec on my Intel machine, I've been using André Berg's Unix executable "timetools". It's good, but subject to the overhead with 'do shell script'.
______________________________________________________________________

Hey Nigel,

I can't seem to find 'timetools' in either source or binary online.  Can you point the way?

The LapTime.osax has only the normal Applescript overhead, and is respectably fine-grained.

Here are my handlers.

** 'format xxx into' is a handy function of the Satimage.osax for formatting numeric display.

------------------------------------------------------------------------------------------------
# START_TIMER() == Uses the LapTime.osax to produces a timer set.
------------------------------------------------------------------------------------------------
on START_TIMER()
return start timer
end START_TIMER
------------------------------------------------------------------------------------------------
# STOP_TIMER() == Companion to START_TIMER() == Uses the Satimage.osax 'format' command.
------------------------------------------------------------------------------------------------
on STOP_TIMER(tmrNumber)
return format ((stop timer tmrNumber) / 1000) into "##.####"
end STOP_TIMER
------------------------------------------------------------------------------------------------

# USAGE:
set tmr1 to START_TIMER() of me
# Your script
set tmr1Stop to STOP_TIMER(tmr1) of me

It returns milliseconds, and you can get laptimes, so you can produce a list of time-points and a total.

LapTime is a really spiffy tool by Tetsuro Kurita.  He has several, but this is the only one I use regularly.

--
Chris

 _______________________________________________
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

References: 
 >Re: Getting record items of a sublist (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Getting record items of a sublist
  • Next by Date: QT Pro features
  • Previous by thread: Re: Getting record items of a sublist
  • Next by thread: Re: Getting record items of a sublist
  • Index(es):
    • Date
    • Thread