• 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: Application Bundle won't quit at Shutdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application Bundle won't quit at Shutdown


  • Subject: Re: Application Bundle won't quit at Shutdown
  • From: has <email@hidden>
  • Date: Mon, 14 Dec 2009 23:07:14 +0000

On 14 Dec 2009, at 22:53, email@hidden wrote:

>
> To: asu Users <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
>> There is something very hokey with your script's design if you feel
>> a need to 'kill' it. You wouldn't happen to have an infinite loop
>> with a 'delay' command, by any chance? [...]
>
> 	Here's the script so that everyone can see what I'm trying to
> accomplish:
>
> [...]
> 	repeat
> 		delay (theMinimumInterval * 60)
> 		[...]
> 	end repeat

There's your problem: an infinite repeat loop that ensures control never returns to the application's main event loop, preventing any incoming events (such as 'quit') from being handled. You need to rework your script to eliminate this loop and use an 'idle' handler to drive these periodic checks instead, as in:

	on idle
		-- do stuff here
		return (theMinimumInterval * 60)
	end idle

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

 _______________________________________________
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

  • Prev by Date: Re: Application Bundle won't quit at Shutdown
  • Next by Date: Re: Application Bundle won't quit at Shutdown
  • Previous by thread: Re: Application Bundle won't quit at Shutdown [Solved]
  • Next by thread: RRe: Modified "modification date"
  • Index(es):
    • Date
    • Thread