Re: Log out script in 10.2.x
Re: Log out script in 10.2.x
- Subject: Re: Log out script in 10.2.x
- From: Christopher Nebel <email@hidden>
- Date: Thu, 20 Feb 2003 13:33:38 -0800
On Wednesday, February 19, 2003, at 03:57 PM, Mr Tea wrote:
I don't know about correct, but Chris Nebel passed on this bit of code
many
moons ago, and it's worked flawlessly for me with every system update
since.
ignoring application responses
tell application "loginwindow" to <<event aevtrlgo>>
end ignoring
The double pointy brackets around the raw event call should be
replaced by
option-backslash and shift-option-backslash.
It's as correct as it's currently possible to be. The "rlgo" is short
for "really log out"; if you want the "are you sure you want to log
out" dialog, use aevtlogo instead. A future version of AppleScript
will have a real command similar to "shut down".
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.