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!
Download ghostwriter.txt (2k) to somewhere convenient. Make sure it is executable (
chmod +x ghostwriter).
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
---PAUSE xwill pause for x seconds.
---FOCUS appwill activate an application
---FOCUS app:windowwill bring the specified window to the front of the screen. Window can either be a integer or a quoted string (the window name)
Any comments? Let me know: firstname.lastname@example.org