Page 1 of 1

[FAQ] How can I use the same format in both GUI and CLI?

Posted: 25 Oct 2022, 05:58
by rednoah
You can copy your custom format into a *.groovy text file, and then refer to that text file in the FileBot Desktop application (in the Format Editor or in the Preset Editor) or on the command-line as option value or script parameter value. You can then edit your format file with your favourite code editor (e.g. Notepad++ or Sublime Text) in a central location.

Screenshot


e.g. use @file.groovy syntax in the FileBot Desktop application:

Format: Select all

@/path/to/MyFormat.groovy
Screenshot


e.g. use --format file.groovy if you are using filebot -rename commands:

Shell: Select all

--format /path/to/MyFormat.groovy

e.g. use --def [email protected] if you are using amc script commands:

Shell: Select all

--def movieFormat=@/path/to/MyFormat.groovy



:arrow: Please read Split code into external *.groovy script files and @file syntax for reading cmdline args from text files for details.