Jump to content

Roxio Community

Getting Toast To Burn With Apple Script


  • Please log in to reply
1 reply to this topic

#1 hurctrack

hurctrack

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 22 June 2006 - 06:28 AM

Good morning everyone.  I am looking for some help in writing an AppleScript to burn a DVD with Toast.  I have much of the script working, but the most critical part needs to be fixed.  I try to burn a DVD by using a write command without asking.  When I go to execute the script, I get the dialog window for burning.  I want to be able to burn the DVD without any dialog window.  Here is the script that I wrote.  Please let me know what changes I need to make to it.  Thanks.

tell application "Toast 6 Titanium"
activate
set myDisc to make Data disc
set name of myDisc to "Backup DVD" & " " & (current date)
set imageFileName to "Weekly Backup"
set file system type of myDisc to Mac OS Extended
set directoryCount to 1
set sourceList to {}
repeat while directoryCount ? 4
if directoryCount = 1 then
set sourceDirectory to "Macintosh HD:Users:gmachos:Desktop:"
set subDirectory to "archive"
else if directoryCount = 2 then
set sourceDirectory to "Macintosh HD:Users:gmachos:Desktop:"
set subDirectory to "Programming"
else if directoryCount = 3 then
set sourceDirectory to "Macintosh HD:Users:gmachos:Desktop:"
set subDirectory to "Web Stuff"
else
set sourceDirectory to "Macintosh HD:Users:gmachos:Library:"
set subDirectory to "Mail"
end if
set sourceItem to sourceDirectory & subDirectory
set end of sourceList to ((sourceItem as string) as alias)
set directoryCount to directoryCount + 1
end repeat
add to myDisc items sourceList
save myDisc in imageFileName
write myDisc without asking
end tell

#2 John at Roxio

John at Roxio

    Digital Master

  • Members
  • PipPipPipPipPip
  • 2,890 posts

Posted 26 June 2006 - 09:20 AM

Just so that you know, we are not ignoring you.  We just dont have many Applescript experts that hang around here.  Just as a tip you might also want to post on apple's forums as they are frequented more often by applescript gurus.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users