Make a file a Stationery pad via command line
The SetFile utility is provided with Xcode, which Apple distributes at no cost. Once you have installed Xcode, you can issue the command

SetFile -a T /path/to/foo.bar