Mounting a disk image with Disk Copy is so lame, especially for an encrypted disk image. You have to wait for Disk Copy to launch, then you have to wait for Disk Copy Helper to launch. If you click Cancel in the password dialog, it gives you an error alert. If you click OK and the volume was already mounted, it also gives you an alert.
You can put Apple to shame by coding your own disk mounting application, which will run 35% faster, prevent stupid alerts, and allow you to launch an application (such as Mail) after the
volume mounts. It will take you only five minutes.
Just create a file, called Omit the last line if you don't want to launch the Mail program. If you use a text editor, such as BBEdit, make
sure the file has Unix, not Mac, line endings and make sure that the Select your disk image file (extension Double-clicking on your disk image will now use your little application to mount the volume. You can open the Console to watch the mount occurring, if you're interested. If the volume is not mounted and you double-click on an alias to a folder within it, the Finder will mount the volume using a unique mechanism, bypassing both your application and Disk Copy. Because your application doesn't run, Mail will not be launched. It's a Finder feature, not a bug! Mac OS X HintsMount.sh containing the lines:
#!/bin/csh -f
/usr/bin/hdid "$1"
if ($status != 0) exit
/usr/bin/open -a "Mail"
# is the very first character in the file. You can also just type cd;cat > Mount.sh in the Terminal, type or paste in the lines, and end with a control-D. Drag your file onto the freeware program DropScript 0.5,
which you can download from Apple's
OS X download page.
It will create an application called DropMount.
.dmg or
.sparseimage for a
sparse
disk image) and type command-I to Get Info. Reveal the Open with section,
select Other... from the pull-down menu, and select your DropMount
application in the file browser. Close the Get Info window.
http://hints.macworld.com/article.php?story=2003030718232671