Jump to content

EyeTV support for Griffin Airclick USB Remote Control Unit


LS8
 Share

2 posts in this topic

Recommended Posts

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.

airclick_eyetv_plugin.zip

Link to comment
Share on other sites

  • 4 months later...
 Share

×
×
  • Create New...