May 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 31          
Jul   Jun
Macros

This is my weblog of macros and tips for Radio Userland.

All of my macros and tips are listed to the right (hover over the name to see a brief description).

 Sunday, July 13, 2003
[Macro error: The file "vol2:Applications:Radio UserLand:source:posts:radioUserland:scotsman.opml" wasn't found.] comment []
 Saturday, June 21, 2003
[Macro error: The file "vol2:Applications:Radio UserLand:source:posts:radioUserland:headline.opml" wasn't found.] comment []
 Friday, June 20, 2003

I have made a tiny update to the Callout Box macro to remove a line break after the calloutTab.gif image. This caused the tab shape to vary slightly on different browsers.

comment []
 Thursday, June 12, 2003

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 []
 Saturday, June 7, 2003

I updated my Callout Box macro to version 0.91 yesterday to correct a minor typo.

The effect of this typo was to omit a space within a td tag making it read as follows:

<td bgcolor=#e4be04valign=top>

Note the missing space between the bgcolor attribute and the valign attribute. Interestingly, this typo caused no problems in IE 5.2 for Mac OS X which is my normal browser. It was only the day after I released the code, when I checked using IE on Windows and Netscape 7 on OS X that I noticed the problem. On both these browsers, the table cell background displayed as red instead of #e4be04 which is a dark yellow.

I know - I can hear you - I should have tested on multiple browsers before release but such are the vagaries of amateur software

comment []
 Thursday, June 5, 2003
[Macro error: The file "vol2:Applications:Radio UserLand:source:posts:radioUserland:calloutBox.opml" wasn't found.] comment []