Well it's been a while and I was able to get this not only working great a long while ago. And ironically the "Show Contents" part was the easy part after all. It fires off at all kinds of triggers, Notifies me, Dings me and in the Australian Male voice that is the personae on my machine tells me want happened. Now that I have been using for a while a problem have developed. In order to the delete the file it has to be "Revealed" in the Finder, then deleted using the "Delete" key, then I have it set to auto fill the authorization window, send it off and clean up. I would like it if it could do all that behind the scenes. Since having it running for some time I have found that if I am working while it fires off, I get in the way. I have tried several things and each fails and what with the way "Notifications" work, I can't get the whole error so I can debug.
I have been reading in here all night and then did a search on the net that brought me back here. I found a topic that is really close to what I want to do. How to make a macro that deletes or trashes a file from the /libary folder? But it kinda get left hanging. Just like the OP is the post, I would like to locate and delete the file in the /Library directory without having to reveal it and go through all the hoopla. I can easily locate the file and reveal it in the Finder. In the post Peter chimed in and said:
"You wont be prompted for your admin password, no. The action should fail and report the failure, depending on the action settings.
"If it needs the admin password, then you’ll have to find an alternative, such as executing an AppleScript and executing the
rmcommand with administrative permissions, so setting up an entry in the sudoers file to allow it to be executed without a password and running asudo rmcommand."
I understand what he's saying and am having flash backs. So I went hunting for the resources to do the AppleScript. I dabbled in AS years ago and it wasn't all that bad. But now I'm the one that's bad. It just won't click for me. A lot of things aren't clicking for me lately.
So I'm wondering if anyone has a script/macro action or could direct me to one or the resources or help me in any other way, I would be most appreciative.