Jeg bruger dette lille script:
---
set todayNiceDK to the current date
set unixDate to the year of (current date) & "-" & the month of (current date) & "-" & the day of (current date)
set destination_file to POSIX file ("/Users/????/Desktop/" & "ontv-" & unixDate & ".xml")
set thisImageSRC to "
http://ontv.dk/xmltv/????"
tell application "URL Access Scripting"
download thisImageSRC to destination_file replacing yes
--The script will pause until download is complete
end tell
-- Load all known applications
tell application "System Events"
set aApps to name of every application process
end tell
-- Check to see if EyeTV is installed
if "EyeTV" is in aApps then
-- Wait a moment
delay 5
-- set theFile to choose file
tell application "EyeTV"
open destination_file
end tell
try
tell application "Finder"
if exists file destination_file then
delete file destination_file -- Moved to trash
display dialog "Guide downloadet og indlæst i EyeTV " & todayNiceDK & "." buttons {"Ok"}
end if
end tell
on error
display dialog "Fejl ved download af ny guide, den blev ikke hentet " & todayNiceDK & "!" with icon stop
end try
end if
---
Start Applescript-redigeringsværktøj, kopier det ind, gem det på harddisken og så har jeg lavet en gentagende begivenhed i iCal der kører scriptet hver nat.
Du skal naturligvis lige rette de to gange ???? til dit OS X brugernavn og dit OnTV link.
Desværre vil EyeTV ikke længere trække 14 dage ind i min guide, jeg tror det skete her for et par dage siden da det blev opgraderet til EyeTV 3.4. Jeg er stadig ikke helt sikker på hvad problemet er, for indlæsningen går tilsyneladende fint.
Hilsener, Kasper