Wednesday, December 24, 2008

AppleScript via Terminal

I have been trying to come up with a viable remote control option for the computer connected to the TV. The Remote Admin tool is overkill, so I have been ssh-ing into the box and running AppleScript from the terminal:

sudo osascript -e 'say "[Hello, I am in your television]" using "Zarvox" '

I have a few options:
One is to run Apache on the Mac Mini turned Media Center and have a page with Javascript that calls AppleScript controls for Quicktime.

Another option is to run everything through Front Row. This is the really slick front-end from the AppleTV. The newer Mac Minis have a remote control that works awesome, but our older G4-based Mini doesn't have a remote, hence the need for some way to drive the interface.

A third option is to just be ghetto fabulous and steer through a mouse hooked up to the computer.

For now it has been a combination of options 1 and 3.


0 comments: