Table of Contents

What's LapTime ?

Requirements

How to Display Help

Install

History

License
Donation

Kurita Tetsuro
scriptfactory@mac.com

Script factory

Read Me First

What's LapTime ?

LapTime is an AppleScript library to measure execution time of AppleScript in accurary of a few milliseconds. It is useful to evaluate performance of a script and to tune up the script.

You can measure execution time by using current date command which is AppleScript's built-in command. But time resolution of AppleScript's date class is 1 sec, which is too rough for performance measurements. By using NSDate of Cocoa, the time resolution of LapTime is below a few msec.

Requirements

System

  • OS X 10.9 or later
    • Developed and tested on macOS 10.14.6.

Depending Libraries

Required to install with LapTime .

How to Display Help

The manual consisted of the reference generated by AppleScriptDoc and sample code is stored in the bundle of "LapTime.scptd". After installation of OpenHelpBook.scptd, run "LapTime" from Script menu.

The detail manual of "LapTime" should be displayed in Help Viewer.

Install

Copy LapTime.scptd into either following locations.

Your Home/Library/Script Libraries/

or

/Library/Script Libraries/

History

  • 2.1.1 -- 2020-04-12
    • Fixed : did not work in OS X 10.9
  • 2.1 -- 2020-02-26
    • Add "lap_" method.
  • 2.0 -- 2020-02-12
    • First release.
    • Scripting additions don't work on macOS 10.14 or later. This libray is aimed to replace LapTime.oax.