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
171
16
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?
 

spinnerlys

Guest
Sep 7, 2008
14,328
7
forlod bygningen
That is only possible via the GETI INFO window as it seems.

screenshot20101114at626.png

Maybe take a look at PathFinder?
 

mysterytramp

macrumors 65816
Jul 17, 2008
1,334
4
Maryland
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
 

mysterytramp

macrumors 65816
Jul 17, 2008
1,334
4
Maryland
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.