[TxMt] How to create new untitled doc from another process.

Peter Jaros peter.a.jaros at gmail.com
Sun Mar 11 21:14:46 UTC 2007


I would say

$ osascript -e 'tell application "TextMate" to make new document'

but that doesn't seem to work properly.  However,

$ osascript -e 'tell application "TextEdit" to make new document'

works for TextEdit.  Methinks this is a TextMate bug.  Allan?

Peter


On 3/11/07, Todd Ditchendorf <itod at mac.com> wrote:
> TextMate list,
>
> how can I command TextMate to create a new untitled document from a
> separate process? Basically, I want textmate to create a new window
> (titled 'untitled n', that does not have a file path associated with
> it yet.
>
> Can you do this somehow thru the mate command line command? typing
> just 'mate' seems to activate textmate.app, but it  doesn't guarantee
> that a new window will be opened (which is good). typing 'mate
> new' (replace new with whatever title you want for your doc) creates
> a new file with a path of /new. I would like to create a new file
> that does not have any path info yet. any ideas?
>
>
> Todd Ditchendorf
>
> Scandalous Software - Mac XML Developer Tools
> http://scan.dalo.us
>
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>



More information about the textmate mailing list