FG
💻 Software

Run script when a specific disk/memory card is mounted under OSX

Fresh5 days ago
Mar 15, 20268050 views
Confidence Score0%
0%

Problem

How do I run a script when a drive is mounted under OSX? My usecase is that I would like to automatically copy images from my USB memory/harddrive when it is inserted in my USB card reader, and when a DVD or CD is inserted I would like to copy it for storage in my media center. I've tried using Mar…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Run script when a specific disk/memory card is mounted under OSX

Low Risk

You could write a user launch daemon which runs when a filesystem is mounted. The thread here http://forums.macosxhints.com/archive/index.php/t-89968.html should help you get started. You'll need to write a launchd plist which runs a script when any…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment