• 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: background app won't quit.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: background app won't quit.


  • Subject: Re: background app won't quit.
  • From: Emmanuel <email@hidden>
  • Date: Mon, 19 Dec 2005 20:16:10 +0100

At 5:51 PM +0000 12/19/05, Andy Huntington wrote:
My problem comes when I want to quit the script. I have to force quit.
It makes my shutdown hang.

Any advice warmly welcomed :-)

			if n = 0 then
				display dialog "The camera is empty."
				eject disk diskname
				return
			end if

"return" only terminates the execution of the current handler - namely, the "idle" handler. I think what you want is "quit" but if you replace your "return" with "quit" you will really be telling Finder to quit, which it will probably do. You've got to slightly amend your script and have a conditional "quit" outside the tell app "Finder" structure.


Something like (pseudo script): if n = 0 then set willQuit to true, else set willQuit to false, with timeout of 600 seconds move the files, end if, end tell, if willQuit then quit.

Emmanuel
_______________________________________________
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


References: 
 >background app won't quit. (From: Andy Huntington <email@hidden>)

  • Prev by Date: background app won't quit.
  • Next by Date: Re: background app won't quit.
  • Previous by thread: background app won't quit.
  • Next by thread: Re: background app won't quit.
  • Index(es):
    • Date
    • Thread