title: how to use applescript calulate volume size list?
body: <p>I need to figure out how much is on a LOT of hard drives-over 150 USB and thunderbolt drives. I thought I could build an AppleScript or an automator action to get the total size of a volume, and subtract the "available." Ideally, I could start the script, it would watch for a volume to mount, do this math, and add it to a running total. </p>
  
  <p>We're shopping for a new server and we'd love to know how big of a drive we need to put on this thing to keep all these assets live. </p>
  
  <p>I'm pretty new at apple script, but I'm trying. I can't even find AS dictionary items that will look for mounted disks-much less do the math of adding (even if it's just outputting the information it's pulling into a tab delimited file I could calulate in Excel)</p>
  
  <p>Actually, maybe that's the ideal version. It sees a drive mount, gets the name, gets the total capacity, gets the free space...perfect world? a date created. Then adds that to a text file. </p>
  
  <p>Code, pointers to where to learn-all appreciated. </p>