Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Erase CD-Rs with an AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Erase CD-Rs with an AppleScript
Authored by: skydiverx on Dec 15, '04 04:08:28PM
The following script is a modified version of the previous script. It has been tested with 10.3.6 and it works.

Many thanks to Nathan Teske for the original script.

Enjoy.

-SkyDiverX



(*
Erase ReWritable Media
2002 Nathan Teske
Calls'hdiutil burn -erase' to erase rewritable media¬
  without the terminal or Disk Utility
  
Modified by Efren Palacios for AAS use
on Dec 14, 2004
*)

beep
display dialog "Erase a rewritable disc?" buttons {"Cancel", "Yes"} ¬
	default button "Cancel" with icon note
set the user_choice to the button returned of the result
if the user_choice is "Yes" then
	
	display dialog "Are you sure you want to erase a disc?" & return & return & ¬
		"You cannot undo this action." buttons {"Cancel", "OK"} default button "Cancel"
	set the user_choice to the button returned of the result
	
	if the user_choice is "OK" then
		display dialog "It may take several minutes to erase the disc." & return & return & ¬
			"After the disc is erased, a Finder dialog box will appear asking you to name your CD. This will be your indication that the erase process has finished." & return & return & ¬
			"You will NOT get a progress window after you start this process." & return & return & ¬
			"Insert your disc and press ERASE." buttons {"Cancel", "ERASE"} ¬
			default button "Cancel"
		set the user_choice to the button returned of the result
		
		do shell script "hdiutil burn -erase"
		
	end if
end if



[ Reply to This | # ]