FileBot has introduced it's own integrated Groovy script engine so you can easily script things and then share that with people on any platform. So if you have come up with some nice scripts, why not share them with people here?

@Deprecated Whatever it is you're trying to do, these scripts here are probably not a good solution, and the amc script (hourly with --def excludeList) is always the best option for any sort of automation task.

For this tasks there there's actually two different scripts. One that actually hooks into the OS watching folders for changes (requires Java 7) and one that just organized everything in now and then in an predefined interval.

Almost all downloaded applications support calling a cmdline tools on completed downloads, so you could for example call the amc script, and this way of doing things should always be preferred over the watcher script here. Likewise using the amc script as scheduled task is preferred over using the housekeeping script.

Note that these two scripts here are console-interactive so you must not redirect I/O

watcher.groovy
Description:

Hook into the OS and recieve File modification events. Start organizing files once there are no changes for more than 5 seconds

The script supports extracting archives, downloading subtitles and organizing video files. Each feature can be enabled or disabled by setting or not setting the -extract, -get-subtitles and -rename cmdline flags.

Options:--q name to force search query manually instead of auto-detection--conflict override to fetch artwork from scratch and not just missing artwork-non-strict to disable user-interaction and run headless

Notes:

Episodes are expected to be organized into Show/Season N/Episode XY structure. The TV Show will be auto-detected from files and the folder structure.

Options:--action test only print files that would be deleted, but don't actually do anything--def root=y Delete given folder as well if left empty

Advanced Options:--def exts=pattern override default pattern for what extensions will be cleansed--def terms=pattern override default pattern for for what paths will be cleansed--def ignore=pattern paths that match this pattern will never be considered as clutter or deleted--def minsize=bytes files smaller than minsize will be deleted as clutter regardless of extension. Default is 20 MB.--def maxsize=bytes files larger than maxsize will never be deleted. Default is 100 MB.

Options:--action test only print files that would be moved/copied--conflict override allow override destination file if it already exists, otherwise it'll be skipped--filter pattern process only files matching the given pattern

Description:
This simple rename script will run through all folders and rename process everything folder by folder. It's pretty much like running filebot -rename <folder> for each folder. There is series/movie detection but it's very basic, so it's recommended to force a specific mode via setting --db <datasource>.

Description:
FileBot keeps an internal history of all rename operations in case you want to revert files to their original names or just want to find out the original name of a given file. Here's a script to help with that.

@Deprecated Normal users should use filebot -revert calls. The revert script only serves as an example for script developers.

Description:
FileBot keeps an internal history of all rename operations in case you want to revert files to their original names. Run this script on the specified file or folder and revert all files to their original names.

Options:--action revert operation (--action move will move files back to their original location, --action rename will only change the filename back to the original filename but keep the file in it's current folder. You may run the script in test mode via --action test)

Notes:

This script assumes that files have previously been processed with --action move/copy

Description:
Here's a script for automatically updating your MyEpisodes profile. On http://www.myepisodes.com you can keep track of your favorite shows, what episodes you have already aquired/watched and quickly check just how much time you've been wasting on watching TV. If your files are already reasonably well-named you can just run this script and it will add all your shows that are not on your list yet and tick each episode you have as 'acquired'.

Description:
If extended attributes are enabled and supported on your platform and filesystem FileBot will store original filename and episode/movie metadata into extended attributes for future reference by FileBot or other applications. This script allows you to view and clear these extended attributes.

Description:
If you want to download subtitles for more than just a single folder then -get-subtitles -r in one batch with many many files can be a bad bad idea. This script will fetch subtitles folder per folder to make fetching large amounts of subtitles more reliable. Files may be included or excluded based on file creation date, last modified date, file size, video length, embedded subtitles, etc

If you call this script repeatedly on the same folders or files then you MUST SET --def maxAgeDays to 30 days or less and call it no more than once per day.

Fetch subtitles for all files:You must not lookup subtitles for all files repeatedly in any kind of automated setup, or you will get banned. If you use the suball script in an automated setup then you MUST SET --def maxAgeDays to 30 days or less.

Options: --lang zho set preferred subtitle language (default: eng)--def maxAgeDays=7 set a max-age for files that will be processed, older files will be ignored--def minAgeDays=1 set a min-age for files that will be processed, newer files will be ignored (so better subtitles can be downloaded later)--def minFileSize=0 set a minimum file size, smaller files will be ignored (default: 50 MB)--def minLengthMS=0 set a minimum video duration, shorter videos will be ignored (default: 10 min)--def ignore=regex set an ignore pattern for paths that should be ignored--def ignoreTextLanguage=regex set an ignore pattern for video files that already contain embedded subtitles in certain languages (default: .+)

Description:
This script can be used to verify file integrity over time. On the first run the CRC32 checksum will be stored as xattr metadata. In subsequent runs the original checksum can then be compared to the actual checksum.

Description:
Finding missing episodes is easy once all your content has been renamed and xattr tagged with FileBot. This script will cross-check your files with the online episode data and tell you which episodes are missing.