Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

An AppleScript to move video from EyeTV to iTunes Apps
I'm trying to integrate EyeTV with our lives in the most spousal-friendly way possible. Since my spouse has recently been seen happily watching Oprah using Front Row from the treadmill, I thought it was time I shared my work. Using EyeTV is easy. Setting up a scheduled, repeating recording is easy. Telling EyeTV to 'Export to iPod' automatically is easy.

Getting iTunes to automatically import and correctly organize the video is tricky.

The last step of EyeTV's 'Export to iPod' process is supposed to import to the EyeTV playlist to iTunes. But that isn't working for me right now. Also, iTunes has the very handy ability to organize your TV shows by show and episode, but EyeTV exported videos are handled as simple movies instead.

So I wrote an AppleScript to:
  • Get all the files in your Movies directory (EyeTV's default location for exported video files)
  • Filter out any that don't end in .m4v (EyeTV's default file extension for exported video files)
  • Filter out any that have been modified in the last few minutes (still being exported)
  • Add them to the EyeTV playlist in iTunes (must exist already)
  • Set the iTunes 'video kind' tag to 'TV show'
  • Parse the filename into the 'show' and 'name' iTunes video tags
  • Stick the original name in the comments field, just in case
  • Delete the original file
I also then made a short Automator workflow to run the script, pause for 10 minutes, and then run 'this' workflow (endless loop). I couldn't get Folder Actions to work well, since the video files are added to your Movies directory long before they're completed. I hope that Elgato obsoletes this entire hint in a near-future version of their software. Also, I'd love to post this in an EyeTV-centric forum, but I can't find one.

This is fairly new development. Please post back with improvements.
    •    
  • Currently 2.67 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[27,346 views]  

An AppleScript to move video from EyeTV to iTunes | 7 comments | Create New Account
Click here to return to the 'An AppleScript to move video from EyeTV to iTunes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to move video from EyeTV to iTunes
Authored by: notdavid on Oct 13, '06 08:11:18AM

Why export to iTunes?
The newest upgrade of EyeTV, v2.3.1 has a "Full Screen Menu" mode just like Front Row.:

"Enjoy TV on your Mac from the best seat in the house. Sit back and relax with an EyeTV or Apple Remote while you browse EyeTV 2.3's Full Screen Menu. Browse through the Program Guide, pause and rewind live TV, change channels, select recordings, and much more."

Maybe I don't understand what you are trying to accomplish.

ND



[ Reply to This | # ]
An AppleScript to move video from EyeTV to iTunes
Authored by: Gigacorpse on Oct 13, '06 09:33:31AM

Sounds to me like the wife wants to use one program for everything: iTunes.



[ Reply to This | # ]
An AppleScript to move video from EyeTV to iTunes
Authored by: luomat on Oct 13, '06 10:13:56AM

Perhaps to get them into a video iPod?



[ Reply to This | # ]
An AppleScript to move video from EyeTV to iTunes
Authored by: JackSloth on Oct 13, '06 06:44:17PM

I wqas very excited to see your hint as I too have wanted the same thing from EyeTV.

However, I am getting a syntax error when trying to compile your applescript.

"Expected "then", etc. but found unknown token."

It occurs on line 4: "if movieCount ? 1 then"



[ Reply to This | # ]
An AppleScript to move video from EyeTV to iTunes
Authored by: gboudrea on Oct 13, '06 07:11:20PM

Replace the ? on that line by a >
Will fix your problem.

- Guillaume



[ Reply to This | # ]
An AppleScript to move video from EyeTV to iTunes
Authored by: JackSloth on Oct 16, '06 10:30:47AM

Thanks. I also had to replace "(replace with minus sign)" with the minus sign on line 13. I know, I am an idiot. I am new to Applescript. On line 2 do i need to manually put in the path to the movies folder? What is the syntax of the path?



[ Reply to This | # ]
An AppleScript to move video from EyeTV to iTunes
Authored by: maticks on Dec 01, '07 08:10:06AM

does anyone have a working applescript for this i tried changing the directories but im not an applescript person but would like to do the same thing as you guys.




[ Reply to This | # ]