OPML Editor as WordPress blogging tool: hack #1 (or is it #2?)
I’ve found (and/or created) a couple of hacks that make using the OPML Editor as a WordPress (and other blog platform) blogging tool a little nicer.
The first applies if you want to use OPML Editor to blog to multiple Metaweblog-based blogs. Right now to do so you have to set each one up in your preferences, and decide before creating a new post which blog you’re going to use (or at least that’s what it seems like).
If you’re up for a little OPML Editor hacking, you can make this a lot less of a hassle.
What you need to do is to create a right-click menu item by using the “Tools | Edit right-click menu” menu item. In the resulting outline enter a new node and name it whatever you want to call your new entry. Then double-click this node to open the script for this action.
In the script window, type the following:
This script causes OPML Editor to pop a dialog box when you right-click on a node and select your new menu item (mine’s called “Set Att”). It will ask you for the attribute you want to modify. If the attribute has a value it’ll put ha value in another dialog, if not you get a blank dialog. Type the new value you want and OPML Editor will either update the existing attribute or add a new one.
For the purposes of WordPress blogging using the OPML Editor, you can right-click the top-level node (the one with the title) of your newly added post and type “blogname” for the atribue you want to modify. Then type the blogname value for the blog you want to post to (from the list you’ve created in your prefs) and when you save the workspace you’ll post to whatever blog you’ve selected.
If any of this doesn’t make sense, please leave a comment and I’ll try to clarify it – I didn’t want to get too basic here, but in doing so might have left ou too much detail.
Next Up: hacking a little deeper into OPML Editor’s code to control post status (draft, published).