Auto run workflow, upon mounting of USB drive

Hi,

I am trying to create a workflow, that copies all the files for my Dissertation to a folder on a USB drive.

I have got the basic workflow to work, using Get specified finder items>Get folder contents>Copy folder contents, which works fine however I would like this workflow to automatically run every time I insert my USB stick, so it always has the most up to date version of the files on it and I cant find out how to do this last bit!

Any ideas?

Regards

Simon

Macbook Pro 2.4GHz, Mac OS X (10.5.2)

Posted on Apr 12, 2008 10:52 AM

Reply
3 replies

Apr 12, 2008 11:39 AM in response to SimonWrigley

you can use a launch daemon set to be triggered when you mount a disk.
Use [Lingon|http://lingon.sourceforge.net> for that. If the only disk you ever mount is your USB stick, it's quite straightforward. Just set the launch daemon to run your workflow on disk insertion.

If you also use other disks you'll simply get an error message when you mount something else and your thumb drive is not present. If you don't want to see the error message you can use an apple script. Something along the following lines:

-----------------
tell application "Finder"

if exists disk "thumbdrivename" then
tell application "path:to:your:workflow" to launch
end if

end tell

----------

and set the daemon to run that instead of your workflow.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Auto run workflow, upon mounting of USB drive

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.