• 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: -Logouthook
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: -Logouthook
      • From: "John C. Welch" <email@hidden>
References: 
 >Re: -Logouthook (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: -Logouthook
  • Next by Date: Re: Compiled Script vs. compiled script
  • Previous by thread: Re: -Logouthook
  • Next by thread: Re: -Logouthook
  • Index(es):
    • Date
    • Thread