Jump to content

fluid | fixed

EyeTV support for Griffin Airclick USB Remote Control Unit


1 reply to this topic

#1
LS8

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 572 posts
  • Gender:Male
  • Location:Reality Distortion Field
Text to be added to /Applications/AirClick.app/Contents/Resources/functions.plist (above the last two lines of the file):
	<dict>
		<key>Functions</key>
		<array>
			<dict>
				<key>Button</key>
				<integer>1</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Play / Pause</string>
				<key>OnRelease</key>
				<true/>
				<key>Repeats</key>
				<false/>
				<key>Scriptname</key>
				<string>eyetv_playpause.applescript</string>
				<key>Time</key>
				<integer>0</integer>
				<key>ShowInMenu</key>
				<true/>
			</dict>
			<dict>
				<key>Button</key>
				<integer>2</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Volume Up</string>
				<key>OnRelease</key>
				<false/>
				<key>Repeats</key>
				<false/>
				<key>Scriptname</key>
				<string>eyetv_volup.applescript</string>
				<key>Time</key>
				<integer>0</integer>
				<key>ShowInMenu</key>
				<true/>
			</dict>
			<dict>
				<key>Button</key>
				<integer>4</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Volume Down</string>
				<key>OnRelease</key>
				<false/>
				<key>Repeats</key>
				<false/>
				<key>Scriptname</key>
				<string>eyetv_voldown.applescript</string>
				<key>Time</key>
				<integer>0</integer>
				<key>ShowInMenu</key>
				<true/>
			</dict>
			<dict>
				<key>Button</key>
				<integer>8</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Next Station</string>
				<key>OnRelease</key>
				<true/>
				<key>Repeats</key>
				<false/>
				<key>Activate</key>
				<true/>
				<key>Scriptname</key>
				<string>eyetv_channelup.applescript</string>
				<key>TestLogic</key>
				<dict>
					<key>Value</key>
					<integer>0</integer>
					<key>VarName</key>
					<string>DidFF</string>
				</dict>
				<key>Time</key>
				<integer>0</integer>
				<key>ShowInMenu</key>
				<true/>
			</dict>
			<dict>
				<key>Button</key>
				<integer>8</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Fast Forward</string>
				<key>OnRelease</key>
				<false/>
				<key>Repeats</key>
				<false/>
				<key>Activate</key>
				<true/>
				<key>Scriptname</key>
				<string>eyetv_fforward.applescript</string>
				<key>SetLogic</key>
				<dict>
					<key>Value</key>
					<integer>1</integer>
					<key>VarName</key>
					<string>DidFF</string>
				</dict>
				<key>Time</key>
				<integer>1</integer>
				<key>ShowInMenu</key>
				<true/>
			</dict>
			<dict>
				<key>Button</key>
				<integer>8</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Fast Forward End</string>
				<key>OnRelease</key>
				<true/>
				<key>Repeats</key>
				<false/>
				<key>Scriptname</key>
				<string>eyetv_play.applescript</string>
				<key>SetLogic</key>
				<dict>
					<key>Value</key>
					<integer>0</integer>
					<key>VarName</key>
					<string>DidFF</string>
				</dict>
				<key>TestLogic</key>
				<dict>
					<key>Value</key>
					<integer>1</integer>
					<key>VarName</key>
					<string>DidFF</string>
				</dict>
				<key>Time</key>
				<integer>0</integer>
			</dict>
			<dict>
				<key>Button</key>
				<integer>16</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Previous Station</string>
				<key>OnRelease</key>
				<true/>
				<key>Repeats</key>
				<false/>
				<key>Activate</key>
				<true/>
				<key>Scriptname</key>
				<string>eyetv_channeldown.applescript</string>
				<key>TestLogic</key>
				<dict>
					<key>Value</key>
					<integer>0</integer>
					<key>VarName</key>
					<string>DidRW</string>
				</dict>
				<key>Time</key>
				<integer>0</integer>
				<key>ShowInMenu</key>
				<true/>
			</dict>
			<dict>
				<key>Button</key>
				<integer>16</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Rewind</string>
				<key>OnRelease</key>
				<false/>
				<key>Repeats</key>
				<false/>
				<key>Activate</key>
				<true/>
				<key>Scriptname</key>
				<string>eyetv_rewind.applescript</string>
				<key>SetLogic</key>
				<dict>
					<key>Value</key>
					<integer>1</integer>
					<key>VarName</key>
					<string>DidRW</string>
				</dict>
				<key>Time</key>
				<integer>1</integer>
				<key>ShowInMenu</key>
				<true/>
			</dict>
			<dict>
				<key>Button</key>
				<integer>16</integer>
				<key>Modifiers</key>
				<integer>0</integer>
				<key>Name</key>
				<string>Rewind End</string>
				<key>OnRelease</key>
				<true/>
				<key>Repeats</key>
				<false/>
				<key>Scriptname</key>
				<string>eyetv_play.applescript</string>
				<key>SetLogic</key>
				<dict>
					<key>Value</key>
					<integer>0</integer>
					<key>VarName</key>
					<string>DidRW</string>
				</dict>
				<key>TestLogic</key>
				<dict>
					<key>Value</key>
					<integer>1</integer>
					<key>VarName</key>
					<string>DidRW</string>
				</dict>
				<key>Time</key>
				<integer>0</integer>
			</dict>
		</array>
		<key>Name</key>
		<string>EyeTV</string>
		<key>AppBundle</key>
		<string>com.elgato.eyetv</string>
	</dict>

applescripts to be placed in /Applications/AirClick.app/Contents/Resources/scripts/ folder:

eyetv_channeldown.applescript
tell application "EyeTV"
		channel_down
		tell application "AirClick"
				display message "EyeTV Channel Down"
		end tell
end tell

eyetv_channelup.applescript
tell application "EyeTV"
		channel_up
		tell application "AirClick"
				display message "EyeTV Channel Up"
		end tell
end tell

eyetv_fforward.applescript
tell application "EyeTV"
		fast forward
		tell application "AirClick"
				display message "EyeTV" icon fforward
		end tell
end tell

eyetv_play.applescript
tell application "EyeTV"
		play
		tell application "AirClick"
				display message "EyeTV" icon play
		end tell
end tell

eyetv_playpause.applescript
tell application "EyeTV"
		playpause
		tell application "AirClick"
				display message "EyeTV Play/Pause"
		end tell
end tell

eyetv_rewind.applescript
tell application "EyeTV"
		fast backward
		tell application "AirClick"
				display message "EyeTV" icon rewind
		end tell
end tell

eyetv_voldown.applescript
tell application "EyeTV"
		volume_down
		tell application "AirClick"
				display message "EyeTV" icon volume
		end tell
end tell

eyetv_volup.applescript
tell application "EyeTV"
		volume_up
		tell application "AirClick"
				display message "EyeTV" icon volume
		end tell
end tell

Make scripts executable, restart AirClick application. Tested with EyeTV3 on Mac OS X 10.5.2.

Attached Files



#2
sonotone

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,151 posts
Usefull hack, thanks.







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

© 2012 InsanelyMac  |   News  |   Forum  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy