Akatombo Web Log
Wednesday, November 23, 2005
Trying my hand at Applescript
Well, I technically already missed a day since it is 2A.M. as I sit down to write this, but I think we’ll count it. I have to get into bed soon so I’ll be brief. I decided today to try my hand at writing some Applescript for the first time. I set to work on what I thought should be a simple Applescript to select a random entry from my unread messages smart subscription in NetNewsWire. The plan was to get the headline count of the selected subscription, generate a random number between 1 and the count (n), and then select headline n from the subscription. I could not for the life of me figure out how to select a headline in the NetNewsWire gui via Applescript. I scoured the web for NetNewsWire Applescripts but could not find a single script that was selecting headlines, so maybe it is impossible, but it seems like something a person would fairly commonly want to accomplish. I suspect that it is possible, and that it is just my complete lack of knowledge of Applescript that is hindering me. Anybody out there know how to do this?
Akatombo Media is off for Thanksgiving from tomorrow (today actually) through the weekend so I most likely won’t be writing here either as I’m trying my best to stay away from computers on my days off. Technology is a horribly addicting thing, and I need to try to have a life outside of my laptop screen.

