Re: delay procedure for waiting less than a second
Re: delay procedure for waiting less than a second
- Subject: Re: delay procedure for waiting less than a second
- From: julifos <email@hidden>
- Date: Wed, 10 Sep 2003 10:07:51 +0200
>
in a volume fadeout script for itunes i want to wait for a very short time,
>
sth like 100 milliseconds or so.
I wouldn't use a timer for 100 milliseconds, but some fake-timer, such as:
#############
repeat 20000 times
set x to 5 * 5
end repeat
#############
Anyway, you can install any millitimer-capable tool, such as "GetMilliSec"
osax and try this:
#############
set init to GetMilliSec
repeat
if ((GetMilliSec) - 100) > init then exit repeat
end repeat
#############
jj
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.