I wrote a Folder Action Script to automatically add new Movies & TV Shows to Plex on my Mac. It’s been working well for me and I thought someone else here might find it useful too. Here’s what it does:

Movies & TV Shows added to this folder are automatically moved to the correct location in your Plex folder.

TV Shows are renamed with clean, title cased file names. For example, a file named “this.is.a.show.s01e05.and.other.stuff.mkv” will be renamed “This Is a Show - S01E05.mkv” after being moved to Plex/TV Shows/This Is a Show/Season 1.

When adding a TV Show or Movie that already exists in your Plex library, you’ll be notified about the update and the old one will be moved to the Bin.

You can add multiple files or folders at once.

All other junk files, including sample files will be ignored and sent to the Bin.

Any video file that does not have a season & episode number in the file name, formatted like “s01e05” in the example above, will be moved to Plex/Movies.

If you’re not familiar with AppleScript or Folder Actions, here’s a quick rundown on how to set it up on your Mac:

Open “Script Editor”, select “New Document” and paste in the script below.

Click the “Compile” button (the hammer) and follow the directions in the top of the script.

Save the new script to “Users/[Your Home Folder]/Library/Scripts/Folder Action Scripts” and call it “Automatically Add To Plex” or whatever you like.

Create a new folder somewhere convenient and call it “Automatically Add To Plex”, then right click the folder and select “Folder Actions Set-up”.

Select your new script from the list and click “Attach”.

Note that if you haven’t used Folder Actions before, you’ll need to check the box next to “Enable Folder Actions” at the top too.

Drag a TV Show onto the folder and test it out.

AppleScript: