Adam

auto-update of dvb program guide

Recommended Posts

Although I have quite some issues with EyeTV4 (all covered in other topics) my biggest problem was NOT being able to automatically update the DVB-program guide.

Recently though I discovered a Mac-app 'cliclick', which I installed, which now allows me to, indeed auto update the dvb guide.

You need to be a litlle bit more than a regular end-user to install it, tell MacOS to allow it to control your programs and install a script that runs every now and then, ut if you are, that this could be a good example to start with:

 

/usr/bin/osascript -e 'tell application "EyeTV" to quit'

sleep 10

#

/usr/bin/osascript -e 'tell application "EyeTV" to activate'

sleep 30

#

# command-w

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+100,+0 w:2000 c:. m:+0,+182 w:2000 c:. m:+0,-182 w:2000 m:510,+0 c:.

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+100,+0 w:2000 c:. m:+0,+182 w:2000 c:. m:+0,-182 w:2000 m:510,+0 c:.

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+100,+0 w:2000 c:. m:+0,+182 w:2000 c:. m:+0,-182 w:2000 m:510,+0 c:.

# control-p

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+370,+0 w:2000 c:. m:+0,+165 w:2000 c:. m:+0,-165 w:2000 m:510,+0 c:.

# control-z

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+370,+0 w:2000 c:. m:+0,+50 w:2000 c:. m:+0,-50 w:2000 m:510,+0 c:.

# update dvb

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+0,+120 w:2000 rc:. w:2000 m:+15,+40 w:2000 c:.

 

 

I suggest you let it run and you'll see what happens. I am happy with it.

 

To explain a bit:

When starting EyeTV it comes up with w program-window on a random location (that's why I close the top window before generating any more mouseclicks)

It may also start with a live viewer window (that's why I close the top window before generating any more mouseclicks)

Just to be sure there are no other windows open I do a command-w once more 😉

 

After that I open a Program-Window, zoom it so that I know the exact position of the buttons on the left and finally I click the 'Update DVB' button.

 

 

Share this post


Link to post
Share on other sites

Sorry for the typo's... For some reason I have not been able to edit them out, so here is the story again (with less typo's, I hope):

 

 

Although I have quite some issues with EyeTV4 (all covered in other topics) my biggest problem was NOT being able to automatically update the DVB-program guide.

Recently though I discovered a Mac-app 'cliclick', which I installed, which now allows me to, indeed auto update the dvb guide.

You need to be a litlle bit more than a regular end-user to install it, tell MacOS to allow it to control your programs and install a script that runs every now and then, but if you are, then this could be a good example to start with:

 

/usr/bin/osascript -e 'tell application "EyeTV" to quit'

sleep 10

#

/usr/bin/osascript -e 'tell application "EyeTV" to activate'

sleep 30

#

# command-w

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+100,+0 w:2000 c:. m:+0,+182 w:2000 c:. m:+0,-182 w:2000 m:510,+0 c:.

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+100,+0 w:2000 c:. m:+0,+182 w:2000 c:. m:+0,-182 w:2000 m:510,+0 c:.

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+100,+0 w:2000 c:. m:+0,+182 w:2000 c:. m:+0,-182 w:2000 m:510,+0 c:.

# control-p

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+370,+0 w:2000 c:. m:+0,+165 w:2000 c:. m:+0,-165 w:2000 m:510,+0 c:.

# control-z

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+370,+0 w:2000 c:. m:+0,+50 w:2000 c:. m:+0,-50 w:2000 m:510,+0 c:.

# update dvb

/usr/bin/osascript -e 'tell application "EyeTV" to activate' ; sleep 1 ; /usr/local/Cellar/cliclick/5.1/bin/cliclick m:28,11 w:2000 m:+0,+120 w:2000 rc:. w:2000 m:+15,+40 w:2000 c:.

 

 

I suggest you let it run and you'll see what happens. I am happy with it.

 

To explain a bit:

When starting EyeTV it may start with a live viewer window (that's why I close the top window before generating any more mouseclicks)

When starting Eye TV it comes up with a Programs-window on a random location (that's why I close the top window again before generating any more mouseclicks)

Just to be sure no other windows are open I do a command-w once more 😉

 

After that the script opens a Programs-window, zooms it so that it knows the exact position of the buttons on the left and finally it clicks the 'Update DVB' button.

The frequent osascript-calls are there to make sure EyeTV is still frontmost when generating a mouseclick.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.