Applescript to automatically update the EyeTV DVB EPG program guide

For EyeTV users in Europe and Australia with DVB EPG access, you will all know that EyeTV will not keep that database automatically updated.
So I wrote this bit of Applescript will update EyeTV's free to air DVB EPG database.
Paste it into the ApplesScript Editor, and save it as an application somewhere like in Applications.  On first run you will get a dialog saying it need access to Accessibility.  Navigate to System Preferences > Security and Privacy > Accessibility and you will see your app listed there.  Enter your password, click the checkbox, and then try again.  It should then work fine.
To automate the launching of the script, set it to run at at daily a convenient time using either Lingon (or some similar launch agent configuration utility), or using iCal as per this tip: http://www.maclife.com/article/howtos/how_make_your_ical_alarm_perform_action
Running it daily (or as often as you like) will keep your EyeTV EPG database up to date always.  No more missed recordings because the EPG was not up to date!  Yay!
This is the basic script, I'm sure it can be better.:
tell application "EyeTV"
          activate
end tell
tell application "System Events"
          tell process "EyeTV"
                    keystroke "g" using command down
                    delay 1
                    click (pop up button 1 of window 1)
                    delay 1
                    click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
          end tell
end tell
Cheers
Chris.

Good morning Frank
OK....
I too have the same issue (didn't notice it at first).  Having wasted several hours, I found no way around it.
But there are tools like clicclick that can click anywhere on the mac screen.  So... get it from here:
http://www.bluem.net/en/mac/cliclick   (big thank you to Carsten Blüm)  :-)
install as recommended (I put it in usr/bin/ as I had no usr/local/bin).  Check it works via the terminal by pastingcliclick c:28,11 into terminal and pressing return.  If that opens the apple menu, then it is installed and working.
Then try this script, which first puts the EyeTV window to a specific location on the screen, then instead of using UI scripting to click the silly pop up button 1, uses clicclick to clik at the location of the button.  This opens the menu, and then UI scripting can click it.  You may want to change the EyeTV window location from the value I chose, if so put it into your prefered position then use the Accessibility Inspector to get the location of the button, then add some pixels either side of that.
For me this now works perfectly every time, I hope it will for you.  Annoying to have to install clicclick but there you go. 
tell application "EyeTV"
  activate
  set the position of window 1 to {30, 60}
end tell
tell application "System Events"
  tell application process "EyeTV"
  keystroke "g" using command down
  delay 4
  do shell script "cliclick c:170,70"
  delay 1
  click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
  end tell
end tell
I have found that the delay after the keystroke g is essential otherwise I get an invalid index error, I think because it is not ready to accept the click.  You may need to change the delay.
Also when using Lingon to launch the Applescript App, the path needs to be to the applet file inside the contents of it.  ie something like mydirectory/myappname.app/contents/MacOS/applet.  name your app without spaces.
cheers
Chris

Similar Messages

  • I'm currently running ios 5 beta on my iphone 4 and when i woke up this morning my phone had decided to automatically update the software OTA. After connecting to wifi and switching on location i proceeded to follow the instructions 'slide to setup'. I wa

    I'm currently running ios 5 beta on my iphone 4 and when i woke up this morning my phone had decided to automatically update the software OTA. After connecting to wifi and switching on location i proceeded to follow the instructions 'slide to setup'. I was informed that it may take 3 minutes to activate phone but was then presented with the screen 'Could not Activate iphone', this is because the activation server is unavailable. Can anybody shed some light on this for me?
    Many thanks

    Can anybody shed some light on this for me?
    Not here. iOS5 beta is only available to registered developers, and discussing it publicly outside of the private developer forums is a violation of the non-disclosure agreement you signed to access the beta.

  • How do I get pages 5.2 to automatically update the date - use 10.9.2

    How do I get pages 5.2 to automatically update the date in my documents - before the update I could do this. Does anybody have the knowledge or a workaround.
    If not I will dump pages 5.2 and use my old version!!! this feature is important for any and all businesses using pages??
    Any advice on how to achieve this is greatly appreciated
    I use a number of macs all using OSX
    10.9.2

    I have the same problem.
    What confuses me is that all the apple provided templates in pages seem to auto update their time and date upon opening.
    So there MUST be a way to do it... Ive been unable to work out how...
    Amnon

  • Automatically update the date on opening a document in Pages 5

    I can't find how to automatically update the date on opening a document. I could in Pages 4.

    Indeed. That seems to be the only answer to all the "improvements". At least now I can do a word count with or without spaces. Phew. (Note the sarcasm)

  • HT1414 My iPad does not automatically update the operating system.  Under the general tab in settings there should be Updates, but there isn't.  Advice plz?

    My iPad does not automatically update the operating system.how can I accomplish this?

    Your post says you are on iOS 4.3.2.  You need to be at least at iOS 5 to have a "Software Update" capability on your iPad.  Right now, you need to update your iPad using iTunes on your computer.
    Plug your iPad into iTunes (current version: 11.0.4).  Let it sync.  Then choose "Check for Updates" from the iPad's summary page in iTunes.

  • Stop automatically updating the date!

    How do you keep Pages from automatically updating the date when you open an invoice?

    I'm running Tiger so there may be some minor differences, but I ran a few tests starting yesterday and concluded today. If you double click on the date in any of the invoice templates it will open a pane in which (among other things) is a check box that's labeled Automatically update on open. In Tiger it's unchecked by default. Check and see how yours is set. In my tests on 4 templates, when this box was unchecked the dates remained as I set them. Three I dated as 12/6/08 and one I left with the current date. All retained the date I closed with. I noted that only the one I left unchanged would respond to the double click.
    Hope this helps.
    Walt

  • Is there a feature that can automatically update the price of an item?

    I am currently making a 'Checklist Total' on Numbers and I have a few items down and their prices.
    Is there a feature where it can update the price typed on the screen corresponding to the price of the item online.
    Example: I put a pair of headphones on the spreadsheet and I put a price next to them. Every time this price decreases or increases on a specific website, for example Amazon, the new price appears in place of the old price written down on the spreadsheet.
    I'd appreciate any answer or hints to where I might also find the answer.
    Patrick

    Hi Patrick,
    This kind of capability is not built into Numbers.
    However, it is not too hard to have an AppleScript automatically fetch a price from the web and update a Numbers spreadsheet.
    This doesn't work well for many web pages, but for many it does work.
    If you have a specific page in mind post it and I will see if I can provide an example.
    SG

  • Since an automatic update the "Post to Vodpod" button (supposedly developed in concert with Firefox) no longer works, how do I get it back?

    The "Post to Wordpress widget from http://vodpod.com/wordpress no longer works after Firefox did an automatic, unrequested update.

    The button sounds like it sends a video to vodpod.com but that doesn't match what I see for the extension. The other two extensions came up with a search for vodpod but don't specifically mention vodpod.
    * Flash Video Downloader - Youtube Downloader :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/flash-video-downloader-youtube/
    * Easy YouTube Video Downloader :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/easy-youtube-video-downl-10137/
    * Share Video :: Add-ons for Firefox<br>https://addons.mozilla.org/en-US/firefox/addon/share-video/

  • Does syncing to iTunes automatically update the iPad 2?  Or is there another procedure to updating the iPad 2?

    Hi,
    I very recently bought an iPad 2 for my wife.  She tried to do some online shopping and couldn't get past the checkout screen.  Poor girl tried all day and was so frustrated when I came home.  I told her to use my PC laptop and she was done in minutes.  I went to the local Apple Store and their advice was to disconnect and reconnect the iPad WIFI connection.  And to update the iPad.  I sync'd to iTunes and couldn't figure out how to search for updates.  Does syncing automatically do the updating?
    Thanks

    No - to update the operating system (iOS) on the iPad connect it your computer's iTunes, and in iTunes select the Device on the left-hand side, and on the summary tab click 'Check for Updates'. The current version is 4.3.3 - you can tell which version your iPad has by looking at the Version field in Settings > General > About on the iPad (the bit in brackets is just the build number of the iOS release); the iPad's current iOS version is also shown on the summary tab mentioned above. If you do not currently have the most up-to-date version then the download is just under 600 meg, and therefore may take a while to download.

  • Reader will not read my pdf files. after an automatic update the pdf files are not accessable.

    adobe automatic update to XI caused the reader of my pdf files to stop working. The reader tries to open -- the adobe reader window opens for a few seconds, nothing in the window is activated -- then the window automatically closes.
    I have uninstalled and reinstalled previous versions that used to work but the reader 9 and X now do the same thing. open, unactivated window after a few seconds the program then shuts down.
    I cannot open and read any pdf file on this computer.
    There are no error messages and everything seems normal. The program does not work properly.
    I have ran the windows diagnostic tools to no avail.
    This computer operates windows 7

    See if you can open the EULA.exe file in the folder that contains the install of Reader or Acrobat.

  • How can I automatically update the JDK (not JRE) on a Windows box

    Hi,
    We have a build machine that we use to build our product. I would like to automate the process of updating the JDK used to build the product so that, as a new JDK release/update/version becomes available for download it get automatically installed on the build machine. Any recommendations on how I could do this? Is there at least a way to get notified when a new release/update/version is available?
    Thanks,
    Graham

    I don't enter it , it gets it from my card and i have written 2 there and its allowing me to choose between those two.
    Maybe we are talking about different things if you can just let me know the procedure of doing it from the beginning, I will be very grateful, if not thanks!

  • In the Student and Teacher plan for $19.99 monthly, does it automatically update the programs when need to be?

    I currently have the cloud but the previous plan I purchased does not allow automatic updates, therefore I still have CS6, I am hoping with purchasing a new plan it will automatically be able to update the programs when they need to be updated.

    There are updates and upgrades.
    The Cloud app will automatically apply minor updates.
    Upgrades e.g. CC to CC 2014 have to be separately installed by the user whenever you are ready to install the major version upgrade.

  • How system automatically update the RG23A ,C,D Registers

    Hi,
       As after capturing of excise invoice in J1IEX system update the corresponding RG register like for RM,  RG23A,  For capitalk  goods RG23C etc.  i want to know how system find the corresponding register which is to be updated  , 
    , In forum i read it find on the basis of Material type  ,  but insted of std. mat. type  we have create  RM for ROH  , FG  for FERT  etc.  then How system find the register automaticcaly where is the link is made for this.
    regards,
    zafar

    Hello,
    RG23A Register is update. When you are procuring some material from Vendor, then that material is Maintained in J1ID ,(as Raw material)   After capture of excise invoice, system will automaticaly find RG23A register,  Finding of registers is based on material types mentioned in J1ID.
    RG23C is updated when the material is assigned to material types in J1ID as a Consumbales, Tools  and Assets.
    RG23D register will update the plant as defined as DEPOT, then RG23D register gets updated. In DEPOT there is no RG23A and RG23C register, only register is RG23D.
    Regards
    Mahesh Naik

  • Loading variant automatically - at the start of a program

    Hi,
    I have a question according to the transaction ME59N. I have defined a variant and when I start the program I would like to load the variant automatically. At the moment I have manually load the variant (each time).
    Is that possible to load the variant automatically and if yes --> how?
    Thanks in advance.
    Poller

    Hi Poller,
    If you are calling the transaction from a program then you have to use
    *USING SELECTION-SETS OF PROGRAM prog *
    Regards
    Abhii

  • PO data will automatically update the required data in sevice entry sheet

    Dear gurus
    How and explain the PO for sevice entry sheet data automatically getting updated
    in service entry sheet..
    pls expalin how it happens
    Thanks & regards
    bhanu

    Hi,
    You  need to select the relevant item from your list of services by doing the following.
    Select your first line item and click the below service selection icon and in your service select the line again and click service tab and all you informATION FROM YOUR Service order will default into your SES.
    Thanks

Maybe you are looking for

  • IMessage on Macbook Pro rejecting my Apple ID?

    Had my hard drive replaced, and then some subsequent issues occurred after that. Finally got everything back in order and using my laptop again. I backed up everything before getting my hard drive replaced, and merged all that info back on after gett

  • How can I put the report generated by a program into a File?

    Hi all,    How can I put the report generated by a program into a File?It can be in TXT format or excel format which ever is possible. I need to export this file to memory,How can I do that?? Regards, Shashank.

  • BusObj XI R2 Deski login error for user - works on one PC but not another

    Hi, I have a user logging into Deski on her PC but getting: [repo_proxy 13] SessionFacade::openSessionLogon with user info has failed(Enteprise authentication could not log you on. Please make sure your logon information is correct.(hr=#0x80042902) I

  • How do I upgrade to Snow Leopard (and then Lion) if it's unavailable?

    I have an imac that has a 3.06 GHz Intel Core Duo... so, I should be able to run Mountain Lion.  However, my latest OSx update is version 10.5.8. It looks like I need to update my OS to Snow Leopard before I can upgrade to Mountain Lion but I can't s

  • Unexpected Cancellation Bill

    I have recently received a Formal Demand from Past Due Credit Solutions which seems to be a Cancellation Fee. This is how it all panned out, back in 2009 around November myself and my partner had to leave our (then) current home, it was simply uninha