Capturing REPLesent Output

For my presentation at ScalaDays I used REPLesent, a very neat tool that allows you to create slides in the Scala REPL and evaluate the code on the slides.

I wanted to also put this output in the resulting slidedeck for my presentation, so I wrote a script using AppleScript which captures the console window and goes through the slides, screenshotting every slide and it’s REPL output.

You can find the source in the gist below. It assumes you have the presentation and REPL loaded in iTerm and that it is full screen with the tabs/toolbar hidden.

Have fun using it!