nil.enroll(aetheric_username, quantum_class_id) (adric) wrote,
nil.enroll(aetheric_username, quantum_class_id)
adric

  • Location:
  • Mood:
  • Music:

Scripting, iSight, madness, ruby

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.

Tags: mac, ruby, scripting
Subscribe

  • Insomnia post!

    Aw, come on, you know you've been wanting one. Tonight I am not reading another Sookie Stackhouse* novel and I shut off the video game of the moment…

  • whine, mope, blech

    The days, they have not been going all that great, even starting then after 12 noon. Of course this makes a convincing argument for not getting out…

  • Awake now, argh.

    First woke at 6, talked on the phone some without leaving bed. Didn't feel up to leaving bed, or moreover I found the possibility distant. Whether…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments