can I show size of data instead of size of files?

Discussion in 'macOS' started by cutcopypaste, Nov 14, 2010.

  1. cutcopypaste macrumors regular

    Joined:
    Nov 28, 2008
    #1
    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?
     
  2. spinnerlys Guest

    spinnerlys

    Joined:
    Sep 7, 2008
    Location:
    forlod bygningen
    #2
    That is only possible via the GETI INFO window as it seems.

    [​IMG]

    Maybe take a look at PathFinder?
     
  3. cutcopypaste thread starter macrumors regular

    Joined:
    Nov 28, 2008
    #3
    doesn't look like Path Finder has the ability to do that.
     
  4. cutcopypaste thread starter macrumors regular

    Joined:
    Nov 28, 2008
    #5
    I don't use terminal much, but I would guess that will list the actual size of files in a folder from terminal? Or not? I want finder to show differently if at all possible tho
     
  5. cutcopypaste thread starter macrumors regular

    Joined:
    Nov 28, 2008
    #6
    If I have a couple bucks to spare, looks like Forklift 2 does this in a nice well, as other nice things!
     
  6. msjones macrumors 6502

    msjones

    Joined:
    Oct 18, 2007
    Location:
    Nottinghamshire, UK
    #7
    in terminal you can use the du -skh command and then the filename or folder. This will tell you its disk usage.
     
  7. mysterytramp macrumors 65816

    mysterytramp

    Joined:
    Jul 17, 2008
    Location:
    Maryland
    #8
    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
     
  8. mysterytramp macrumors 65816

    mysterytramp

    Joined:
    Jul 17, 2008
    Location:
    Maryland
    #9
    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
     

Share This Page