awardkvm.blogg.se

Is it ok to delete dmg files after installation
Is it ok to delete dmg files after installation










is it ok to delete dmg files after installation

Now, let’s take a look at another Automator workflow that achieves the same goal by doing the exact opposite.

is it ok to delete dmg files after installation is it ok to delete dmg files after installation

Step 5: Once this is done, every time you have a disk image mounted, all you need to do is select it and in the Finder menu select Services and then Eject and Delete (or whatever name you have named for the service you just created) and the disk image file will be unmounted and deleted with one click. Step 4: Now save this Automator service and give it a name that is easy to remember. Tell the “Finder” application to set the selection list to select if (count selection list) displays the dialog box ¬ “Select a mounted volume from a disk image.” with title ¬ “No selection found” with stop icon ¬buttons pattern button Return ifset my_selection for item 1 from selection_listset my_kind to kind of my_selectionset my_name to name of my_selection if my_kind is not “Volume” in the display dialog ¬ “Select a mounted volume from a disk image file.” with the title ¬ “The selection is not a disk image” with the stop icon ¬buttons pattern button 1return volume_list ifset for paragraphs (shell script “hdiutil info | grep ^ / dev / disk | grep -o ‘/Volumes/.*’▪)set source_list for paragraphs (shell script“ hdiutil info | grep ^ image’ -‘alias | grep -o ‘/.*’icando)set match_found to falserepeat v from 1 to (count volume_list) if “/ Volumes /” & my_name = item v from volume_list thenset match_found to trueexit repeatend ifend repeat if match_found is equal to true the display dialog ¬ “The selected volume does not appear to be a disk image.” with the title ¬ “The disk image could not be found” with the stop icon ¬buttons pattern button 1returnelseset my_source to POSIX file (item v of source_list) as aliasmove my_source for the trasheject my_selection – reveal my_sourceend ifend tell

is it ok to delete dmg files after installation

An AppleScript window will show up with some placeholder code in it.ĭelete this code and copy and paste the following into the script box instead: Step 3: Then, in the left panel of Automator, look for the Run AppleScript action and drag it to the right panel.












Is it ok to delete dmg files after installation