Re: -LogoutHook question
Re: -LogoutHook question
- Subject: Re: -LogoutHook question
- From: "John C. Welch" <email@hidden>
- Date: Fri, 28 Feb 2003 06:47:30 -0500
On 02/28/2003 05:35, "Paul Reilly" <email@hidden> wrote:
>
> Can you use osascript and an applescript as part of a -LogoutHook parameter
>
> to /etc/ttys?
>
>
>
Yes, I think so.
>
We have it working with -LogoutHook calling a perl script which then
>
also runs some applescript using osascript.
Hmm...that's a bit different from mine...mine is running osascript right
from the -LogoutHook prompt...
I'm setting up a script that deletes everything in the logging out user's
font folder when they log out.
So what I have is:
property getCurrentUser : "/usr/bin/whoami"
property theCurrentUser : ""
property theCurrentUserFonts : ""
property posixFontPath : ""
property killTheFonts : "/bin/rm -r "
set theCurrentUser to do shell script getCurrentUser
set theCurrentUserFonts to path to fonts from user domain
set posixFontPath to POSIX path of theCurrentUserFonts
do shell script killTheFonts & posixFontPath & "*"
That should be working...
john
--
The GPL is not something we really considered to be a license so much as a
political manifesto, and speaking purely for myself, I prefer to keep my
license agreements and my politics separate. I feel that code which isn't
being used in a situation where it COULD be used is code which isn't
achieving its full potential and the GPL scares a lot of potential users
away, which is simply counter-productive in my opinion. I don't care whether
or not the users give their changes back to me, that's just an added bonus
if it happens and nothing I'd want to try and enforce at the point of a gun.
--Jordan Hubbard
_______________________________________________
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.