Thanks for checking.
From Console:
2007-07-06 15:18:56.128 TextMate[12076] Command: TextMate.InsertString Direct Parameter: apple, applescript, applications Receivers: (null) Arguments: {"" = "apple, applescript, applications"; asSnippet = 0; } 2007-07-06 15:18:56.128 TextMate[12076] [<TMDNibWindowController 0x168e5bd0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key textView. 2007-07-06 15:18:56.128 TextMate[12076] Result: (null) 2007-07-06 15:18:56.128 TextMate[12076] Error: 8 "NSInternalScriptError" 23:78: execution error: TextMate got an error: NSInternalScriptError (8)
So the key is blank. The command I sent was:
returnedtags.map {|tag| tagslist += ", " unless tagslist == '' tagslist += tag } STDOUT.print tagslist.chomp %x{osascript -e 'tell app "TextMate" to insert "#{tagslist.chomp}" as snippet no'}
Thanks, Brett
On Jul 6, 2007, at 7:26 AM, Allan Odgaard wrote:
On 27. Jun 2007, at 23:31, Brett Terpstra wrote:
I think I've got the gist of this, but the osascript part errors out because the dialog is the frontmost window when clicked and it can't insert text there. Any workaround for that?
I looked at the code involved, and I can’t see a problem with it.
Can you quote the error reported and/or send a reproducible example?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate