I used to be an Ecto user but I have since seen the light and call TextMate my be-all-end-all blogging tool. The only thing I missed was being able to use Ecto as my external blog editor while reading feeds in NetNewsWire. Not anymore!
Thanks to the Circle Six Blog for the superior coding kung fu.
In TextMate, show the bundle editor and create two new commands:
Name: Determine Script Location
Save: Nothing
Command(s):
#!/usr/bin/env ruby -rjcode -Ku
%x{ osascript "#{ENV['TM_BUNDLE_SUPPORT']}/lib/blogselection.scpt" }
Input: None
Output: Insert as Text
Activation: Key Equivalent: ⌃⌥⌘5
Scope Selector: text.html
Name: Insert Quote from NetNewsWire
Save: Nothing
Command(s):
#!/usr/bin/env ruby -rjcode -Ku
print %{Place the file "blogselection.scpt" in #{ENV['TM_BUNDLE_SUPPORT']}/lib/ }
Input: None
Output: Show as HTML
Activation: Key Equivalent: ⌃⌥⌘5
Scope Selector: text.html
Now create and save the following Applescript. Click here to open the script in Script Editor.
Execute the first command to determine the script location. That’s all for the setup.
Now, whenever you find something in NetNewsWire that you want to quote, tab over to TextMate, open a new blog post (HTML), and run the command (⌃⌥⌘5).