Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

burning a burn folder to CD/DVD



I am trying to write a script to erase rewritable CD's/DVD's and backup a list of files and folders onto them.
I have never felt very at home using the hdiutil command and am impressed with the ease of Tiger's Burn Folder facility. Because this is quick and avoids the need to check a file's size and create an image it would be great if there was a way to applescript this.


I have created a GUI scripted solution but am wondering if there is any non GUI scripting ways of achieving the same thing.
Any hdiutil suggestions would also be appreciated.


Here is my effort:

set burn_folder to (path to desktop as text) & "Test.fpbf"
tell application "Finder" to set burn_folder_name to name of folder burn_folder
set button_pressed to button returned of (display dialog "Erasing the disk and burning from the burn folder \"" & burn_folder_name & "\"." buttons {"Cancel", "OK"} default button 2)
do shell script "hdiutil burn -erase"
tell application "Finder"
activate
select folder burn_folder
end tell


tell application "System Events"
tell process "Finder"
click menu item "Burn Disc…" of menu "File" of menu bar item "File" of menu bar 1
delay 1
keystroke return
end tell
end tell


John


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.