On 11 mars 05, at 01:36, Allan Odgaard wrote:
On Mar 11, 2005, at 1:18, Christian Bogen wrote:
[ TextMate service ]
[...] It's greyed out when I select text existing mails in Mail.app, seems to work only when composing new ones (ie. in the mail editor). Is that a bug or a feature?
The service offers to edit and return text, so it will not work for non-editable (but selected) text. Unfortunately as the system is currently made, I'd need to make a new service (i.e. entry in the services menu) if I were to also offer a 'new document with selected text' service.
Two Contextual Menu commands I made can deal with this:
"Open text in Textmate" puts the selected or clipboard text in a temp file and opens it in TM. "New TextMate file here w/Clipboard" make a new file where you triggered it, lets you choose the name of the file and opens it in TM.
These commands (and others) are in the repository, instructions are in the readme.
http://macromates.com/svn/Bundles/trunk/Tools/CM
Unlike services, you can't have a KB shortcut to trigger CM, but you can make a droplet with it.
If it's only in Mail.app you can make an Applescript put it in "~/Library/Scripts/Mail Scripts" and assign a shortcut to it by adding something like "___ctl-Y.scpt" at the end of the script's name (This can be done only for Mail.app... weird).