One brick at a time, I continue to add to my Rube Goldberg assortment of Perl scripts that drive the non-Wordpress portions of this site. The resulting photo workflow is fairly efficient; one script builds and links pages for a newly exported set of photos from Picasa. One last step to automate was the blog entry for each new album; the script spit it out to be cut and paste into WordPress’s Write Post page.
To cut out this step, I HTML-encoded the post text using the Perl one-liner
$content =~ s/([^A-Za-z0-9])/sprintf(”%%%02X”, ord($1))/seg;
and called FireFox with the post URL. The necessary parameters are post_title and content. I wasn’t able to select the category checkboxes, but set the default to Photography instead.
This nicely prefills the form for preview or additions; have fun making your own scripts start writing blog entries for you!
del.icio.us/mbotos