Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

share|improve this question

1 Answer 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.

share|improve this answer
    
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 Lawson 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 Lawson Jan 21 '12 at 23:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.