michael-mccracken.net

Quick n’ Dirty OmniOutliner to MediaWiki Applescript

The other day, I had a big outline on a wiki that I wanted to edit in OmniOutliner so I could hide and move things around with a real outliner, then export it back out to the wiki.

I managed to get it into OO with copy and paste and a lot of RSI-inducing tabbing, but the text export options can’t be massaged to export MediaWiki-style (eg, ‘#’ for level one, ‘##’ for level two).

So I wrote a quick Applescript to get the data out and get me back on my way. I thought I’d post it in case it would be useful to anyone else:

tell front document of application "OmniOutliner Professional"
    
    set expText to ""
    
    repeat with aRow in rows
        set rowText to ""
        -- start from 2 to treat top levels as headers
        repeat with i from 2 to level of aRow
            set rowText to rowText & "#"
        end repeat
        set rowText to rowText & " " & topic of aRow
        set expText to expText & return & rowText
    end repeat
    
    set the clipboard to expText
    
    display dialog "The exported text is in the clipboard."
end tell

Update: see the comments for a version for TWiki. Thanks, Peter!

Previously:
Take Control of OS X Backups

The excellent “Take Control” series of Mac ebooks has updated “Take Control of OS X Backups” to version 2.0.

I have gotten a lot of use out of their other books. “Take Control of Your Airport Network” saved me a lot of frustration setting up a network for my roommates, and “Take Control of [...]

read the rest.
BibDesk and the hCite Microformat
January 26, 2007

This is about building an iTunes store-style interface to the web’s bibliographic information.

I’ve been pushing along the hCite Microformat process, which will set a standard for HTML publishers to add simple semantic markup to their pages that programs like BibDesk can read as citation metadata.

In stark contrast to great but complex things like [...]

read the rest.
BibDesk OpenURL script workflow
January 15, 2007

I love reading about how people use BibDesk. Over on the bibdesk-users mailing list, James Howison explains in detail how Alex Montgomery’s OpenURL script is making him happy. The short version: “Zero typing of the bibliographic details :)”

As he explains, you can find some great scripts for BibDesk on the wiki at BibDesk Applescripts.

read the rest.
Next Page »
Feed, Endorsements & other Links

my bookmarks

© 2005 - 2007 Michael McCracken.