Page 1 of 1

Merging to unique folders

PostPosted: Mon Jun 20, 2011 6:21 am
by Spider27
Abstract: Move folder contents to another folder with same name (merging), the folder names which will be merged will be unknown at time of writing hazel commands.

iTunes downloads podcasts for me to the iTunes media folder. these are automatically placed into this folder e.g

Code: Select all
  ->Itunes Media
       ->Podcasts
             ->Podcast Show 1
                   ->Episode 1.m4a
                   ->Episode 2.m4a
                   ->Episode 2.m4a
             ->Podcast Show 2
                   ->Episode A.mov
                   ->Episode B.mov
                   ->Episode C.mov         


Itunes gives the names of folders and episodes in a mixed fashion (some are named with episode first then title, others have 'title - episode - season'.

Im wanting to use Hazel to move these Podcasts into another folder on my mac (user/Podcasts), it would be required for each Podcast show to have its own folder within the user/podcast folder, However as itunes periodically releases new episodes, these as new episodes are need to be merged.

Ive researched and found that i can use an apple script to do the merging
Code: Select all
ditto directory_1 directory_2


However Im not sure what the directory names will be as they will be unique to the podcasts that I have and other podcasts which I may subscribe to later.

Thanks. :D

(if possible would very much appreciate an explained methid, as im very new to macs/using terminal commands ect)

Re: Merging to unique folders

PostPosted: Mon Jun 20, 2011 3:10 pm
by Mr_Noodle
I'm a little unclear on what the actual structure you want in the end, but you may want to look into using the metadata/tags in the podcast file. If it's set correctly, you should be able to specify a consistent folder structure based on that via the Sort into subfolders action.