Can You Delete .dmg Files After Installing
Lots of good points in this thread. I've re-thought how this should work.
My problem is that my downloads folder gets cluttered with dmg files. I can't remember which ones I've already installed. Some of them I have opened and installed, but I've forgotten to move them out of my downloads folder. Some of them I downloaded but haven't opened yet.
Can You Delete .dmg Files After Installing Video
My new version of the script moves the dmg file when it is mounted. To use it, save this script to '/Library/Scripts/Folder Action Scripts/' and attach this folder action script to the /Volumes directory. Ideally, my script would trigger when you eject the disk image, but by then it's too late; the disk image is gone, and there's nothing left for AppleScript to process. I figure triggering on mount was pretty good, since I really wanted to know what dmg files I had opened or not.
For example, if you downloaded OS X 10.8 the day Mountain Lion is released, you downloaded the 10.8. It turns out that when you download the Mountain Lion installer from the Mac App Store, that copy of the installer installs whatever version of OS X was available at the time of download. Download mac os mountain lion.
Most of you didn't want to delete the dmg file. That's a good idea. My script now moves it to a dmg_archive folder. Feel free to change this to suit your needs.
Lots of good points in this thread. I've re-thought how this should work.
16 What happens if I delete files from downloads? 17 Can you delete downloads after installing? 18 What happens if I delete my Downloads folder windows? 19 Is it OK to delete DMG files after installation? 20 Can I delete a disk image file? 21 Is it safe to delete installer files? 22 How do you delete downloaded files on Android? If you're a Windows switcher, a.dmg is the same thing as an.iso file basically. It's a disk image. Mac appears to like to use image files for programs downloaded through the internet, while Windows usually use.zip files or direct.exe files. So I would say treat those.dmg files as you would.zip files in Windows.
My problem is that my downloads folder gets cluttered with dmg files. I can't remember which ones I've already installed. Some of them I have opened and installed, but I've forgotten to move them out of my downloads folder. Some of them I downloaded but haven't opened yet.
My new version of the script moves the dmg file when it is mounted. To use it, save this script to '/Library/Scripts/Folder Action Scripts/' and attach this folder action script to the /Volumes directory. Ideally, my script would trigger when you eject the disk image, but by then it's too late; the disk image is gone, and there's nothing left for AppleScript to process. I figure triggering on mount was pretty good, since I really wanted to know what dmg files I had opened or not.
Most of you didn't want to delete the dmg file. That's a good idea. My script now moves it to a dmg_archive folder. Feel free to change this to suit your needs.