• 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: Log out script in 10.2.x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Log out script in 10.2.x (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Handler works only once
  • Next by Date: exists command in FMP
  • Previous by thread: Re: Log out script in 10.2.x
  • Next by thread: Re: Log out script in 10.2.x
  • Index(es):
    • Date
    • Thread