« To every one who keeps wanting "killer" features.. | Main | Tim O'Reilly has lost his mind, and is taking others with him on the trip »

Sharing content between blogs in ecto

As most of you might guess, I've more than one blog in this world, and often, like to post the same things to multiple places. Unfortunately, most of the MovableType-to-other plugins I've seen and tried kind of suck. So I just hacked together a way to do it in ecto with AppleScript (Duh!):

tell application "ecto"
set theDocument to document 1
set theTitle to entry title of theDocument
set theBody to entry body of theDocument

set theCrossPost to make new document at beginning of documents with properties {current personality:"ecto account name", current blog:"blog title", entry title:theTitle, entry body:theBody, publish status:true, categories:{}}
set current blog of theCrossPost to "blog title"
end tell

This is pretty easy to read code, so I left off the comments. The only odd part is this line:

set current blog of theCrossPost to "blog title"

Which is necessitated by ecto's suboptimal blog listing facility. (It lists "personalities" and blogs as colon delimited text in one big string, with one line per entry. So no matter what initial blog you set it to, it's always going to pick the first one by default. So you have to re-set the actual blog. Annoying.) However, this is still better than manual copy and paste. I did post some of the issues with ecto's dictionary in the ecto forums, so we'll see what happens.

Technorati Tags: ,

Posted by John C. Welch at 23:26 | Permalink


Comments

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?


digital.forest Where Internet solutions grow

 
Family
The Artwork of Melissa Findley
Diane Francis @ the National Post Eric Francis @ the Calgary Sun
Apple Amazon Links
Apple Mac OS X Server 10.5 [Unlimited]

Apple Mac OS X Server 10.5 [10-Client]

Apple Mac OS X 10.5 Leopard

Apple Mac OS X 10.5 Leopard [5-User Family Pack]

Amazon Book Links
Legacy of Ashes: The History of the CIA

The Donnas: Bitchin'

Wizards at War (The Young Wizards, Book 8)

The Demon's Sermon on the Martial Arts

The Collected Stories of Arthur C. Clarke

JavaScript and Ajax for the Web, Sixth Edition

Awakening Warrior: Revolution in the Ethics of Warfare

FOB Links

Mac Web Writers

Techie Links

Review Victims