• 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
The 'resume' trap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The 'resume' trap


  • Subject: The 'resume' trap
  • From: Lists <email@hidden>
  • Date: Thu, 22 Nov 2012 11:07:09 -0800

Yesterday, I wrote a small AppleScript app to quit an application before I shut down my computer. The application Cookie would occasionally show 2 iterations in the dock on startup and I was trying to stop that (in the belief that perhaps Mt. Lion's resume feature was responsible).

The script:

try
tell application "Cookie" to quit
end try

tell application "System Events" to shut down

worked fine.

That is until I started up my machine today!

Now the computer starts up and immediately shuts down - Thanks to resume.

Thankfully I remembered what I did last night at 2 AM, and booted with the shift key down. Then I deleted my little app and decided that shut down applets are a bad idea.

J
 _______________________________________________
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: why o why won't my window display?
  • Next by Date: Re: why o why won't my window display?
  • Previous by thread: Re: why o why won't my window display?
  • Next by thread: [ANN] Update to AppleScriptObjC Explorer
  • Index(es):
    • Date
    • Thread