Ghostwriter

Ghostwriter is a command line ruby script that produces applescript that makes it looks like you're typing. This is useful when you're making demo code, because unlike me, the computer never makes a typo!

Installation

Download ghostwriter.txt (2k) to somewhere convenient. Make sure it is executable (chmod +x ghostwriter).

Use

The script an input file from stdin and outputs applescript to stdout.

Save example.txt to see it in action.

./ghostwriter < example.txt
./ghostwriter < example.txt > example.script
./ghostwriter < example.txt | pbpaste
./ghostwriter < example.txt | osascript

Special commands

Contact me

Any comments? Let me know: h.wickham@gmail.com