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

10.4: Use Automator to create CD-RW erasing tool System 10.4
Tiger only hintThe old hint Erase CD-Rs with an AppleScript gave me the idea to use Automator in 10.4 to make the process even easier...

I used the Run Shell Script action in Automator to create an 'Erase CD-RW' plug-in for the Finder. Here are the very simple steps:
  1. Open Automator and add the Run Shell Script Action (from the Automator Library) to the workflow.
  2. Leave all of the defaults, but type hdiutil burn -erase in place of the default cat.
  3. Save the workflow as a plug-in for the Finder (File: Save As Plug-In) and name it something like "Erase CD-RW."
You now have a command that you can select by control-clicking on the CD-RW and mousing down to the Automator menu. This is much easier than using the Disk Utility.

Semi-obvious warning: This will erase the contents of your CD-RW without asking for confirmation!
    •    
  • Currently 3.20 / 5
  You rated: 5 / 5 (5 votes cast)
 
[11,799 views]  

10.4: Use Automator to create CD-RW erasing tool | 9 comments | Create New Account
Click here to return to the '10.4: Use Automator to create CD-RW erasing tool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Automator to create CD-RW erasing tool
Authored by: CaptCosmic on Jul 21, '05 10:26:26AM

To get a warning before it executes the erasure of the disc, you can add an "Ask for Confirmation" action to the workflow. This will cause it to present a dialog box asking you to confirm the action. If you choose OK, the action continues. If you choose cancel, the workflow stops.

---
Capt Cosmic



[ Reply to This | # ]
10.4: Use Automator to create CD-RW erasing tool
Authored by: stephen.m on Jul 21, '05 11:36:25AM

Two good ideas. Thank you both.



[ Reply to This | # ]
10.4: Use Automator to create CD-RW erasing tool
Authored by: pub3abn on Jul 21, '05 12:05:59PM

What will happen if you accidentally use this on something other than a CD-RW disc ... like your hard drive icon?



[ Reply to This | # ]
10.4: Use Automator to create CD-RW erasing tool
Authored by: joshelgin on Jul 21, '05 12:11:02PM

From what I understand, the "burn" part of the command means that it only works on optical media.

See http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/hdiutil.1.html



[ Reply to This | # ]
10.4: Use Automator to create CD-RW erasing tool
Authored by: emale on Jul 21, '05 12:39:12PM
This little contectual menu item would also be worth to have a look at - it's even Freeware: http://www.versiontracker.com/dyn/moreinfo/macosx/26813

Making an own erasing-option is nice, but the above shown contextual menu item is only shown when clicking at a CD-RW (not every item in Finder).

[ Reply to This | # ]
10.4: Use Automator to create CD-RW erasing tool
Authored by: logo on Jul 21, '05 02:57:34PM

Does this work on DVD-/+RW ?



[ Reply to This | # ]
10.4: Use Automator to create CD-RW erasing tool
Authored by: joshelgin on Jul 25, '05 10:41:31AM

I used this contextual menu item, but it did something to lock my CDRW whenever I used it, turning it into a coaster...

No good for me...



[ Reply to This | # ]
10.4: Use Automator to create CD-RW erasing tool
Authored by: Makosuke on Jul 21, '05 07:13:28PM

What a bizare coincidence! Literally last night I was erasing some CD-RWs and when I noticed there was nothing in the Finder contextual menu that let you do that without opening Disk Utility, I looked at that little Automator item and thought to myself "I'll bet it'd be easy to build an Automator script to do that and put it into that menu".

Not 24 hours later I check here to find somebody has already done it. Glad I didn't waste the time trying to figure it out last night!



[ Reply to This | # ]
10.4: Use Automator to create CD-RW erasing tool
Authored by: markformac on Sep 30, '05 01:14:12AM

You can also add a button called QuickErase in the Finders menu for CD-RW and DVDs

http://www.vanwilligen.nl/

---
Mark Brooks



[ Reply to This | # ]