logout hook and AppleScripts
logout hook and AppleScripts
- Subject: logout hook and AppleScripts
- From: Donald Hall <email@hidden>
- Date: Mon, 17 Apr 2006 23:59:15 -0700
Title: logout hook and AppleScripts
I want to have the ability to run an arbitrary set of scripts
(both AppleScript and shell) when the user logs out. From reading the
Apple documentation and the archives of this list, it looks like a
"logout hook" for the loginwindow application is the way to
go. The documentation is a little sparse, so I am wondering if anyone
can point out the pitfalls and gotchas to me. It looks like the logout
hook must be a shell script, but that shell script can then launch
another application (a script runner in my case) to run the scripts. I
assume loginwindow waits for the logout hook script to return before
resuming the logout procedure. (What then happens to any application
it launches?)
I tried to do something with the quit handler of my current
AppleScript based script runner (i.e. determine that Quit is being
sent by the logout procedure and then run my scripts), but as it is a
background application it is unceremoniously killed after being sent a
Quit message, so the results are extremely unreliable.
Thanks for sharing any experiences,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden