Re: -Logouthook
Re: -Logouthook
- Subject: Re: -Logouthook
- From: Christopher Nebel <email@hidden>
- Date: Sun, 2 Mar 2003 18:49:57 -0800
On Sunday, March 2, 2003, at 05:14 PM, John C. Welch wrote:
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
Two versions, both fail miserably:
Simple version
property theUser : ""
property killFontCommand : ""
property killTheFonts : "/bin/rm -r "
I hate to ask this, but seeing as how you're relying on "do shell
script" and largely hardcoded paths within the user's home, why are you
bothering to write this in AppleScript? Why isn't the entire script
written in sh in killuserfonts.sh?
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.