• 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: Simon Forster <email@hidden>
  • Date: Thu, 18 Apr 2002 15:56:22 +0100

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/BootingLogin/
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.

References: 
 >Re: Log out (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Word of advice: Going from Scripter PE to Script Debugger?
  • Next by Date: Re: Calling script libraries
  • Previous by thread: Re: Log out
  • Next by thread: RE: Log out
  • Index(es):
    • Date
    • Thread