Skip to content

Instantly share code, notes, and snippets.

@ceicke
Created January 14, 2014 21:28
Show Gist options
  • Save ceicke/8426099 to your computer and use it in GitHub Desktop.
Save ceicke/8426099 to your computer and use it in GitHub Desktop.
Using EyeTV, the following two scripts first export the recorded file to your Desktop and then imports it to your iTunes library. Place the scripts into '/Library/Application Support/EyeTV/Scripts/TriggeredScripts' . Make sure to adjust the 'destFolder' variable according to your username.
on ExportDone(recordingID)
set destFolder to "Users:ceicke:Desktop:"
set tvShow to "bla.mp4"
tell application "iTunes"
activate
set newTVShow to ("Macintosh HD:" & destFolder & tvShow) as alias
add newTVShow
quit
end tell
end ExportDone
on RecordingDone(recordingID)
set destFolder to "Users:ceicke:Desktop:"
set tvShow to "bla.mp4"
tell application "EyeTV"
set intRecordingId to recordingID as integer
export from recording id intRecordingId to file (destFolder & tvShow) as AppleTV replacing yes
end tell
end RecordingDone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment