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

  • weekend shopping list

    Although I'd thought to just pop into Kroger, this is shaping up to be more of a Target/Wallyword scale operation, and one I'll need a wingman for:…

  • Please *do* glorify some great hackers and not crime

    Please *do* glorify some great hackers and not crime Re: "Stop Glorifying Hackers"(sic) from the M. McWhorter, I'm sorry you had trouble safely…

  • MCU for Fall and Winter 2013

    The Keanu movie about the ronin was not as bad as the trailer led us to believe it would be. I saw it in a theatre with an aikido afficianado and…

  • 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