Create an auto-opening disk image

Nov 18, '02 09:44:25AM

Contributed by: Anonymous

Ever wondered how to create a disk image that mounts and opens when you instert it? For example, the Apple OS X install CD "autostarts;" that is, the root folder of the CD (or .DMG) opens up when you pop it in. Here's how to create your own auto-open disk images.

Make sure yer AppleScript Script Menu widget is enabled. Go to Applications -> AppleScript, and drag "Script Menu.menu" to the main menubar; you'll now have a small AppleScript icon in your menubar.

Make a disk image of the CD that you want to burn (or in fact, an actual *.DMG), and mount that image. Now go to the new Script Menu icon, and select Folder Actions -> Attach Action to Folder -> Open, and navigate to your mounted disk image, select that, and you're done. Now all you need is a custom background, and some cool icons, and you're all set!

I don't know if this hint is any good, but it made me very happy when I found out how to do it!

[Editor's note: I have not tested this hint myself.]

Comments (15)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20021118064425784