[TxMt] Re: JavaScript as TextMate extension
Jay Soffian
jaysoffian at gmail.com
Fri Jun 26 15:16:14 UTC 2009
On Mon, Jun 22, 2009 at 5:43 PM, Jon Ippolito<jippolito at maine.edu> wrote:
> As a JavaScript devotee, I'd love to do this. I've installed Rhino and
> got it running in
>
> ~/Library/Java/Extensions
>
> per instructions found at
>
> http://peter.michaux.ca/articles/installing-rhino-on-os-x
>
> When I open ~/Library/Application Support/TextMate, however, I just
> see the Bundles, Plugins, Pristine Copy, and Themes folders. Do I just
> copy Rhino's js.jar file to a new "Extensions" directory?
>
> Presumably I would also need to start a command with a shebang line to
> tell TextMate I'm using a particular scripting language, like
>
> #!/usr/bin/env perl
>
> What would be the equivalent path for Rhino's JavaScript?
I'm not sure exactly what you're trying to do, but it would be:
#!/usr/bin/java org.mozilla.javascript.tools.shell.Main
j.
More information about the textmate
mailing list