I just saw the following patent of apple:Â Apple ‘Magic Wand’ Remote System Patent for Apple TV Resurfaces
Took me 2 minutes to code.
A accelerometer recognizes gestures and sends IR signals. These signals trigger applescripts to emulate a keytroke.
Yeah i know. Who the hell owns a magic wand..
Heghlu’meH QaQ jajvam!
This is the applescript I use to trigger my actions.
on kymera(gesture) --say gesture if gesture is "swing" then tvpower() end if if gesture is "up" then tell application "System Events" key code 53 end tell end if if gesture is "down" then tell application "System Events" key code 36 end tell end if if gesture is "rotate left" then tell application "System Events" key code 126 end tell end if if gesture is "rotate right" then tell application "System Events" key code 125 end tell end if if gesture is "tap" then end if if gesture is "sidetap" then end if if gesture is "swing right" then tell application "System Events" key code 124 end tell end if if gesture is "swing left" then tell application "System Events" key code 123 end tell end if end kymera
I use iRed by Robert Fischer to assign a applescript to a IR Signal.
set HAL to load script "Macintosh HD4:HAL:Preferences:31Prototypes.scpt" as alias
tell HAL
kymera("down")
end tell

