bynkii (bynkii) wrote,
bynkii
bynkii

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.
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments