GetFileInfo executeable - possible to get it without Xcode?

Discussion in 'Mac Apps and Mac App Store' started by topceres, Sep 23, 2014.

  1. topceres macrumors newbie

    Joined:
    Sep 23, 2014
    #1
    Dear all

    For a terminal project/script I need the features of getting the file creator from the files on a mac. The executeable that comes with Xcode (free) "GetFileInfo" will do that as I have understood. However, I need only that and not the rest of Xcode (2,5GB download) - and I'm presently on a very limited 3G connection. Does anyone know ... would it in any way be possible to get/download only the GetFileInfo executeable (can anyone grab it from their installation and put it somewhere for me :) )? OR would there be any other way to do this from Terminal without installing GetFileInfo?

    Thanks in advance
     
  2. Panch0 macrumors 6502a

    Joined:
    Feb 23, 2010
    Location:
    Virginia
    #2
    mdls command will read the file's metadata, but the output is a bit messier to read than GetFileInfo. mils is built into OS X it's available in terminal .

    Here's a link: http://www.macissues.com/2014/05/12/how-to-look-up-file-metadata-in-os-x/

    The key that equates to GetFileInfo Creator code is: kMDItemFSCreatorCode

    To get just the creator code use:
    mdls -name kMDItemFSCreatorCode <filename>
    to see the usage for the command just use:
    mdls
     
  3. topceres thread starter macrumors newbie

    Joined:
    Sep 23, 2014

Share This Page