1

I want to automatically burn a cross-platform data CD with the same contents each time a blank disc is inserted, and eject it when done. To that end I created a very simple AppleScript that does just that:

do shell script "/bin/bash -c 'hdiutil burn ~/Desktop/catalog.iso'"

It works fine from the AppleScript editor. If I click "Run" with a blank CD inside, it burns the CD with the data from the .iso and ejects it upon completion.

However, if I select "Run ~/Desktop/burn.scpt" as the default action when inserting a blank CD, nothing happens. I actually have to open the AppleScript editor and select "Run". How can I make it actually run the script?

blank cd dialog

1

Open burn.scpt in the AppleScript Editor and save it as an Application. Then select burn.app as the desired action on CD popup.

  • That's a good idea, but it still doesn't work! If I insert the CD and then double-click the newly created Burn application it works, but it doesn't work if I auto-run it on insert. – michaelmichael Jan 21 '12 at 5:49
  • Hmm. What version of the OS are you running? I'll try to replicate the problem. – Daniel Jan 21 '12 at 13:56
  • Running Mac OS 10.7.2 – michaelmichael Jan 21 '12 at 18:33
  • 'Doh. Sorry, I can't replicate, because my machine running 10.7.2 doesn't have a CD drive. Maybe someone else can help here. – Daniel Jan 21 '12 at 23:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .