Automatically delete a DMG file when you eject it in OS X

Discussion in 'PC Hardware and Software' started by TheMightyS, Aug 19, 2012.

Share This Page

  1. TheMightyS

    TheMightyS ActiveRAIDer

    Likes Received:
    When you install a new app in OS X, it usually comes in the form of a DMG file that you have to then mount, eject, and delete. This simple Automator service simplifies the process, ejecting the disk image and deleting its DMG file in one fell swoop.
    Here's how to create this very simple service:
    Now, when you're done using a DMG file, you can just click on it, then go to Finder > Services > Eject & Delete DMG to eject the image and delete the DMG with one click. If you really want to make it fast, you can go to System Preferences > Keyboard > Keyboard Shortcuts and give your service a handy keyboard shortcut. Note that this doesn't work if you select the DMG in the Finder sidebar; you have to select it in an actual Finder window (or on the desktop). Hit the link to read more.

Share This Page