Adam Curry's Weblog
There are no Secrets, Only information you don't yet have

Navigation

Home

About AC
Directory
Subscribe
FAQ
MTV-Chronicles
Stories
Quotes
Aviation
Referers
Ranking
Hotlist
Weblogs.com
Euro Weblogs
BloggerCon 03
ScanLog
Copy-Paste Culture
Reading Lists


Discussions

Sunday, June 27, 2004

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 bittorrent enclosures.

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.


9:38:29 PM    

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.


11:48:23 AM    


Archives

June 2004
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
May   Jul

On this day in
2000 2001 2002 2003

My Public Calendar




web curry.com live.curry.com

Our Companies

LaPaay Cosmetics
GrandMasterView

Click on the coffee mug to add Adam Curry's Instant Outline to your Radio UserLand buddy list.


Last update: 7/2/04; 5:52:00 AM
Copyright 1998 - 2004

Easy and powerful browser-based content management for Apple's Unix.