Kodi Community Forum
[MAC] Automator action to rename srt and tbn wanted. - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Mac OS X (https://forum.kodi.tv/forumdisplay.php?fid=56)
+---- Thread: [MAC] Automator action to rename srt and tbn wanted. (/showthread.php?tid=58876)



[MAC] Automator action to rename srt and tbn wanted. - sandman4sure - 2009-10-01

I'm looking for an Automator Action (or any other folder action / perl script) which I can use on a folder so that it will automatically rename the .jpg file and .srt file in that folder to the name of the movie which is in it.

So if I have

/Movies/Amelie/Amelie_720p.mkv
/Movies/Amelie/picture.jpg
/Movies/Amelie/subtitle.srt

and run the applescript on it, it will rename the files to

/Movies/Amelie/Amelie_720p.mkv
/Movies/Amelie/Amelie_720p.tbn
/Movies/Amelie/Amelie_720p.srt
and - if it is possible - even create a new movie.tbn from the Amelie_720p.tbn file.

There won't always be a srt file, but the jpg file is always there.

Anybody knows how to do this?

Thanks in advance!