Mount usb-drive via shellscript or automator

Joined
Aug 23, 2009
Messages
1
Reaction score
0
Points
1
Hello,

I want to write a shellscript that looks each five seconds if an USB stick is attached and then copies some files onto the stick. But in MacOSX (10.5) each USB stick has its own name. So copying the files to /Volumes/USB-Stick works only if the name is "USB-Stick". Is there an alternative way to mount the stick with a static path (e.g. mount /dev/usb /mnt/usbdrive)?

Or how do I tell the name of the stick to automator, so that I can copy dynamicly the files to the stick via (/Volumes/$Stickname) ?

Thank you for your help.

Best regards

Andre
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top