Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to have my USB flash drive auto-run a file on it when plugged in.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You could use Automator and folder actions on the /Volumes/ folder.

Just open Automator, add a new folder action and click Choose Folder. When the popup comes up press Command-Shift-g and type /Volumes/. Now just create a Workflow App that will be triggered whenever a device is mounted.

share|improve this answer
    
When I started it up the first thing was choose a template and a chose folder action, then I was in the program and it already knew choose folder. So how do I enter '/Volumes/' and how do I say when it should be triggered? Thanks. –  JShoe Jul 29 '11 at 2:18
    
Sorry, but I don't have my mac right now and I am no Automator expert. Maybe you will have more success at apple.stackexchange.com ? This article may also help you: automator.us/examples-08.html –  nmat Jul 29 '11 at 2:29
    
Thanks a lot!!! –  JShoe Jul 29 '11 at 2:32
    
@nmat No need suggesting another site, this only encourages cross posting. This question could have been migrated to Apple.SE if it doesn't get any useful answers, but it's now been asked anyway. –  slhck Jul 29 '11 at 10:32
    
@JShoe Did you get any further with the example nmat gave you? –  slhck Jul 29 '11 at 10:34
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.