Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cutcopypaste

macrumors regular
Original poster
Nov 28, 2008
176
29
All my smaller files show up as 4kb in finder. I know this is because on HFS+ that is the minimum allocation for a file, but it really doesn't help when trying to get a sense of how large files are when you're thinking of deploying them to the web, or glancing to see which are longer/which have been changed etc..
is there any way to set Finder to display the size of files based on how much data is in them?
 
That is only possible via the GETI INFO window as it seems.

screenshot20101114at626.png

Maybe take a look at PathFinder?
 
You could also do something like this:

Code:
set theFile to choose file

set theSize to the size of (info for theFile)

tell application "Finder"
	set comment of (theFile as alias) to theSize
end tell

In the Finder, select View Options and click on the button that shows the Comments column.

mt
 
This will do every file in a folder:

Code:
set theFolder to choose folder

tell application "Finder"
	set theFiles to files in theFolder
	repeat with fn in theFiles
		set theSize to the size of fn
		set comment of fn to theSize
	end repeat
end tell

mt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.