Reworked tagmaker script

For a long time, I've been using tags on this blog to show a kind of keywords or categories to describe a post. I've been using an AppleScript for MarsEdit called Tag Maker written by Garrick Van Buren. The way his script works is that when you have a word selected in MarsEdit and select his script it adds a few links in parentheses after the word. Running the script on "MarsEdit" would give you:

MarsEdit <em> (<!--// Technorati START //--> <a href="" rel="tag"> t</a> <!--// Technorati END //--> <!--// DELICIOUS START //--> <a href="" rel="tag"> d</a> <!--// DELICIOUS END //--> <!--// Flickr START //--> <a href="" rel="tag"> f</a> <!--// Flickr END //--> )</em>

which would look like this MarsEdit ( ). The Flickr code I added to his script then submitted that and keyboard shortcut instructions back to him. He released an updated version that included both changes. Very cool, that was my first patch submitted to anything.

After some time using it I started to notice three things. 1: I was getting lots of questions about what the (t, d, f) was all about. 2: No one was clicking on any of those single letter links. 3: My blog wasn't coming up in the Technorati index as posting anything about anything. After a while I realized that the word that I'm linking is as important to where I'm linking it to. So by that logic any post that I used this script on was telling Technorati that i was writing about the letter 'T'. Ugh. Not good.

I've been meaning to change the script again so that the word that I have selected gets the link around it linking only to Technorati. Since and Flickr don't really do anything with incoming links. I finally made those changes today on a 737 flying from Seattle to Baltimore stopping in Kansas City. I sit on the floor in front of gate 38 waiting to sit on another 737 to take me to see my girlfriend.

The changes / simplification I made to Garrick's script could just as easily be made for Flickr, or any other tag name space. I just don't really care about those. The modified version of the script outputs this markup now:

        <a href="" rel="tag">MarsEdit</a>

I'll clean up my code and comments and post the Apple Script here, too.

[...] If you’re using my TagMaker script with MarsEdit, shaners 0 matic 8000 posted a patch for better Technorati placement: Reworked tagmaker script. [...]