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

Wowzera

macrumors 6502a
Original poster
Oct 14, 2008
857
28
Brazil
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.
 

P Mentior

macrumors regular
Sep 20, 2008
201
0
Ohio
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.....
 

Wowzera

macrumors 6502a
Original poster
Oct 14, 2008
857
28
Brazil
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.