Optical Disc Drive Docklet

I am looking for a docklet which can change icons between two statuses, when the drive has or has not CD inserted. I think this can be achieved by modifying the ActiveDisk docklet (http://www.dockex.com/index.php?pageId=docklets#details) . What only need to be done is changing the meter or script of the "activity light" picture to let it show up when there is disc in the drive instead of detecting drive activity, then replace the proper pics. The problem is that I have no idea on which meter should I pick up or who should I modify the VBScript. Hope someone can clarify this for me, or simply point me to an already-existed docklet so I can save the trying time. Thanks in advance.

#401816

You want to use this on your desktop or in the dock?

#401855

On the dock (I'm using ObjectDock). I've attached a file showing how far I can get with my limited knowledge to SysStats - it trys to detect the used space of a drive; "0MB space used" and "more than 0MB space used" correspond to two different icons.

The trick works when you inserting a disc or mounting an image, both the dock icon and the label will be updated. However it doesn't work when coming to ejecting or dismounting, because somehow the "used space" data will only be refreshed on insertion or mounting, have no idea why because the same meter works very well (auto-updating data according to the time interval set) with harddisk.

OpticalDisk.zip

Attachment: OpticalDisk.zip

#401861