# Xcode BSD License Comment Script

When I first started using custom header comments containing different licenses, I was using Epsilon, where I had a custom EEL script, user variables, & a keyboard shortcut to insert a header block with the appropriate Creative Commons license. Now, however, I find myself using Xcode most often, so I needed something there to save me from forever copying & editing one chunk of BSD-license header comment.

The script will (should) handle both C-Style and shell-style comment formats, and it will insert your name as retrieved from the OS X Address Book. The license text itself is inside %{ } quotes, so it’s easy to change the license to whichever you prefer. I’ve also provided a TextMate snippet which will perform a similar function.