burning a burn folder to CD/DVD
burning a burn folder to CD/DVD
- Subject: burning a burn folder to CD/DVD
- From: John Cochrane <email@hidden>
- Date: Tue, 1 Aug 2006 14:56:50 +1000
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:
This email sent to email@hidden