Run Script at Log out?

Is it possible to run a script when a user logs out?

I need to delete a folder everytime a student logs out of a eMac.

Thanks.
Ben.

I suggest that you check out Mike Bombich’s LoginWindow Manager. You might need to use a shell script instead of AppleScript but that shouldn’t be too difficult to figure out. :slight_smile:

– Rob

Thanks for the pointer.

I’ve got most of the basics together but where to you start when writting a Shel Script?? I know the command I want to use but how do you convert that to a Shell Script?

I’m not much of a shell scripter but you might be able to get some help on the forum that deals with AppleScript and the command line, even though your task is becoming unrelated to AppleScript. :wink:

http://bbs.applescript.net/viewforum.php?f=9

– Rob