Re: newbie question about timers...
Re: newbie question about timers...
- Subject: Re: newbie question about timers...
- From: Axel Luttgens <email@hidden>
- Date: Tue, 10 Mar 2009 13:15:03 +0100
Le 10 mars 09 à 09:54, J. Stewart a écrit :
On 3/9/09 at 3:11 PM, email@hidden spake thusly:
That really is the preferred way (an idle handler) but for quick
and dirty
pauses I just stick in a perl command:
set SECONDS_TO_PAUSE to 30
...
do shell script "perl -e 'sleep " & SECONDS_TO_PAUSE & ";'"
- Dan
Why bother when -
delay 30
is a lot simpler to write
Up to 10.4.3, the delay command had a surprisingly very heavy CPU load.
Even with the additional improvements that came with 10.5, it still
has a noticeable load, when compared to idle handlers or the sleep
binary (or some shell's equivalent built-in).
As a result, depending on the OS version and/or the criteria
considered for comparing various means to pause a script, the delay
command may appear as an inferior choice.
and doesn't need to spawn a shell.
And that's of course one criterion to be taken into account... ;-)
Axel _______________________________________________
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