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
Getting Toast To Burn With Apple Script
Started by
hurctrack
, Jun 22 2006 06:28 AM
1 reply to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users





