MarsEdit – New Post With Comments Off


I saw that programmer extraordinaire Mike Lee posted to Twitter, wondering if MarsEdit had a way to turn comments off by default when writing a new post. If there is a way to do that within the program, I don't know it -- but I do know how to do that in AppleScript! (UPDATE - Daniel Jalkut, another programmer extraordinaire and the man behind MarsEdit, writes that *there is* a preference: Double click the blog's icon in MarsEdit main window and then look under "Editing" for many post-default-related options. Thanks Daniel!)

The Code

tell application "MarsEdit"
    make new document
    tell document 1
        set comment status to 2
    end tell
end tell