Finder CD Burner Script

I want to be able to copy an existing audio file (AIFF) to a CD and have the finder burn it. I can not seem to figure out how to do that.

I currently have an applescript to copy the file into iTunes and then tell iTunes to burn it. It works but everytime they update iTunes I have to rework it. It seems it would be more stable to have the Finder do it.

Any Help

Thank you very much

Kevin

Model: Intel iMac
Browser: Safari 525.27.1
Operating System: Mac OS X (10.4)

Hi,

the Finder (GUI) can’t burn audio CDs, but the shell can

do shell script "/usr/bin/drutil burn -audio '/path/to/file.aiff'"

Thanks for responding. I will try to play with this script and let you know.

A few questions though:

One the path to the AIFF file is with “/” and the ’ is supposed to be in the string. Can I make the path a variable that I get from another script?

Two will the script work for system 10.4 and 10.5

Thanks for the great help

Model: iMac
Browser: Safari 525.27.1
Operating System: Mac OS X (10.4)

Yes, of course. The path must be slash separated and the single quotes are necessary, if the path contains any special characters like spaces.
In AppleScript it’s strongly recommended to use quoted form of to escape the path

I think so. Look into Terminal.app > man drutil, if the -audio parameter is available in Tiger

I looked under the terminal for system 10.4.11 and saw

DRUTIL(1) BSD General Commands Manual DRUTIL(1)

NAME
drutil – interact with CD/DVD burners

SYNOPSIS
drutil verb [options]

DESCRIPTION
drutil uses the DiscRecording framework to interact with attached burning
devices. Common verbs include burn, erase, eject, help, info, list,
status, and tray.

 The rest of the verbs are: bulkerase, cdtext, discinfo, dumpiso, dumpudf,
 filename, getconfig, poll, subchannel, trackinfo, and version.

VERBS
Each verb is listed with its description and individual arguments. Drive
selection arguments must appear before individual arguments. Drive
selection and argument descriptions can be found after the verb descrip-
tions in the Drive Selection Criteria section.

I do not see “-audio”

thanks for all the help

Model: imac intel
Browser: Safari 525.27.1
Operating System: Mac OS X (10.4)

have you scrolled down until the end of the man page?