PowerShell and Social Bookmarking

I was messing about with PowerShell the other day (when I ran into my batch rename problems) having been inspired by James's post on "Powershell to add social bookmarking tags". What he was doing (using some code originally created by Lee Holmes) was, I thought, quite clever.

In order to add a bookmark you need to know the post URL. But you need to publish to get a URL. Therefore the whole thing becomes a bit labour intensive if done manually. James has automated this procedure with a PowerShell script.

Of course rather than just taking James's script and using it, I had to mess around a bit with the links, the html and the CSS. The actual PowerShell script I hardly touched.

I'm going to test it out here. In theory, all I need to do is type "addbookmark" at the start prompt (after publishing this) and Start++ initiates the PowerShell script for me. The script grabs the last post and appends the social bookmarking tags before re-publishing.

All the credit for this goes to Lee and James. I'm not even sure I'll use it much given the mixed reaction such tags provoke but it was fun playing around with it.

Technorati Tags: powershell,social bookmarking