OS X 10.11 Finder Folder Sort
There have always been ways to sort folders before files in OS X finder, or so Iāve read.Ā Iām new to OS X, only been using it for a few months, and until now Iāve dealt with the intermixed folders.Ā But I never liked it.
All of the posts Iāve found related to folder-first sorting tell you to modify a system file to prepend a space to the āFolderā type.Ā Then you sort by type and bam, folders on top.
Well in 10.11, Apple has a system integrity protection mechanism that will not let you modify system files.Ā You can disable the system integrity protection, but that leaves you more vulnerable to malware.Ā Not to mention, Iām constantly testing things and I would like to minimize the chance of trashing my new notebook.
Hereās what I found, and Iām sure somebody else has probably already thought of it, but I couldnāt find it anywhere.
First I created a new Tag: āFolderā
Pretty self explanatory, no color needs to be added, we just want a tag.
Next we create an Automator service.
Basically a shell script receiving a list of files from Finder.Ā The shell script verifies that the file is a directory and that it does not end with ā.appā.Ā This treats apps like files and doesnāt apply the tag to any regular files, only folders.Ā It then deletes the existing tags and applies the configured tag(s).Ā Iām hard coding the āFolderā tag into an XML plist and applying that.
Finally we set a keyboard shortcut.Ā Iām still learning the keyboard shortcuts for OS X, but Command+F1 seems to work for this.Ā Maybe thereās a better option, and if it comes along, I will happily switch around, but for now, this works for me.
So, howās it work?Ā Simple <Command>+A, <Command>+F1 while arranging by Tags.Ā You select everything, which makes the keyboard shortcut available.Ā Press the keyboard shortcut, and wait for the service to do itās thing.
Consequently, if you donāt use any other tags, this sorts all folders alphabetically (under āFolderā), then all files alphabetically (under āNo Tagsā).Ā Similar to how other OSās sort.Ā If you use other tags, they will of course be shown as well.
Personally, I like this method much better than the hackish methods that modify Finderās resources.

















