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: Leo <email@hidden>
- Date: Wed, 10 Sep 2003 23:32:53 +1000
thanks for the tip with getMilliSec.
i even found the scriptinmg addtion (
http://osaxen.com/getmillisec.html)
but it doesn't seem to work on my os x imac:
after moven the scriptingaddtion in the scripting addition foilder i
can't access it via open directory. i get the error msg box;
"could not read getmillsec.osax beacuase its not scriptable."
any idea?
julifos wrote:
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.
_______________________________________________
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.