[TxMt] Re: TM2 support HTML win -> Javascript -> AppleScript -> Insert chars

Timothy Bates timothy.c.bates at gmail.com
Fri Aug 31 13:10:27 UTC 2012


insert doesn’t seem to be in the script dictionary for tm2...

t
On 31 Aug 2012, at 12:39 PM, Hans-Jörg Bibiko <bibiko at eva.mpg.de> wrote:

> Hi,
> 
> I'm just reviewing some of my bundles and came across with this issue:
> 
> I have several commands which display as HTML output window some characters and the user can insert a given character by clicking on it. The mechanism is done via the Javascript-system bridge to an AppleScript which should insert the character.
> 
> For TM2 it doesn't work. Thus my question is:
> Is this
> - not supported by AppleScript, 
> - not yet implemented in TM2, 
> - broken,
> - or is there an other more elegant way to achieve the insertion of a string from the HTML window to TM2?
> 
> I'm using TM2 (9293) on 10.7.4
> 
> 
> Hmm, it seems that this:
> echo -en 'tell app "TextMate" to insert «data utf8e1b894» as Unicode text'| osascript --
> 
> is not possible under Lion.
> 
> 
> Any hints/ideas?
> 
> Cheers,
> --Hans
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list