This posting is older than 6 months and can contain outdated information.
Hi, I've been setting up a Harmony One to work with Plex/EyeTV/FrontRow along the lines of http://forums.plexapp.com/index.php/topic/13936-ultimate-mac-mini-theatre-setup/page__st__20
I've set up some shortcut buttons on the harmony to (through RemoteBuddy) execute applescript actions to switch between the apps above, first closing any open app.
I seem to get an occasional issue where RemoteBuddy hangs - I think perhaps due to FrontRow interaction. In this situation the remote becomes unresponsive and the mouse beachballs over the RB menu icon; I have to resolve by force-quitting RB. So I was wondering if there's a recommended way to close FrontRow from a script.
Currently I have (for closing all existing apps):
to closeAllApps(theAppName)
-- theAppName is app we're about to switch to, to avoid closing & reopening
set appNameList to {"iTunes", "Plex", "DVD Player"} -- change for the app you have installed
-- FrontRow is special because no applescript interface
closeFrontRow(theAppName)
repeat with currentAppName in appNameList
if ((currentAppName as text) is not equal to (theAppName as text)) then
if application currentAppName is running then
tell application currentAppName to quit
end if
end if
end repeat
-- EyeTV is special because we want to close video window but leave active to record programs
closeEyeTV(theAppName)
end closeAllApps
to closeEyeTV(theAppName)
-- EyeTV is special because we want it to continue running so that recordings are still made
set myApp to "EyeTV"
if ((myApp as text) is not equal to (theAppName as text)) then
tell application "EyeTV"
activate
delay 2
end tell
tell application "System Events"
tell process "EyeTV"
keystroke "w" using command down
end tell
end tell
end if
end closeEyeTV
to closeFrontRow(theAppName)
set myApp to "Front Row"
if ((myApp as text) is not equal to (theAppName as text)) then
tell application "System Events"
tell process "Front Row"
keystroke home key
end tell
end tell
end if
end closeFrontRow
In summary, to close FrontRow, I send the homekey button as an input, directed hopefully to that process. Is there any better way? Have people experienced issues with RB hanging in conjunction with FrontRow before?
Thanks,
stub5