Re: Mystical Arcane Loginwindow events!
Re: Mystical Arcane Loginwindow events!
- Subject: Re: Mystical Arcane Loginwindow events!
- From: Christopher Nebel <email@hidden>
- Date: Thu, 10 Apr 2003 22:48:07 -0700
On Thursday, April 10, 2003, at 09:23 PM, Gnarlodious wrote:
I know you can say:
ignoring application responses
tell application "loginwindow" to [event aevtrlgo]
end ignoring
--replace brackets with right angle quotes for raw event call
Are there similar event calls for the functions "Shut down",
"Restart" and
"Sleep" for bypassing the blasted confirmation dialog?
Yes, but you're not obliged to use them raw, because telling either
Finder (see the Legacy Suite) or System Events (see the Power Suite)
will send the appropriate ones. (They're aevtshut, aevtrest, and
aevtslep, respectively, if you really care.) A future release will add
"log out" to System Events as real terminology and won't claim that
they all need direct parameters.
Bear in mind that all of these will still tell every application to
quit, which means you may get "do you want to save changes?" alerts.
Currently, the only way around this is to tell everything to quit
saving yes (or no) yourself first. We're investigating adding a
"saving yes/no/ask" parameter to the various Power Suite verbs.
--Chris Nebel
Apple Development Tools
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.