I've been determined to pick up learning how to program this year and today I finally started, not bad, only half the year is over :)
My project was to create a drag and drop system to create an rss feed of bittorrentenclosures.
In short, I wanted a faster way to publish my favourite torrents. The solution calls to drag and drop a torrent file onto a folder or icon and then be promted for a description. The torrent is the uploaded to my server and added to an rss feed as an enclosure.
I remembered applescript does xml-rpc so I diddled about until I was able to make a post from applescript to the metaWeblogAPI in Radio UserLand. Took me a while to figure out the correct syntax of a struct, a little test script that implemented getPost helped enormously as it returns a struct for the given postId.
Next I worked on the interface for getting all relevant information about the torrent file into the blog post. I started by using the
selection
statement.
Once I had all of this tied to gether it worked as advertised! Just select a torrent, run the script, enter a description and the rest happens automagically.
Haven't been able to figure out the folder actions yet to get it to work, still digging...
I've uploaded a copy of the script here if you're interested. You'll have to change your blog info and path to the folder the torrent needs to be upstreamed from.
Er hebben zich al een respectabele 15 mensen aangemeld voor het groeps-log experiment. Zeer uiteenlopende groep mensen. Er heeft nog niemand geschreven, maar hoop dat maandag al te zien gebeuren.