<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Yup. It's not even my script or idea. When TextMate discontinued
new-from-template I wrote to this very list, and that script was
the solution provided.</p>
<blockquote
cite="mid:F937045B-7143-4065-95D6-616FB0428DC1@textmate.org"
type="cite">
<p dir="auto">In this snippet you can use backticks to execute
commands and then use TM_MATE to set the language of the current
document, for example make the snippet like this:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7"><!DOCTYPE html>`"$TM_MATE" &>/dev/null -t text.html.php &`
<html lang="da">
…
</code></pre>
</blockquote>
<p>Allan, I'm chuffed there's finally a way to set the language
without resorting to the AppleScript tell System Events-thing!
I'll look into it tomorrow!</p>
<p>Thanks,</p>
<p>Rasmus<br>
</p>
<br>
<div class="moz-cite-prefix">On 12/07/16 23.43, Matt Neuburg wrote:<br>
</div>
<blockquote
cite="mid:8025B024-D3D7-4088-AEDC-55558C015659@tidbits.com"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">On Jul 12, 2016, at 1:37 PM, Rasmus Malver <a class="moz-txt-link-rfc2396E" href="mailto:rasmus@malver.dk"><rasmus@malver.dk></a> wrote:
Since templates were discontinued I've been using this AppleScript to make a quick HTML doc:
</pre>
</blockquote>
<pre wrap="">
I'm kind of amazed your script _ever_ worked. You're not even talking to TextMate. And I don't see anything that would make the template text appear in the document; you're just making a kind of "here doc". You're just sort of trusting that the "result" of your script will magically become the text of the document at the right moment.
m.
--
matt neuburg, phd = <a class="moz-txt-link-freetext" href="http://www.apeth.net/matt/">http://www.apeth.net/matt/</a>
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 9! <a class="moz-txt-link-freetext" href="http://shop.oreilly.com/product/0636920044352.do">http://shop.oreilly.com/product/0636920044352.do</a>
iOS 9 Fundamentals! <a class="moz-txt-link-freetext" href="http://shop.oreilly.com/product/0636920044345.do">http://shop.oreilly.com/product/0636920044345.do</a>
RubyFrontier! <a class="moz-txt-link-freetext" href="http://www.apeth.com/RubyFrontierDocs/default.html">http://www.apeth.com/RubyFrontierDocs/default.html</a>
_______________________________________________
textmate mailing list
<a class="moz-txt-link-abbreviated" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>
<a class="moz-txt-link-freetext" href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a>
</pre>
</blockquote>
<br>
</body>
</html>