Toast 11 - can't "make new Audio disc"

I’m about to write a script for Toast, to begin with I’d like to specify the format:
This short script returns error “Can’t make class Audio disc.”

tell application "Toast Titanium"
	set current disc to make new Audio disc
end tell

Anyone?

Is there anything like Audio disk in dictionary?

(You can import the dictionary into AppleScript Editor by dragging and dropping Toast onto the library window.)

yes there is.

set x to make new Audio disc with properties {title:"YACD1"}
add to x items theFiles

works.

the current disc is a read only properrty of Toast. You cannot set it.

PS: be aware that Toast does not close any files you add to the disk. You have to close Toast at some point if you are going to use the files somehow.

This script returns the same error “Can’t make class Audio disc.”

tell application "Toast Titanium"
	set x to make new Audio disc with properties {title:"YACD1"}
	add to x items theFiles
end tell

I didn’t set “theFiles” but that doesn’t matter since the error shows up before I guess.

Sorry to hear that. Works every day for me!

I’ll advice you to try it as mouramartins specified. :slight_smile:

Are you using Toast 11?
Could be they changed something.
Would be good to know which version you use, I could try the same as you have to see if there’s a difference.

I tried it, like I posted before, no luck though.
Or am I misunderstanding something here?

I use Toast 10. I looked into 11 and nothing seems changed. But…
Thay still use an “aete” resource to define the dictionary and OS 10.8 seems to have broken some.

try:

set x to «event corecrel» given «class kocl»:«class dCDA»

Hi mouramartins,

would you have an idea of how to change this script so that it works in Toast 11?:

tell application "Finder"
	set ml to (sort every file of (folder "HD2:sjungarna_inspelningar:199 - Mohedaskolan:bounce:") by name)
end tell
repeat with anItem in ml
	set contents of anItem to anItem as alias
end repeat

tell application "Toast Titanium"
	activate
	make new Audio disc with properties {name:"testing Disc"}
	add to current disc items ml
	save current disc in "/Users/Tobias/Desktop/CDSKIVA_2.disc"
end tell

It works just fine in Toast 10 - in 11 the “make new Audio disc” doesn’t work

Did you try my previous post, to replace the make new audio disc line?

mouramartins,

I just tried to replace " make new Audio disc with properties {name:“testing Disc”}"
to your “set x to «event corecrel» given «class kocl»:«class dCDA»” which translates into “set x to make new Audio disc” when you compile.
It works in Toast 10, it doesn’t work in Toast 11.

As it should.

I guess one has to conclude that Toast 11 is broken. Thanks for the warning!