Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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 ? This article may also help you: – 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

Your Answer


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.