| June 2003 | ||||||
| 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 | ||||||
I played around with Radio's xml-rpc interface (MetaWeblog API) via applescript for the first time today.
It worked pretty well, although it took me a while to work out what I was doing. I will post some example code in the next few days which may help others to get to grips with it a bit more easily.
I did run into one problem which I couldn't overcome. The metaWeblog.getCategories call returns a struct of structs. Applescript conveniently translates structs into records which is usually very convenient. However, in this case I really was looking for the category names. These become the labels in the applescript record as in:
{category1Name:{description:"a weblog",...}, category2Name:{...}}
Unfortunately, I don't know of any way to access the labels of a record in applescript, so I can't retrieve the category names. I had to revert to a standard applescript "Do Script" to get the category names. Which may make my code example even more useful to some - but is not really what I wanted to do.
comment []