• 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
Restart without asking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Restart without asking


  • Subject: Restart without asking
  • From: Daniel Robinson <email@hidden>
  • Date: Mon, 05 Mar 2001 19:11:34 -0500

I have 60 Macs with college kids leaving them in all different states. My "Put-Things-Where-They-Belong" script
is working fine except when I try to restart. If there is an open app with an unsaved document the script times
out because the App's asking if I want to save the document.

What I really want is a line that says in effect: "Restart ignoring everything."

What I'll accept is quitting, saving, or otherwise getting rid of those documents so the blasted thing WILL
restart.

Thanks,

--Dan

-----

tell application "Finder" to get the name of application processes -- <command-L>
whose visible is true and name is not "Script Editor"

set quitList to result as list

repeat with TheApp in quitList
quit application TheApp without saving
end repeat

-----


  • Prev by Date: Re: Folder action script tutorials?
  • Next by Date: Re: Where is the Searchable Applescript-users Archive?
  • Previous by thread: Re: Order of postings to list
  • Next by thread: Re: applescript-users digest, Vol 2 #461 - 13 msgs
  • Index(es):
    • Date
    • Thread