« Return to Thread: switching from page with puts to HTML

Re: switching from page with puts to HTML

by Matt Neuburg :: Rate this Message:

Reply to Author | View in Thread

On 7/9/09 1:22 PM, in article
C67FC258-14A9-4280-BBFA-61BA0253F773@..., "Allan Odgaard"
<mailinglist@...> wrote:

> On 9 Jul 2009, at 21:42, Matt Neuburg wrote:
>
>>>> [...] is there a way I can detect whether we are currently set to
>>>> Create New Document or Show As HTML? [...]
>>> There is no API to obtain this info, sry.
>>
>> This is the only bad part. :) May I submit this as a feature
>> request? Pls
>> let me know if you need a motivating story... m.
>
> Better suggest what sort of API you want.

Well, as you know, there is already a set of exit codes that can be set
(exit_codes.rb) to indicate where we *should* produce our output. I guess I
was hoping there might be some environment global indicating where the
currently running command was *intending* to produce output.

case ENV['TM_OUTPUT']
when 205
 ...
else
 ...
end

m.

--
matt neuburg, phd = matt@..., <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings




_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

 « Return to Thread: switching from page with puts to HTML