Hi all,
Can someone please provide some applescript to open a new blank document in TextMate. I plan to assign this to a Quicksilver trigger so that a new text file is one key combo away at all times.
Cheers,
----------------------------- Luke Daley http://www.ldaley.com -----------------------------
On 7 Nov 2006, at 03:02, Luke Daley wrote:
Hi all,
Can someone please provide some applescript to open a new blank document in TextMate. I plan to assign this to a Quicksilver trigger so that a new text file is one key combo away at all times.
Cheers,
This can be done within QS:
control space
to call QS.
.
to go to text mode and type:
mate
Tab to next field and select
Run Command in Shell
Press enter.
Save this as a tab trigger if you like.
Best, Mark
On 07/11/2006, at 1:12 PM, Mark Eli Kalderon wrote:
This can be done within QS:
control space
to call QS.
.
to go to text mode and type:
mate
Tab to next field and select
Run Command in Shell
Press enter.
Save this as a tab trigger if you like.
Best, Mark
Even better. For anyone else wanting to do this, it is best to use the command 'mate -a'.
Thanks Mark.
----------------------------- Luke Daley http://www.ldaley.com -----------------------------
On 07/11/2006, at 1:43 PM, Luke Daley wrote:
to go to text mode and type:
mate
Being picky, this isn't ideal. This creates a temporary file which is slightly different to a 'new document' that is only in memory and therefore asks me for a location to save on cmd-s.
Does anyone else have any ideas?
----------------------------- Luke Daley http://www.ldaley.com -----------------------------
See Allan's post for two potential solutions:
http://macromates.com/blog/archives/2006/07/19/document-palette/
Best, Mark
On 07/11/2006, at 2:24 PM, Allan Odgaard wrote:
Try this one: osascript -e 'tell app "TextMate" to activate' -e 'tell app "System Events" to keystroke "n" using command down'
Bang on. Thanks Allan.
----------------------------- Luke Daley http://www.ldaley.com -----------------------------
On Nov 6, 2006, at 10:54 PM, Luke Daley wrote:
On 07/11/2006, at 1:43 PM, Luke Daley wrote:
to go to text mode and type:
mate
Being picky, this isn't ideal. This creates a temporary file which is slightly different to a 'new document' that is only in memory and therefore asks me for a location to save on cmd-s.
Does anyone else have any ideas?
I haven't tried using it myself yet, but you should be able to put a blank text document in ~/Library/Application Support/Quicksilver/ Templates/ and then use the "Make New…" action. Not sure how it behaves as far as creating a new file vs. just opening a window.
Rob