It's not totally perfect, but here's what I managed to pull together.
-- Place in ~/Library/Application Support/Quicksilver/Actions/ --
using terms from application "Quicksilver" on process text blogTitle set blogHeader to "Title: " & blogTitle & " Excerpt:
" set myPath to "/Users/grahamenglish/Desktop/Writing/" & blogTitle & ".blog.html" do shell script "echo " & quoted form of blogTitle & " >> " & quoted form of myPath do shell script "open -a TextMate " & quoted form of myPath tell application "System Events" tell application "TextMate" to insert blogHeader end tell end process text end using terms from
Warmest regards,
Graham English
On May 11, 2007, at 11:12 PM, Graham English wrote:
Is there a way to send a value to ${TM_BLOG_TITLE} through applescript in the TextMate blogging bundle?
I'm thinking about creating a Quicksilver action that can use the text from Quicksilver to fill the title of the blogging HTML template.
Thanks,
Graham English
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