Friday, September 26, 2014
Quick Look at Multiple Files Simultaneously
Using Finder labels for tagging files and automating actions
05 July 2013 - Filed in: Finder AppleScriptLabels are a handy way to organise your files in the Finder by colour-coding their icons. Until OS X Mavericks is released later this year, they are a pretty good substitute for having a proper way to tag files in the Finder.
Adding a label to a file or folder is simple. Just right-click the icon and choose one of the coloured squares from the menu. Alternatively, you can select the icon by clicking on it, and choose the label from the File menu in the menubar.
If you want to use labels a bit more like tags, it is possible to choose a custom name for each label colour in the Finder Preferences (under Finder in the menubar). Once you have done this, the only limitation compared to a real tagging system is that you are restricted to only having 7 different tags.
Using labels as tags can work really well in conjunction with Saved Searches (also known as Smart Folders).

Most people will have their documents organised into separate folders for each project, and will have separate folders for work and home files. But sometimes, for example, you might want to see all your receipts from all your different projects together, or all the files that you need to print. Instead of duplicating all your receipts into a separate “receipts” folder, you can just use labels along with a Saved Search that displays all the files with that label.
To set up the saved search, start by switching over to the Finder and choosing Find from the File menu (or type Command-F). Choose Other from the left hand drop-down menu, and choose File label from the list. Then just choose the desired label, and click the Save button to add the Saved Search to your sidebar.
Power users can take this idea even further using a tool like Hazel. Firstly, Hazel can automatically add labels to your files based on your own criteria. For example, automatically adding a red label to files that have been in the Downloads folder for more than a week, or adding a purple label to files that were downloaded from your bank website.
Secondly, Hazel can automatically perform actions when you assign a specific label to a file. For example, it could import MP3 files into iTunes if they you label them purple, or resize images to 800x600px and upload them to a server if they are labelled green, or run any AppleScript or shell script you want.
Bonus tip: You can quickly change the label of a file by dragging it into the section for a different label in the folder, as show in the screenshot below. For this to work, you must have your folder in Icon View, and have the folder Arranged by Label.

Read more »
Wednesday, September 24, 2014
Deleting Duplicate Files with Tidy Up
ShareRecently a civilian asked Murphy about finding duplicate files on their computer. Folder names had been mangled and made no sense. Files had been duplicated over and over again, many of them with different names. It was a mess.
I remembered writing up a Mac app a long time ago and dug deep into the Murphy Mac archives, where I found Tidy Up. As soon as I watched the screencast I remembered being impressed with the results of the app, and its power, despite not truly having a need for it. Because Murphy files everything just so.
Anyway, I decided to take a look at some tools for finding duplicates and asked the developer for an updated version, which I received.
One thing that really impresses me about Tidy Up is the safety features designed to prevent deletion of the last copy of a file. For example, if a search finds six copies of foo.jpg there’s an option to display all but one copy. Then you can delete the five duplicates from within the Tidy Up interface.
Let’s run through an example and look at one way Tidy Up might help you achieve your goal. Let’s say you have two folders that both have files. Some of the files have duplicates with different names. Sometimes the dupe is in the same folder with the original, sometimes it’s in the other folder. And sometimes the dupe has the same name but it’s in a different folder.
Take a look at the screenshot showing our example files.
The files are in two folders, named here and there. My goal is to end up with one file for each airport code. Also, notice there are three files containing the code mia. Additionally, I’d prefer to end up with the files that don’t have the word “copy” in their name. Think of it this way: Maybe you have a bunch of files and you named some of them with a convention like winter2011 001.jpg, winter2011 002.jpg and so forth. But you have duplicates of those files with names like DSC001.jpg and DSC002.jpg. You might prefer to have the DSC files eliminated as the duplicates instead of the winter ones.
The first step with Tidy Up is to add the two folders we want to search for duplicates. In our case, the folders named here and there. In the screen shot below the folders are shown in Tidy Up after we simply dragged them in from Finder.
Once we run the search Tidy Up presents us with a list of files that have duplicates. There are a number of containers we can choose from to limit which files are displayed, but the default is to show all copies of any file that has a duplicate. Files without duplicates in here and there are not displayed. Screen shot below. Notice that the mia file has three copies, and two of them have the same name.
Remember, we wanted to preserve files that didn’t have the word copy in the name if possible. To do this, we’re creating what Tidy Up calls a Smart Basket to identify all the files with the word “copy” in their name. Then we’ll use Tidy Up’s label feature to mark these files with the blue label.
Take a look at the next screenshot. Notice the container selected is called “has copy in name”. That’s our smart basket. We’ve selected all the items in the basket and applied a blue label to them.
We could have just deleted all those files there, but instead we’ll go back to the container called All Items Found and verify that our labels were applied as we expected. In that container we’ll also sort by label, so all the blue label items are listed first and are easy to select.
One of the great things about about Tidy Up is that it tries to prevent you from accidently deleting the last copy of a file. In other words, when you’ve performed a search and selected files to delete you may have selected all copies of a particular file, as is the case in the previous screenshot with regard to cdg. When we use the delete tool within Tidy Up we’ll get notified that one file was not deleted because it was the last copy. See below.
If we look at our search results now there are only two files left. Remember, we told it to only delete selected files, and we only selected files with “copy” in the name. So our mia duplicates still exist. We could continue on and delete any remaining duplicates from here. Let’s take a look at the Finder to see what we’re left with after running our delete job. Notice below there’s one file left with the word “copy” in it, but that’s because we only had files for cdg with the word copy in them. Notice as well that we have two copies of mia. That’s because we didn’t bring the full power of Tidy Up to bear yet. More on that after the screenshot.
There’s one other feature of Tidy Up I should mention. Even if you only search one folder there’s a very powerful feature. Tidy Up has the ability to show all but one file for each set of duplicates it finds. In the two screenshots below there’s a file in the search results that has nine copies. When we select All Items Found we see all nine. But when we select All But One Item of Each Duplicate Group we only see eight. The ninth is being hidden from view so we can safely delete the eight and still have a copy left.
There’s a lot more to Tidy Up. It has special features for iTunes and iPhoto. It has all kinds of options for dealing with very granular file details and customizing your search extensively. There’s no shortage of tools for this task, but Tidy Up makes it very straightforward. The interface is clean and makes it easy to see where your duplicates reside.
Here’s another Murphy Mac post about Tidy Up, including a screencast.
Tidy Up is available for $30 There’s also a thorough user manual (pdf).
| PermalinkRead more »