It's All Text

Bash

Public Domain

Workaround for using the It's All Text Firefox plugin in Mac OS

Download (right click, save as, rename as appropriate)

Embed

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/bin/sh
# This is an example shell script for It's All Text!

if [ ! -f "$1" ]; then
  touch "$1"
  fi

  # Remove quarantine bit that may get set for extensions MacOSX doesn't
  # recognize, and that may cause an unneeded security dialog to appear. (We
  # *know* there are no viruses on this file, 'cause we just created it)
  xattr -d com.apple.quarantine "$1" 

  exec /usr/bin/open -a /Applications/MacVim.app "$1"
  #EOF