Timing my scripts

Have a hole bunch of scripts that take a lot of time to process… like to try to time some of these scripts.

Is there a way to insert a timestamp at the beginning and at the end of the script then calculate how many seconds it spent doing that script?

Any help would be appreciated

just use the current date…

set startTime to current date

-- do some stuff

set totalSeconds to (current date) - startTime

You may want to take a look at this thread: http://macscripter.net/viewtopic.php?id=34336

regulus6633 thanks… that exactly what i needed to know… so easy… figures… :slight_smile: