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

Re: Log Out


  • Subject: Re: Log Out
  • From: David Remahl <email@hidden>
  • Date: Wed, 25 Sep 2002 15:44:55 +0200

> Hello,
>
> I'm looking for a way to tell the system to log out from cocoa code.
> Even an AppleScript command would be great (I can send this event with
> NSAppleScript) but it doesn't seem to exist.
> The only thing I found so far was to kill "loginwindow.app" but it logs
> out so brutally that unsaved documents get lost!
>
> If only there was a way to "simulate" keystrokes in the finder, I could
> do "shift-command-Q" to log out, but as far as I know, it doesn't exist
> as well (I mean, with no additional software installed).
>
> I've also searched through the web archives, but I didn't find any
> helpful answer about that point.
>
> Thanks for any clue / help :-)

I posted a link to this article a week ago. It outlines an undocumented
loginwindow appleevent which will allow you to log out without user
interaction (unless there are documents unsaved).

<http://www.macosxlabs.org/documentation/kiosk/configuration/adminutility/ad
minutility.html>

/ rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Log Out (From: FlyMac <email@hidden>)

  • Prev by Date: Siemens Gigaset ISDN and Mac?
  • Next by Date: Re: OpenGL Texturing Example
  • Previous by thread: Log Out
  • Next by thread: Siemens Gigaset ISDN and Mac?
  • Index(es):
    • Date
    • Thread