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

How-to guides, frequently asked questions, not-so-obvious features, etc
Post Reply
User avatar
rednoah
The Source
Posts: 23469
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply