eyetv in main menu

what do i need?
Hi all,

for my personal viewing pleasure I would like to add "EyeTv" to the Plex main menu.
I already added an "EyeTv" button but I need to know the onclick action.
I want this button to behave like starting eyetv via "Programs" (Stop Plex; Start EyeTv; Start Plex after quitting EyeTv)

Could somebody tell me what XBMC call I have to trigger on click?
Is there something like XBMC.startProgramm("eyetv")?

Or is there another (simpler) way to add EyeTv?



Cheers!

Plex.Runscript(“runeyetv.applescript”)



where runeyetv.applescript is in your ~/Library/Application Support/Plex/scripts dir



Unfortunately, my applescripting is about as good as my sense of fashion… so that’s where I stop giving good advice





The runeyetv.applescript should contain something like:



tell application "EyeTV" to<br />
activate<br />
end tell



but I've got no idea if even that is syntactically valid unless I look it up :)

I would use


do shell script "open /Applications/EyeTV.app"



but that isn't really the apple way ;)

Plex.ActivateWindow(MyPrograms,EyeTV) should also work (if you’ve added EyeTV to Plex’s Applications menu) :slight_smile:


Thanks Jam! That was the command I was looking for.


If someone prefers Kent's (kudos) way, he could use this applescript:

on run<br />
	tell application "Plex"<br />
		quit<br />
	end tell<br />
	<br />
	tell application "EyeTV"<br />
		activate<br />
	end tell<br />
	<br />
	repeat<br />
		if application "EyeTV" is running then<br />
			delay 1.5<br />
		else<br />
			exit repeat<br />
		end if<br />
	end repeat<br />
	<br />
	tell application "Plex"<br />
		activate<br />
	end tell<br />
end run

Hi,



How did you add EyeTV to the plex Main menu? Presumeably in one of the skin xml. Can you give me a pointer.



Thanks

I patched the Plexaeon skin:

Plexaeon/720p/Includes_MainMenu.xml (added EyeTV button with Plex.ActivateWindow call)

Plexaeon/720p/Includes_Backgrounds.xml (EyeTV main menu backgrounds)

Plexaeon/language/English/strings.xml (“EYETV” string)





Patch is attached.



<br />
cd ~/Library/Application\ Support/Plex/skin/Plexaeon<br />
patch -p1 < ~/Plexaeon_eyetv.txt<br />




Is there a way to add a plugin application to the main menu?

Basically, I want my main menu to be Music, Pictures, Movies, TV Shows, iPlayer. Nothing more. Hints and/or tips?

Thanks for posting these tips. I have a quick question that I was never able to resolve:



Once you get EyeTV running, how do you actually force a quit such that Plex returns? I’m using a Harmony Remote and was never able to get this to work (short of breaking out the keyboard to quit).

hey fuglu01



are you able to post a plex/eyetv video on youtube please

i’m really interested in moving to plex for my media center needs but am worried about eyetv integration



just have a look at [this](http://www.youtube.com/watch?v=LQhSlPX7anA&feature=related) youtube vid.
i just added an "EyeTV" next to "Movies", "TV Shows", "Pictures" etc.
if you hit the "EyeTV" button plex shuts down and eyetv opens up. after closing eyetv plex is launched again. just like opening eyetv via "Games".
nothing special



Interesting. Can you let me know how you are controlling EyeTV while in it. It looked like you were just changing channels up and down. I haven't seen how to do that driving it from a Harmony One.

Rather than closing EyeTV and opening Plex, or Closing Plex and opening EyeTV, I am trying a different approach which looks cleaner to me... but I'm wondering if I can control it more "push button". I start EyeTV and make it fullscreen by default so that is my "steady state" of the Mac Mini. Its kind of what you'd expect when you turn on the TV, and it is also going to allow EyeTV to record whatever it wants. Using Remote Buddy, I launch Plex when I want to go into it. It quiets EyeTV and Plex seems to work fine. I have Remote Buddy disabled on the Menu key in Plex so that I can't accidentally launch something with Plex still going. When I want to go back to EyeTV (or anything else), I Quit Plex, and it just closes and you find EyeTV already running fullscreen under it. This seems to transition looking cleaner to me.

So the question is, rather than "exiting" Plex to go back to EyeTV, could I create a main menu choice in Plex that says EyeTV (or Live TV or whatever) that actually just quits Plex? This would in effect take me back to EyeTV with this setup.

Also, is there any better Harmony control available for EyeTV to use the whole remote using Remote Buddy? Just curious because using just the Menu button and direction arrows is kind of a drag and not very "wife friendly".


This should be easy; rather than creating a new menu item, you could just edit the existing "quit" item. In /Users/[*username*]/Library/Application Support/Plex/Skin/[*your skin*]/720p/home.xml, find the entry for the "Quit" menu item... it should be toward the bottom and look something like this:

   <item id="8"><br />
    <description>Quit</description><br />
    <label> $LOCALIZE[....] </label><br />
    <label2> $LOCALIZE[....] </label2><br />
    <onclick> ... (etc)



Edit those two "localize" lines to look like this:

    <label> EyeTV </label><br />
    <label2> Quit to </label2>



Then in the menu, it should say "Quit to EYETV." In the main menu, the is the small text, and the is the big text -- at least in Mediastream... I haven't tried any other skins.

If you want to go further and change the background image, etc., I don't know how to do that, but I'm sure it could be done.


I want to patch this file to plexaeon9. I don't get it to work. Can somebody help me? I think that the bron code of the patch file must be changed for plexaeon9. I don't know how to do.

Thank you

I can’t get it to work either with plexaeon9. I guess i should use the terminal to apply the .txt?



I'm a noob to Plex and I'm having some difficulty trying to accomplish what fuglu01 did with his aeon skin hack. Would someone be kind enough to post the code modifications that would be required in each of these files:

Includes_MainMenu.xml
Includes_Backgrounds.xml
strings.xml


I'm using the Plexaeon9 skin.


Okay, I was able to successfully add a button for "EyeTV" in the main menu but I still can't get my applescript to run when I click on the EyeTV button. Here's my EyeTV button and associated onlick action which is supposed to launch the script named "runeyetv.applescript":


<item id="25"><br />
	<description>EyeTV</description><br />
	<include>BackgroundVarsEyeTV</include><br />
	<label>31022</label><br />
	<onclick>Plex.Runscript(runeyetv.applescript)</onclick><br />
	<visible>Skin.HasSetting(eyetv)</visible>



My "runeyetv" script is written as follows:


if application "EyeTV" is running then<br />
        tell application "EyeTV"<br />
                activate<br />
                play<br />
                enter full screen<br />
        end tell<br />
end if<br />
<br />
if application "EyeTV" is not running then<br />
        tell application "EyeTV"<br />
                activate<br />
        end tell<br />
end if<br />
<br />
if application "Plex" is running then<br />
        tell application "Finder"<br />
                set visible of process "Plex" to false<br />
        end tell<br />
end if



If I run the script from Finder, it works fine so that doesn't seem to be the problem. I can also successfully use onlick action for

Plex.ActivateWindow(MyPrograms,EyeTV)

to launch EyeTV but it doesn’t provide the seamless transition I’m trying to accomplish. Any help is appreciated.

I found this via search. Wanted to share my solution.



In the end, I used this modified script. It kills PlexHelper before reactivating Plex so to make Plex search for the remote again (Plex will loose control of the remote otherwise).



on run

tell application “Plex”

quit

end tell

tell application “EyeTV”

activate

end tell



repeat

if application “EyeTV” is running then

delay 1.5

else

exit repeat

end if

end repeat

tell application “Terminal”

activate

delay 2

do script “killall PlexHelper”

delay 2

quit

end tell

tell application “Plex”

activate

end tell

end run

thanks artdept for sharing your solution.

But maybe you could add how your changes on the MainMenu xml files look like? I’m not able to add something to the main menu.

If I add


<item id="25"><br />
        <description>EyeTV</description><br />
        <include>BackgroundVarsEyeTV</include><br />
        <label>31022</label><br />
        <onclick>Plex.Runscript(runeyetv.applescript)</onclick><br />
        <visible>Skin.HasSetting(eyetv)</visible>



to Includes_MainMenu.xml, nothing happen in Plex's Aeon Main Menu

Thanks Chris

edit: okay I have to add these change in the right folder (skin.plexaeon). :P

But another question is, if I activate the "Programs" tab in settings no section called "Programs" appears in the Front menu. Is there another switch where to turn this section on?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.