How can I achieve the equivalent of setfile -type 'sbDB' ~/myfile on OS X 10.7, which no longer seems to support the setfile command?

I happen to know that the equivalent of setfile -a V ~/myfile is now chflags hidden ~/myfile. But how do I do I set a custom type like for instance sbDB - when I try chflags sbDB ~/myfile it says "invalid flag".

link|improve this question

What is the expected outcome of the 'setfile' command? When I run it on an empty file with no extension (created via touch) there is no output, but Finder shows the file as a 'Sidebar DropBox folder icon" which makes me think that setfile is working on Lion (10.7.1) for me. – TJ Luoma Sep 28 '11 at 4:18
@TJ, it doesn't for me - i simply get -bash: setfile: command not found – Milosz Wielondek Sep 29 '11 at 19:04
feedback

1 Answer

up vote 0 down vote accepted

Install Xcode.

I am (99.999%) sure that SetFile is part of that (I wish it wasn't).

http://itunes.apple.com/us/app/xcode/id448457090?mt=12

link|improve this answer
I'll accept this answer, but I believe there should be a way around this, without having to install Xcode. – Milosz Wielondek Nov 1 '11 at 17:51
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.