Eject audio disc when finished burning
As a follow up to my previous post, using Applescript I'm selecting some audio files in the Finder, importing them into iTunes, then burning a CD in one pass. I've tried adding, using Automator, a shell script at the end to eject the tray using
do shell script "drutil tray eject"
but the problem is the action wants to happen before the CD is finished burning and iTunes returns a no cd present error. Can anyone suggests a method to let the first action finish or a check to make sure there is a cd with data present before attempting to eject?
Tried below. No luck.
OS X Mavericks (10.9)