[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Logout w/o alert panel



On Mon, Mar 18, 2002 at 02:49:55PM +0900, tetuya takeo wrote:
> Dear list,
> 
> I manage to solve this problem by using AppleEvent, not by  
> AppleScript.
> After killing Terminals by kill signal then sending kAEQuitApplication  
> event to Finder, at last sending kAEQuitAll event to loginwindow makes  
> logout without alert panel gracefully.
> 
> I feel AppleEvent is simple and mighty (may causing security hole B-).

I just tried the same thing a few hours ago... did your method really
do it gracefully, prompting each app to quit separately?  I tried
sending a quit apple event to loginwindow (osascript -e 'tell
application "loginwindow" to quit') and it quit everything but did not
log me out, and eventually the Finder relaunched.  Weird.

-- 
=Nicholas Riley <njriley@xxxxxxxx> | <http://www.uiuc.edu/ph/www/njriley>
        Pablo Research Group, Department of Computer Science and
  Medical Scholars Program, University of Illinois at Urbana-Champaign