>What about attaching a Folder Action AppleScript to the Temp Incoming >folder? > >The AppleScript would look for the occurrence of a ".DS_Store" file in >the folder and if it finds one, it then deletes it.
I thought of that, but I couldn't figure out how to do Folder Actions in OS X. (And there is no need for this in OS 9 as the file won't create itself at all there). Can you DO folder actions in OS X? I also looked at making a script available from Emailer Scripts menu that would trash the file on demand. I did this because my wife went thru a nasty bout of the file reappearing (tracked it to the Emailer Files folder being open when the Temp Incoming folder was recreated). The script I wrote was actually pretty nice... it detected the path to the Temp Incoming folder based on the running copy of Emailer, and deleted the DS Store file it if was present. However, I had to abondon the script because it doesn't work. You can't delete any file starting with a period in AppleScript. The Finder won't acknowledge the existance of the file at all. So you have to do it by scripting the command line, peice of cake... except that for a reason I couldn't figure out (gave up), when a script is started from Emailer's Script menu, it can't send a command to the command line. Its as if the script command doesn't exist. I'm guessing it might have something to do with sending the commands to the wrong AppleScript additions (OS 9 instead of OS X), but I gave up in trying to figure it out. I suppose it would also be possible for it to call another script that then deletes the file... but I haven't called external scripts before, and this wasn't important enough to me to by my first attempt. If anyone wants the script as is to try to get working, let me know, I think I still have it on my home computer. -chris <http://www.mythtech.net> ___________________________________________________________________________ To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>

