Copy files and burn CD from script

I’ve written a script to copy files to a blank CD i’ve inserted. I’d like to now burn the CD from within the script rather than click the burn button from within the finder.

Anyone any ideas ? I’ve searched these pages and can’t find anything about it ?

Jean-Baptiste LE STANG (author of XBurn) created the XBurn OSAXen for OS X more info at his website:
http://www.atilla.org/~macfan/article.php3?id_article=1
No example code available.

or if you are using Jaguar use Disk Copy:


tell application "Disk Copy"
BurnCD "My Backup CD"
end tell 

With Panther Disk Utility is no longer scriptable.

if you are adventurous you could use cdrtools (http://freshmeat.net/projects/cdrecord)
and use the hdiutil.

This might get you started in the right direction.