Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.6: Add Size and other columns to search results Desktop
I was very disappointed that I couldn't add the Size column to the list view in search results in Snow Leopard like you could do in Tiger, since Apple gave us the impression that Spotlight would include additional ways to sort results in Snow Leopard. Only Date Created and Date Modified were added as options in 10.6; the others are grayed out.

Fortunately, I found a way to force the Size column to appear, as well as Comments, Version and Label columns. You'll have to edit the com.apple.finder.plist file found in ~/Library/Preferences, using the Property List Editor app (included with Xcode) or PlistEdit Pro.

Open the Root node, then navigate down into SearchViewSettings » ListViewSettings » columns. Then choose the column you want to activate in the column list (ie. Size), and set the visible key to yes. Save the .plist and relaunch the Finder (Option-Control-click on the Finder icon in the Dock).

Note: you must have done at least one search, and selected one of the additional columns in the View Options panel for the search results (Date Created, for example), or else your .plist file may not contain the SearchViewSettings node.

Warning: Apple probably disabled these columns for a good reason, as there may be some bugs that could cause problems on your system. I didn't have any problems with the size column, but be warned.

[robg adds: I have no idea why it's taken over three years (and counting) to fix something that worked in 10.4. Until Apple gets it fixed, though, this seems to do the trick. I tested it on my MacBook Pro, and haven't had any problems as of yet. Note that you won't be able to actively enable/disable the columns in the View Options dialog, but all the columns you set to yes will show in your search results -- and once they're showing, you can sort as expected by simply clicking a column heading.]
    •    
  • Currently 4.75 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (8 votes cast)
 
[8,702 views]  

10.6: Add Size and other columns to search results | 18 comments | Create New Account
Click here to return to the '10.6: Add Size and other columns to search results' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.6: Add Size and other columns to search results
Authored by: asmeurer on Tue, Sep 8 2009 at 8:03AM PDT
defaults write command anyone?

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: vl_tone on Tue, Sep 8 2009 at 7:26PM PDT
Unfortunately the "defaults write" command cannot modify nested .plist items like those found in this hint.

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: V.K. on Tue, Sep 8 2009 at 8:09AM PDT
Great hint!!! The omission of the size column in finder search results in Snow leopard is mysterious and seems to be a bug, actually. it was advertised as possible just before SL launch and this column does show up in "show view options" for search results but is grayed out for some reason.

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: garcher on Thu, Sep 10 2009 at 8:27AM PDT
I love it -- I found it also works for SMART folders (which are really just saved finder queries anyway).

I'd opened this as a bug back when 10.5 came out and it was eventually closed with the 'will be fixed in a future release'. Imagine my disappointment when it still did not work in SL. So far, size has been the one that I use -- a good way to get the size of various files (dmg, pdfs, presentations).

---
Gary

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: rjbailey on Tue, Sep 8 2009 at 9:06AM PDT
Cool hint! On point I noticed: I didn't have the option to enable column views within the plist file until I changed some view settings first from the Finder. (Perform any search, hit CMD-J to change options, reopen plist file.)

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: jctull on Tue, Sep 8 2009 at 9:16AM PDT
Great find! "Size" and "Date Last Modified", rather than the fairly pointless, to me anyway, "Date Last Opened".

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: BradMacPro on Tue, Sep 8 2009 at 12:12PM PDT
Can this be added in Mac OS 10.5 Leopard?

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: vl_tone on Tue, Sep 8 2009 at 9:58PM PDT
As far as I know you can't add it in 10.5. I tried to find how and failed.

Leopard uses a different system to display search results and the SearchViewSettings item doesn't exist in the Finder plist.

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: bigkm on Wed, Sep 9 2009 at 4:16AM PDT
You could change it with converting to xml then changing the value with some xml tool or text tool

plutil -convert xml1 ~/Library/Preferences/com.apple.finder.plist

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: vl_tone on Wed, Sep 16 2009 at 9:05PM PDT
Be careful with that.

Maybe it works with plutil, but when I tried converting the Finder binary plist to text using Property List Editor, I wound up with a crashing Finder that I could only get back by deleting the plist via the terminal. It seems that some items in the plist (containing hex data) are not converted properly to text.

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: slswift on Thu, Sep 10 2009 at 8:53AM PDT
Why is this listed under "Desktop Macs" instead of under "Mac OS X (10.6)"?


[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: robg on Fri, Sep 11 2009 at 8:50AM PDT
It was actually supposed to be under Desktop (i.e. Finder), but I mis-selected. Fixed now.

-rob.

[ Reply to This | # ]
Serendipitous discovery
Authored by: gabester on Thu, Sep 24 2009 at 10:25AM PDT
After I installed 10.6 on a test system I was quite disappointed to discover the ability to add standard view columns to search results was hype, seemingly limited to just Date Created and Modified (which was still a far cry better than just Kind and Date Last Opened in Leopard.)

On my primary system, however, I just upgraded from Leopard. After performing a few searches, I finally went into view options to add Date Modified. After checking the checkbox, I noticed that Label had somehow also become checked.

Then I googled and found this hint. I'm speculating that I had customized my Find results in 10.4 and am using a copy of the same user profile that had been upgraded first to Leopard then to Snow Leopard.

I suspect Apple's got these columns disabled at present because they can't get results to automagically appear in the desired sort order if you have something other than name or date selected. Do a search, sort by size, then change the search parameters - the results are regenerated and not sorted despite the size column being highlighted.

Thank goodness someone figured this out. I was seriously considering NOT upgrading to Snow Leopard... now all I'm missing is the tabs on top feature of the Safari 4 Beta which no longer works in SL.
g=

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: nilo on Thu, Oct 29 2009 at 3:30AM PDT
As I'm not that savvy, I need simplified explanation:

How do I open root node? I downloaded a trial of PlistEdit Pro. What do I do now?

I need the size option.

[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: jj2man on Sat, Jan 16 2010 at 12:36PM PST
I have 10.6.2 and I couldn't find the file you mentioned. Anyone know how I can get the "size" column to be un-greyed?

[ Reply to This | # ]
script to add size column
Authored by: tedw on Sun, Jan 17 2010 at 12:25AM PST
Just to help people out, here's a script that adds the size column to Finder searches.
tell application "Finder" to quit
tell application "System Events"
	set theFinderPrefsFile to POSIX path of (file "com.apple.finder.plist" of preferences folder of user domain)
	set theFinderPlist to property list file theFinderPrefsFile
	tell theFinderPlist
		tell property list item "SearchViewSettings"
			tell property list item "ListViewSettings"
				tell property list item "columns"
					tell property list item "size"
						set value of property list item "visible" to true
					end tell
				end tell
			end tell
		end tell
	end tell
end tell
delay 3 -- just to make sure the plist file is written to disk
tell application "Finder" to launch
To remove the size search, set visible to false instead of true in the above. My concern with this is that it would force the system to calculate file sizes at search time, which might slow down searches some and increase processor activity. Has anyone noticed that kind of effect? P.s - to use this, open the Applescript Editor in the Utilities folder, copy this script into it, and click Run.
Edited on Sun, Jan 17 2010 at 12:26AM PST by tedw


[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: Mike Sikurlaub on Sun, Jan 17 2010 at 5:07PM PST
Cool hint indeed!
Must look really cool!
I have a question though - May I do it on any Mac OS platform or only on 10.6?I'm just too lazy to install that version just to make it...
---
My Web site


[ Reply to This | # ]
10.6: Add Size and other columns to search results
Authored by: machint on Mon, Feb 8 2010 at 9:59AM PST
Great hint! Any way to show the path as well? Thanks.

[ Reply to This | # ]