Would anyone know how to set correctly the disc name, the menu title, the menu style and the write speed.
I’ve tried with this script and I am unable to get it to work correctly.
Thanks again!
Daniel
set FMPrec to "0102"
set videoFolder to "Data:VIDEOfolder:"
set monDVD to "myDVD"
set menuTitle to "abcdef"
set menuStyle to "Warp"
set speedDisk to "x8"
set stringLength to length of FMPrec
tell application "Toast Titanium"
with timeout of 0 seconds
set toast_project to current disc
set monDVD to (name of Video disc)
set menuTitle to (menu title of Video disc)
set menuStyle to (menu style of Video disc)
set speedDisk to (write speed of disc)
repeat with i from 1 to stringLength by 4
if stringLength - i < 4 then
set nextpar to (text i thru -1 of FMPrec)
else
set nextpar to (text i thru (i + 3) of FMPrec)
end if
set theFolder to (text 1 thru 2 of nextpar)
set files_to_add to videoFolder & theFolder & ":" & "M2U0" & nextpar & ".MPG" as string
add to toast_project items {files_to_add as alias}
delay 1.5
end repeat
end timeout
end tell
tell me to activate
the main problem in this script is the timeout block. Delete it.
If you want to create a new disk, the syntax is supposed to look like (untested)
set FMPrec to "0102"
set videoFolder to "Data:VIDEOfolder:"
set monDVD to "myDVD"
set menuTitle to "abcdef"
set menuStyle to "Warp"
tell application "Toast Titanium"
set toast_project to make new Video disc with properties {menu title:menuTitle, menu style:menuStyle, name:monDVD, write speed:x8}
set files_to_add to {}
repeat with i from 1 to stringLength by 4
if stringLength - i < 4 then
set nextpar to (text i thru -1 of FMPrec)
else
set nextpar to (text i thru (i + 3) of FMPrec)
end if
set theFolder to (text 1 thru 2 of nextpar)
set end of files_to_add to (videoFolder & theFolder & ":" & "M2U0" & nextpar & ".MPG") as alias
end repeat
add to toast_project items files_to_add
end tell
write speed is an enumerated constant, a string does not work.
This is my most recent version of this script. It being executed inn the following computer:
macbook pro with Mavericks using Toast 10 - works fine
macbook pro with Mountain Lion using Toast 11 - works fine
just arrived MAC with Yosemite using Toast 12 - getting an error
The error says : error “T1 got an error: Can’t make class Video disc.” number -2710 from Video disc to class
Would someone have an idea why it works with Mavericks and Mountain lion" and not yosemite?
I’Ve just received a new mac and configuring everything with it. Unfortunaly the script works fine with Toast 10 and TOAST 11 but not with Toast 12 using Yousemite. I am running out of ideas could someone help men with this.
I’ve installed Toast 10 on new MAC with Yosemite and the script works fine.
The error error “T1 got an error: Can’t make class Video disc.” number -2710 from Video disc to class does show anymore. I will get in touch with ROXIO to find out why this is happening.
The new MAC has a SSD drive and it takes 8 seconds to launch Toast, to set the parameters (menu title, menu style…) and to load the video files and I can start burning. This is pretty fast.
Unfortunately, always at the same place i.e Writing the lead-in and lead-out takes most of the time.
I will post the answer I will be getting from ROXIO.
Thanks for your help!
SPECIAL THANKS s to Stefan for giving me this line “set toast_project to make new Video disc with properties {menu title:menuTitle, menu style:menuStyle, name:monDVD}”