• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
tell a script to tend to system process for X amount of time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: tell a script to tend to system process for X amount of time?
      • From: peter boardman <email@hidden>
    • Re: tell a script to tend to system process for X amount of time?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: list to a text representation of that list (followup)
  • Next by Date: Re: list to a text representation of that list (followup)
  • Previous by thread: Re: getting chunks of text
  • Next by thread: Re: tell a script to tend to system process for X amount of time?
  • Index(es):
    • Date
    • Thread