Running actions on .eyetv bundle contents

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Running actions on .eyetv bundle contents Thu Jul 26, 2012 11:09 pm • by Joey Calamaro
I'm trying to create a workflow where my recorded shows from Elgato's eyeTV DVR software get renamed and categorized for use in Plex. The problem is that although eyeTV natively records in mpeg2 format, those recordings are stored within .eyetv bundles. The structure looks something like this:

The Office.eyetv
-00000000017879781.tiff
-00000000017879781_thumbnail.tiff
-00000000017879781.mpg
-00000000017879781.eyetvr
-00000000017879781.eyetvp
-00000000017879781.eyetvi

The only file I need within that package is the mpg. Ideally I'd like to rename it with the name of the bundle (eg. The Office.mpg), extract it and move it to a new directory.

Trouble is I can't figure out how to run actions on bundle/package contents. Is this possible?
Joey Calamaro
 
Posts: 3
Joined: Thu Jul 26, 2012 11:00 pm

Re: Running actions on .eyetv bundle contents Fri Jul 27, 2012 11:18 am • by Mr_Noodle
Hazel will not go into file packages/bundles. You will need a script to extract the necessary file.
Mr_Noodle
Site Admin
 
Posts: 11273
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Like an Applescript or Automator action? Any general direction you can point me in? I figure if I can at least convert the bundle into a folder I can sort out the rest. Just not sure where to start.
Joey Calamaro
 
Posts: 3
Joined: Thu Jul 26, 2012 11:00 pm

Re: Running actions on .eyetv bundle contents Fri Jul 27, 2012 12:46 pm • by Mr_Noodle
Probably an AppleScript or shellscript. That said, "de-bundlizing" it may be as simple as renaming it without the extension, which you can try with the built-in rename action. From there, use the subfolder rule (see sticky article at the top of this forum) to go into it and process the files within.

There's a chance it may not work if they set the bundle flag on it but it's worth a shot.
Mr_Noodle
Site Admin
 
Posts: 11273
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Yeah, removing the extension was the first thing I tried since it was easy enough. Unfortunately that renders the bundle as a file with an unknown type instead of a directory.
Joey Calamaro
 
Posts: 3
Joined: Thu Jul 26, 2012 11:00 pm

I think it only comes with the dev tools, but there's a commandline program called "SetFile" which can set certain flags on a file, including one to indicate it's a bundle. If you have it on your system, you can write a script to run that. Otherwise, there might be some AppleScript way to do it. Google around for "applescript bundle flag" or something like that.
Mr_Noodle
Site Admin
 
Posts: 11273
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Running actions on .eyetv bundle contents Mon Aug 06, 2012 8:42 am • by flynn
Maybe using automator, you could pass the bundle to the workflow, then use "get folder contents", followed by "copy finder items". It might work, although if hazel can't go into bundles using go into folders, my guess is neither can automator

also, here is a link of someone going into apps and finding the executable apps using applescript. Hope this helps.

http://www.j-schell.de/node/207
flynn
 
Posts: 66
Joined: Sun Apr 08, 2012 12:41 pm
Location: Philippines


Return to Support