So, I banged around in irb and Google working on this whole automate my Mac's built-in camera thing. I'm not averse to buying one of the neat-o cam applications I found, like EvoCam, which could almost certainly do whatever still or video capture I want, but I want to know what I can do for free and/or with the shipping software image. And although this is a Mac specific project for the most part, the less shareware involved the more likely I am to learn something portable to another platform. From a MacDevCenter thread I was reminded of QuickTime Broadcaster, and fetched new binaries of it from Apple. Checking the FAQ for it about Applescript and then Googling led me straight into the PDF of the Leopard Server manual which says this:
For detailed information on the AppleScript features QuickTime Broadcaster supports, drag the QuickTime Broadcaster icon to the Script Editor icon in /Applications/ AppleScript/.
This seemed a rather odd thing to suggest, but I gave it a go, and it actually worked! Apparently for applications with Applescript (OSA) hooks, this odd gesture opens their dictionaries (API) in Script Editor. I could already get this in html with a tool that the rubyosa gem installs called rbdoc-osa, but I was still amused. It helped confirm my earlier finding that Photo Booth is completely without scripting hooks (fail!). I was able to create a simple little script that starts recording video with the existing setting, and another to stop it. I also ended up futzing more with my rbosa scripts and got them all working and updated.