[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: 21345
Joined: 16 Nov 2011, 08:59

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

Post by rednoah »

Image


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.


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

Code: Select all

@/path/to/MyFormat.groovy
Image


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

Code: Select all

--format /path/to/MyFormat.groovy

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

Code: Select all

--def [email protected]/path/to/MyFormat.groovy



:arrow: Please read [DOCS] Split code into external *.groovy script files for details.
:idea: Please read the FAQ and How to Request Help.
Post Reply