One of the aspects where Macs differ from Windows PCs the most is when it comes to installing applications. On Macs, you need mount a disk image and then unmount it and delete once the installation is finished, which can be a bit of a hassle, especially if you have to test many apps in a short amount of time.
Thinking of that, this time we’ll share a couple of neat little workflows that you can implement on your Mac using Automator. With any of them, every time you are done with an app installation on your Mac, you’ll be able to eject/unmount and Electrical drawing software free mac. Maya 2014 sp3 mac download. delete the disk image in just a couple of clicks.
Let’s get started with how to set up these nice Automator workflows.
The article shares the ultimate solution to recover DMG files on Mac, or even repair the damaged or corrupted DMG files. Just follow up the instruction and get the desired files from Mac with ease. In order to protect the DMG files, it is recommended to turn on the Time Machine to backup the files or even upload the files to cloud service instead. Intel Mac OS X.DMG and.HFS files. Version 1.62 Beta 2 and later only. If you have a bootable Intel Mac.dmg file containing a single uncompressed HFS+ disk image (e.g. Niresh Hackintosh USB.dmg files), just add the.dmg file to your E2B USB drive and keep the file extension as.DMG (or.dmgPTN).
Delete DMG Files Automatically When You Eject Them
Step 1: Open Automator and choose to create a new document. From the available document types that show up on the dialog box, select Service.
Step 2: At the top of the right panel, make sure to choose from the dropdown menus the options ‘no input’ and ‘Finder’ respectively so that the end result is as the one pictured below.
Step 3: Next, on the left panel of Automator, search for the Run AppleScript action and drag it to the right panel. An AppleScript window will show up with some placeholder code in it.
Delete that code and instead copy and paste the following one in the script box:
tell application 'Finder'
Step 4: Now save this Automator service and give it a name that is easy to remember.
Step 5: Once this is done, every time you have a disk image mounted, all you have to do is select it and on the Finder menu select Services and then Eject and Delete (or whatever you named the service you just created) and the disk image file will be both unmounted and deleted with one click.
Now, let’s take a look at another Automator workflow that achieves the same objective doing exactly the opposite.
Eject DMG Files Automatically When You Drag Them To the Trash
As you can see from the title, this Automator workflow allows you to achieve the same purpose, except that in reverse, so you can avoid this message every time you drag to the trash a mounted DMG file.
Here are the steps to create it.
Step 1: Create a new document in Automator and select Folder Action from the available document types.
Step 2: At the top of the right panel, select Other… Red alert free download for mac. from the dropdown menu. Then, on the dialog box that pops over, type ~/.Trash to work with that folder.
Step 3: Next, on the left panel, drag the Run Shell Script action to the right panel. On the two dropdown menus that show up, select /usr/bin/python and as arguments respectively.
Is It Safe To Keep Dmg Files Mac Computer
Step 4: Replace the placeholder script in the script box with the following one:
import string, os, sys
Once done, save the Folder Action and quit Automator. Now, whenever a DMG file is mounted, all you’ll have to do is drag it to the Trash and it will be unmounted at the same time.
Cool Tip:
Is It Safe To Keep Dmg Files Mac 2017
And there you go. Two different workflows to enable a very convenient feature on your Mac. Now all left to do is just choose which one you find more convenient. And the best of all? In both cases you’ll learn a bit more about Automator. Enjoy!
Also See#automation #OS X
Did You Know
In 1835, Thomas Davenport developed the first practical EV.
More in MacHow to Record Your Screen with Zoom on Windows 10 and macOSComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |