Saturday, 2 March 2019

macos - Autorun file on USB drive in OS X


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



Answer



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.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...