[TxMt] Setting command results .

Allan Odgaard throw-away-1 at macromates.com
Tue Jan 24 15:07:29 UTC 2006


On 24/1/2006, at 15:53, Simon Gregory wrote:

> echo "<a href=\"javascript:TextMate.system( '$TM_BUNDLE_SUPPORT/ 
> Tools/test.sh', null );\">test</a>"
>
> My assumption is that $TM_BUNDLE_SUPPORT doesn't get escaped  
> properly (Application Support being the culprit) [...]

Yes -- you'll need to put quotes around it. E.g.:

echo "<a href=\"javascript:TextMate.system( '"$TM_BUNDLE_SUPPORT/ 
Tools/test.sh"', null );\">test</a>"

> [...] One thing to  note - running the javascript above without  
> null as the second param crashes TM.

I'm afraid it's a WebKit bug that I can't easily workaround (other  
than submit a patch to Apple) -- but I'll look into it.




More information about the textmate mailing list