title: automatically copy contents of inserted media to folder
body: <p>I have a lot of previously backed up data burned on CDs/DVDs to copy back to my hard drive.
  I'm looking for a way to dump everything on an inserted media to some folder (pref. created by volume name), by some automated way (pref. via <em>applescript</em> or <em>shell script</em>) that would:</p>
  
  <ul>
  <li>create folder by volume name dump</li>
  <li>dump contents of inserted media in folder</li>
  <li>eject media </li>
  <li>wait for next media to be inserted</li>
  </ul>
  
  <p>My problem resides in the fact the all of these disks have random volume labels (it's not exactly random, but let's go with random to be sure). </p>
  
  <p>Since I don't know the volume label beforehand, and every mount point (in /Volumes) and device name (in /dev) is dynamically assigned on Mac, where do I start to find what media has just been inserted (assuming to no other devices or media are going to be inserted for the time of the script).</p>
  
  <p>I've been looking for quite some time, but most things I found deal with known volume labels.</p>
  
  <p>Any ideas would be very appreciated!</p>
  
  <p>Thanks in advance!</p>