Manifest Generator for TextMate and Text Wrangler

I whipped up versions of the Coda extension “Manifest Generator” that run in TextMate and TextWrangler. See the previous post on a HTML 5 Manifest Generator for Coda.

TextMate plugin bundle icon HTML5 Manifest Generator for TextMate

To install the bundle- just download, unzip, and double-click. TextMate will open and install the bundle as “Mobilemind” with a command, “Generate Manifest”. Usage is as you would expect in TextMate. Feel free to move it to a more appropriate bundle grouping, like say HTML.

Shell script plugin icon HTML5 Manifest Generator A ‘Shebang’ menu Filter for TextWrangler

To install the Shebang (Shell) menu item- first download, then unzip the shell script. Finally, move the script file into the directory:

~/Library/Application Support/TextWrangler/Unix Support/Unix Filters

Then make sure the script is executable by doing the following in Terminal:

chmod 755 "$HOME/Library/Application Support/TextWrangler/Unix Support/Unix Filters/Manifest Generator"

Then to use it the first time TextWrangler:

  • Open the HTML file that you want to use as the basis for generating a manifest
  • In TextWrangler, hold down the Cmd key while you use the “!#” (Shebang) menu to select the sub-menu “Unix Filters” and choose ‘Manifest Generator‘.
  • In the dialog box set the “Filter Options” as follows; Output STDERR to: New Window Output STDOUT: Windows used for STDERR
  • Then click the button “Run” to execute the filter command.

The options should “stick” for next time you run the Filter.

If you want to use it as a raw shell command, I’d recommend copying the file “Manifest Generator” to “manifest-gen” and putting the copy in the directory “/usr/local/bin“. That will save you typing lots of quotes and/or long paths.