hi there,
i am trying to get hazel to automate some file sorting for me. right now i am doing the following:
1. tag files using sublerCLI with this code
2. send the whole thing to itunes and delete the original file.
what i would like to do is change metadata for title. the original file looks like this (coming from a online recorder):
how can i extract "name of episode", delete the underscores and put it into a variable? the loop of course is handled by hazel.
thanks, i hope its clear what i want to do
dave
i am trying to get hazel to automate some file sorting for me. right now i am doing the following:
1. tag files using sublerCLI with this code
Code:
#! /bin/sh
# media kind attribute
mediaKind="TV Show";
# media kind attribute
TVShow="King of Queens";
#Artist
Artist="Kevin James, Leah Remini, Jerry Stiller, Victor Williams, Patton Oswalt";
#Genre
Genre="Comedy";
/Applications/SublerCLI -i "$1" -O -t {Media' 'Kind:"$mediaKind"}{TV' 'Show:"$TVShow"}{Artist:"$Artist"}{Genre:"$Genre"};
2. send the whole thing to itunes and delete the original file.
what i would like to do is change metadata for title. the original file looks like this (coming from a online recorder):
Code:
king_of_queens_name_of_episode_1111_2222.mp4
how can i extract "name of episode", delete the underscores and put it into a variable? the loop of course is handled by hazel.
thanks, i hope its clear what i want to do
dave