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="http://www.Technorati.com/tags/MarsEdit" rel="tag"> t</a> <!--// Technorati END //--> <!--// DELICIOUS START //--> <a href="http://del.icio.us/tags/MarsEdit" rel="tag"> d</a> <!--// DELICIOUS END //--> <!--// Fickr START //--> <a href="http://Fickr.com/photos/tags/MarsEdit" rel="tag"> f</a> <!--// Fickr END //--> )</em>

which would look like this MarsEdit ( ). The Fickr 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 del.icio.us and Fickr 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 Fickr, del.icio.us 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="http://www.technorati.com/tags/MarsEdit" rel="tag">MarsEdit</a>

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

Technorati Tags:
, , , , ,

Advertisements