macosusbusb-drive

How to open finder on Mac OS X automatically when USB plugged in?


Super simple question, but I can't fond the answer.

I want the Finder to open mounted disk when I plug in USB drive... How?


Solution

  • Thank you @mark-setchell

    I've ended up with this Apple Script for my /Volumes folder:

    on adding folder items to this_folder after receiving added_items
        try
            tell application "Finder"
                --open window and activate finder 
                activate
                --open the USB
                open added_items
            end tell
        end try
    end adding folder items to
    

    So every time some new item appears in /Volumes folder Finder opens window and selects this item.

    This solution has some delay before opening finder (5-10 sec). I guess Folder Actions just work this way...