GetFileInfo executeable - possible to get it without Xcode?

Joined
Mar 26, 2010
Messages
5
Reaction score
0
Points
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 :Mischievous: )? OR would there be any other way to do this from Terminal without installing GetFileInfo?

Thanks in advance
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
ls with any switch will not give file creator. He may be stuck downloading Xcode.
 
Joined
Aug 5, 2008
Messages
345
Reaction score
14
Points
18
Location
Central New York
OMG! Are we talking about the old 4 character creator code here? I guess I was assuming the OP was talking about the file owner.

An osascript might be able to access the creator code.

Other than that, as cradom said, you'll have to install the developer tools.
Should be a small download. See this article: http://www.cnet.com/how-to/install-command-line-developer-tools-in-os-x/
 
Last edited:
OP
T
Joined
Mar 26, 2010
Messages
5
Reaction score
0
Points
1
Yep, some very old files here, some back to mid-90's! :) Thanks, probably a good solution but couldn't make it work, my terminal didn't offer to download/install when typing "make" as suggested in the post - just says "make: command not found".

BUT - someone else told me of this little build in function that will give me the creator code:
mdls -name kMDItemFSCreatorCode "[filename]".
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
What OS are you running? Typing 'make' may not work.
From another site:
On earlier versions of Mac OS X, it was more difficult to install Xcode Command Line Tools.
It required a huge download of the full Xcode package from the Mac App Store or registration as an Apple developer for a smaller Command Line Tools package.
Mac OS X Mavericks makes installation of Xcode Command Line Tools much simpler.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top