tell a script to tend to system process for X amount of time?
tell a script to tend to system process for X amount of time?
- Subject: tell a script to tend to system process for X amount of time?
- From: "Patrick Collins" <email@hidden>
- Date: Wed, 16 Mar 2005 23:19:01 -0800 (PST)
- Organization: Collinator Studios
How can I tell a
script to GO AWAY for X amount of time?
I am speaking about a problem where I am updating iChat status
information every 5 seconds---------- In order to do this, after my
ichat status has been set, I am doing:
Code:
set thedate to (current date)
set thetime to time of thedate
set thetimeahead to thetime + 5
repeat until dogfood
if thetime = thetimeahead then
set dogfood to true
else
set thedate to (current date)
set thetime to time of thedate
end if
end repeat
end repeat
This results in my script taking up 95% of my cpu power because it is
processing this loop over and over every second-- trying to see if five
seconds have gone by.
How can I eliminate this problem??
How can I say "Mr. Applescript.. Please tell my G5 to tend to system
processes and come back in 5 seconds..."?????
thank you................
_________________
-patrick collins
http://collinatorstudios.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden