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: Mr Tea <email@hidden>
- Date: Wed, 19 Feb 2003 23:57:50 +0000
This from Timothy K. Wilkinson - dated 19-02-03 09.15pm:
>
I've been using the following script to log out users in our lab using
>
10.1.5:
>
>
ignoring application responses
>
tell application "loginwindow" to quit
>
end ignoring
>
>
We are getting ready to upgrade to 10.2.4. When I run that script I don't
>
get an error but nothing happens either. Does anyone know the correct
>
syntax to have the machine log out in AS?
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.
HTH
Nick
_______________________________________________
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.