Whenever I create a new .cpp/.h file in Xcode a comment is added to the top of the file. For example:
/* * .cpp * *
It's very simple:
In one line, write the following:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME "Blah, Inc"
You don't have to worry about changing directories beforehand or anything else. It works instantly.