Re: -Logouthook
Re: -Logouthook
- Subject: Re: -Logouthook
- From: "John C. Welch" <email@hidden>
- Date: Sat, 01 Mar 2003 16:12:25 -0500
On 03/01/2003 13:30, "Paul Reilly" <email@hidden> wrote:
>
> I need to find out if -logout hook is performed as the user logging out, or
>
> it runs after the user has logged out.
>
>
>
it happens before the user logs out and before the finder is killed.
Okay, so this is making me nuts...can't figure out WHY this isn't working...
My TTYS file line looks like:
console
"/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
-LogoutHook /Library/Scripts/killuserfonts.sh" vt100 on secure
window=/System/Library/CoreServices/WindowServer onoption="/u
sr/libexec/getty std.9600"
The killuserfonts.sh script is:
#!/bin/sh
#script that attaches to osascript to delete user fonts
/usr/bin/osascript /Library/Scripts/killUserFonts.scpt
And killUserFonts.scpt looks like
property theCurrentUserFonts : ""
property posixFontPath : ""
property killTheFonts : "/bin/rm -r "
property testKill : "/bin/rm -r /Users/jwelch/test/oldfonts/*"
property killFontCommand : ""
set theCurrentUserFonts to path to fonts from user domain
set posixFontPath to POSIX path of theCurrentUserFonts
set killFontCommand to killTheFonts & posixFontPath & "*"
do shell script killFontCommand
--do shell script testKill
Now, if I use the "do shell script testKill" line, that works...
I know I'm missing something simple, I just can't figure out what.
john
--
"If you're not gonna pull the trigger, don't point the gun."
- James Baker
_______________________________________________
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.