Scripting Manila and iTunes

New scripts today. First, a version of the iTunes script I wrote a few days ago that posts the currently playing item directly to a Manila website as a news item. Second, some modules that contain functions for making SOAP calls and calling Manila RPC interfaces.

As a programmer, I was big into reuse of code through object orientation. It bugged me for a long time that I couldn’t figure out how to make that work in AppleScript. Today I’ve got one version working. It’s not very clean, because it requires a lot of drag and drop installation, but it’s getting there. The other good thing is that it will cut down on the amount of pain in writing and deploying these scripts because it separates a lot of the Manila “glue” code from the parts of the scripts that actually do things.

All the scripts can be downloaded from my scripts page.

One note about iTunes2Manila–if your site is hosted on editthispage.com like mine is, you may get some timeout messages. I’m still playing with avoiding these, but (as you can tell from my home page), just because you get a timeout doesn’t mean that the news item didn’t get posted.

‘Tis (Almost) the Season

I was feeling grumpy yesterday about all the Christmas decorations in the mall as I walked around with Lisa and our friend Kelley, who was visiting from Maine. But this morning I saw something that changed that feeling in a second.

Every morning I walk through Government Center Plaza on my way to catch the train. For the past month or two there has been a crew building a big tent shelter — one of the kind that have steel frames and their own climate control. Something that looks like it’s intended to stand up all winter.

This morning I went by to see that the tent had changed. Formerly plain white, it was surrounded by wooden boxes painted like they were wrapped presents, and the spire of a pine tree stood on the far side. Curious, I walked past the door and saw the interior decorated with pine rope and lights.

And I started crying. Because I thought about all the kids who would be having Christmas without one of their parents this year. And all the parents who wouldn’t be hearing from their grown children.

I hope the city intends that tent for the children.

Wah wah wah

So I’m feeling pretty sorry for myself this morning…we have no classes but I’ll still be working my butt off. So I’ll probably update the page in dribs and drabs over the day as I start to feel better.

Love in the Time of … Ada?

Having finished Gabriel García Marquez’s Love in the Time of Cholera on Friday, I was desperately grasping around for something new to read. The difficulty is that almost all my books are in storage in New Jersey, owing to the difficulty of fitting six bookcases into an 825 square foot apartment in Boston and still having room for many cases of wine.

Then I realized I still had some Nabokov on my shelves. I hadn’t read Ada, or Ardor in many years. It was time to pick it up again.

I had forgotten how genuinely strange the book is. I’m one chapter in and I’m in love with the book again. I hope that Dmitri Nabokov (the author’s son and translator) at some point approves a hypertext edition of the works, because his works cry out for linking, annotation, and just general explication. The book is set in a slightly different world in which Russia and the US coexist (as they did in Nabokov’s memory. Reading the place names alone is an adventure: the states New Cheshire and Mayne, the cities “Aardvark, Massa.” and “Lolita, Texas” (!), the transposition of Russia into somewhere in “‘Russian’ Canady, otherwise ‘French’ Estoty, where not only French, but Macedonian and Bavarian settlers enjoy a halcyon climate under our Stars and Stripes.”

But it’s a love story. More about that as I get further into the book.

Experimenting with Site Layout

This is an experiment with using the news items feature of Manila. This feature will do a few things for the site

  • It will enable me to post things more directly to the website
  • It will eliminate some of the date and time confusion that the site has occasionally had when posting an item late on a certain day
  • It will improve the syndication of the site, making it easier for users of tools like Radio to point to things on my site

We’ll see how it goes.

Scripting iTunes

A new script today. No Manila, but it’s a productivity enhancement for my blogging. It grabs the currently playing song from iTunes and drops it into TextEdit. The script is called iTunes2TextEdit, and it’s available from my mac.com homepage.

You need iTunes 2 and MacOS X to run this script. It also works pretty well with TextEdit2Blog, my other script for blogging from TextEdit.

I want to enhance the script to dump in links with the song information automatically, but other than linking to a Google search, I’m not sure where to point the lookups. The Ultimate Band List and IUMA are both hard to navigate from a search standpoint. Why is there no IMDB for information about music?

Currently playing song: “Becuz” by Sonic Youth on Washing Machine.

Hello Swindon, Goodbye Kitty

A couple of links this morning, some good, some bad, some just scary.

My friend John Vick, with whom I sang in the Virginia Glee Club and who was a housemate for a while back in Virginia, continues to do good things with his band Hello Swindon. They have a webcast today via Knot Radio from 10 to midnight Eastern time. Check it out.

There’s a pretty good Vladimir Nabokov web site that I just discovered yesterday called zembla. Lots of stuff about Nabokov and his works. Check it out. Now. 🙂

Finally, the scary-funny one. Seems that in the 1960s, the CIA was bugging
kitties so that they could eavesdrop on the Soviets. My favorite part: “They found he would walk off the job when he got hungry, so they put another wire in to override that.” Of course this wouldn’t be a funny Cold War story without a really bad first test of the technology…