Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Wowzera

macrumors 6502a
Original poster
Hello,

I'm currently trying to do the following:

Create a script or something else, that I just grab a file into it and it executes the terminal code:

Code:
sudo rm "filename"

So all it prompt me is to type my password.
 
I don't really understand what you are trying to do. Are you looking for something that you drag a file onto and have it ask your password? If so I really don't understand what the point would be.....
 
I don't really understand what you are trying to do. Are you looking for something that you drag a file onto and have it ask your password? If so I really don't understand what the point would be.....

I simple want a file (automator/applescript) that when I drag a file into its icon will execute that terminal code.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.