• grahamenglish.net – Blog
  • grahamenglish.com – Artist Site

Graham English Blog Archives

Musician, Author, and Entrepreneur

  • Blog
  • Consulting

A Quicksilver Action That Creates A New TextMate Blog Post

May 12, 2007 By Graham English

Text MateI’ve been AppleScripting my @blogging context workflow. At first, I created a simple script that launches TextMate, NetNewsWire, and Safari along with some URLs to help me get started. It basically launches my workspace for my @blogging context. But I wanted something a little more flexible that would accept some initial user input.

Now what I do is invoke Quicksilver, enter text mode and type my blog title, tab over to the action pane, type “Tex..” (for TextMate), and execute. TextMate creates a new file with the blog HTML template in my ‘Writing’ directory on my desktop and it automatically fills the blog header with the Title and the Excerpt tags. To make full use of the Excerpt tag, you’ll need to hack your blog xmlrpc.php and TextMate blogging bundle. Buy me a cup of coffee and I might teach you how. If you prefer to use Markdown, all you have to do is change the extension in the script from “.blog.html” to “.blog.markdown”.

Here’s the Quicksilver TextMate action script: Click here to open the script in Script Editor.

Here’s my entire @blogging context script: Click here to open the script in Script Editor.

Here’s my bare bones @blogging context for when I don’t know what to write yet. Save this script as an application and put it in your Applications folder, on your dock, or anywhere that Quicksilver can get to it: Click here to open the script in Script Editor.

Update: After a night of dreaming AppleScript, I came up with the be all and end all of my @blogging context. Like my full @blogging context script above, this script creates a blog post in TextMate and opens a couple of apps and a few URLs but with one major difference. Now you can type a pipe “|” after your blog title in Quicksilver and add keywords. These keywords will query Google and Technorati automatically. In Quicksilver, the text you would type would look something like this, “This Is My Post Title|intitle:keyword1 keyword2 -keyword3”. As you can see, you can add modifiers and keywords are space separated. And you don’t have to type the pipe or keywords. You’ll get an action similar to my previous @blogging context script.
Click here to open the script in Script Editor.

Time is nature’s way of making sure that everything doesn’t happen at once.

Space is nature’s way of making sure that everything doesn’t happen to you.

Share on Pinterest
There are no images.

Filed Under: Prose, Technology Tagged With: AppleScript, Blogging, contexts, GTD, hacks, HowTo, LifeHacks, Markdown, NetNewsWire, Quicksilver, Safari, scripting, scripts, TextMate, workflow, workspace, writing

About Graham English

Graham English is a musician, author, and entrepreneur.

Graham English
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube
image title

Crank your sound up to X with Apple's premier recording software and Logic Pro X For Dummies

Read the blog
Listen to music

Archives

  • September 2014
  • July 2014
  • March 2014
  • June 2013
  • February 2013
  • January 2013
  • April 2012
  • November 2011
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005

Follow me on Twitter

My Tweets

Follow me on Facebook

Follow me on Facebook

Recent Posts

  • Final Score
  • iGrahamEnglish is just GrahamEnglish
  • Cleaning Up My Act
  • Logic Pro Mixing, Metering, And Loudness Explained
  • Attention Musicians: Comfortably Avoid Hearing Loss With Custom Fitted Earplugs

Graham is a singer/songwriter and jazz-trained keyboard player, music producer and studio musician, best-selling author of Logic Pro X For Dummies, and serial entrepreneur.

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube


  • About
  • Contact
  • Wiki
  • Legal Policy
  • Privacy Policy
  • Living Room Rules

Copyright © 2023 Graham English