RE: Log out
RE: Log out
- Subject: RE: Log out
- From: Joe Kelly <email@hidden>
- Date: Thu, 18 Apr 2002 10:21:13 -0700
Wow that's cool. You could implement Logout and Login Items folders with the
-logouthook/-loginhook. You'd have to come up with the shell script
equivalent of:
if exists folder "~/Logout Items/"
do shell script "open '~/Logout Items/*' "
end if
Anyone? Anyone?
My question is why Apple doesn't do that already.
joe
-----Original Message-----
From: Simon Forster
To: Applescript List
Sent: 4/18/02 7:56 AM
Subject: Re: Log out
On 4/18/02 12:46 AM, "Sven Nil" <email@hidden> wrote:
>
I ment that the user logs out.
>
The computer executes my script when it logs out,
>
the script executes,
>
and the computer continues to log out.
>
>
Sorry for my bad explaination.
On Thursday, April 18, 2002, at 08:56 AM, Paul Berkowitz wrote:
>
Since what you want is not precisely possible in OS X, the others were
>
suggesting that the user should run your script INSTEAD of logging
out.
>
(You
>
can keep the script in the script menu,. so it's just as easy.) The
>
script
>
will do the things you want it to do, then finish by logging out.
This cropped up yesterday. Take a look at:
<
http://developer.apple.com/techpubs/macosx/Essentials/SystemOverview/Bo
otingLogin/
Customization_Techniques.html>
You can modify /etc/ttys to include a -LogoutHook. This allows you to
specify a (shell) script which'll be called every time a user logs out.
This works in OS 10.1.3 and 10.1.4. It may have been broken in earlier
versions.
There is an anomaly in that when you shutdown (which, perforce, logs you
out), the script does not seem to run. Although this may be a
strangeness I'm experiencing as the script I'm testing sends me an email
on logout. As shutdown will kill the (local) mail server, the mail may
end up getting nuked.
Anyway, HTH
Simon Forster
________________________________________________
LDML Ltd, 4/5 Hazlitt Mews, London, W14 0JZ, UK
<tel int="+44 20 7602 9370" uk="020 7602 9370">
<fax int="+44 20 7371 6662" uk="020 7371 6662">
<
mailto:email@hidden>
________________________________________________
_______________________________________________
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.
_______________________________________________
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.