Roxio Community: Getting Toast To Burn With Apple Script - Roxio Community

Jump to content

Roxio Community
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Getting Toast To Burn With Apple Script

#1 User is offline   hurctrack 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 22-June 06

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
0

#2 User is offline   John at Roxio 

  • Digital Master
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,890
  • Joined: 25-March 06

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users