• 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
Re: quit command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quit command


  • Subject: Re: quit command
  • From: Chris Page <email@hidden>
  • Date: Tue, 10 May 2011 12:24:49 -0700

On May 10, 2011, at 12:10 PM, Alex Zavatone wrote:

It's not a good idea to use Delay, since sometimes when it's compiled into an AS app or an OSX app ala xCode, it ends up monopolizing a processor.

If it does, that's a bug that should be fixed. Please report it if you haven't already. In any case, whether you use delay or idle, why have idle called every 0.5 seconds, but use x to throttle it to only perform work every 2.5? Why not simply:

tell application "TextEdit" to activate

on idle
if application "TextEdit" is running then
say "working"
return 2.5
else
quit
end if
end idle

-- 
Chris Page

 The other, other AppleScript Chris

 _______________________________________________
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

References: 
 >Re: quit command (From: Chris Page <email@hidden>)
 >Re: quit command (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: quit command
  • Next by Date: Re: Quicktime export using settings file problem
  • Previous by thread: Re: quit command
  • Next by thread: Quit Handler... What Am I Missing Here?
  • Index(es):
    • Date
    • Thread