Autorun file on USB drive in OS X
Solution 1:
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.