I have been trying to learn Applescript for 20 years. That should tell you something about how useless I am.
But I’m always coming up with reasons to finally get serious about it, seeing as how I’m an automation freak.
Latest is renaming files for Plex.
What I would love to do is two main things.
First, a pretty simple rename: search file names for anything like digit.digit or digit digit.digit digit or Season digit Episode digit and change all such things into “SDIGITEDIGIT” ya know, 1.22 to S01E22 or 3.5 to S03E05…
But even more than that, which I can kinda do to some extent with various renaming tools, would be THIS:
Manually select 2 or more episodes of a television show, which already have partly the same name, i.e.: The Walking Dead SE01E07.mkv and The Walking Dead S01E12.avi, for instance.
Then a script would take over via whatever means and would:
¢Create new folder containing the two items.
¢Name the folder after, say, the first 15 characters of the first file. (Or anything else that indicates the folder contains something specific, not just “new folder with items” which I then have to change)
¢Create a folder within that folder named “Season 1”
¢move the items into that folder
Of course if I had the scripting abilities i would probably spend hours getting even more detailed, coming up with ways to automatically name the folder better, create other season folders automatically based on the names of the files…stuff like that.
Have any of you insanely talented and able folks done anything like this for your OWN Plex needs, something you can share? Any ideas how I could exploit Automator or Keyboard Maestro to do something like this?