I've been having an issue with InDesign in a lab where the students use a network home directory(AFP). Occasionally, InDesign crashes when a student tries to open it. It seems to think that the preference files are in use somewhere even tho they are not. The solution to this is to navigate to ~/Library/Preferences/Adobe InDesign/Version 9.0/en_US/ and trash the file 'InDesign Defaults'. And this works but I want to create a Self Service policy that will delete this file for the user. But trying to rm /Network/server/user/path/to/InDesign Defaults as root gives a 'rm: InDesign Defaults: Resource busy' error.
Any idea how i might be able to do this using a script? Maybe an Applescript run as the user?