Quantcast

Forums | MacLife

You are not logged in.

#1 2005-04-04 2:21 pm

mysterd429
Not Born on April 29th
From: Lehigh University / L.I.
Registered: 2002-07-17
Posts: 152

Prompt User to Insert CD; Eject Tray

Hi All,

I just wrote a nifty bash script that backs up up a home directory to multiple CDs using hdiutil, gzip, ditto, and split.  I'd like to include in the disk image a script/program to reconstitute the backup image, but I don't know of any way to prompt the user to insert a disk.  (hdiutil takes care of it automatically when burning.)

Remember the good old days when MacOS 6.x asked you to Please Insert Disk over and over again?  wink  That's the idea, except not an infinite loop.  And also copying useful things to the hard drive and then putting them back together.

Suggestions?  C/C++/Objective-C/shell commands all welcome.  Or AppleScript, I guess.  I'm running 10.2, though I'll be upgrading to 10.4 eventually.

Thanks!

edit:

Or if someone could just help me find out where the source code for drutil (part of 10.3) can be found, I'll compile it myself.  smile

Last edited by mysterd429 (2005-04-05 2:31 am)

Offline

 

#2 2005-04-06 5:02 pm

assassin_bill
International Bitch Maker
From: (__
Registered: 2003-08-06
Posts: 1293
Website

Re: Prompt User to Insert CD; Eject Tray

disktool -e will eject it


Innovation will not be included in the intel switch

Offline

 

#3 2005-07-06 7:17 pm

idoremus
Member
Registered: 2005-07-06
Posts: 3

Re: Prompt User to Insert CD; Eject Tray

mysterd429

Could you post some of your coding so that us newbies can learn from your experience?

Thanks!
Ian

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson