Multiple external *.groovy script files

Any questions? Need some help?
Post Reply
MilkMaNY
Posts: 2
Joined: 04 Oct 2021, 16:35

Multiple external *.groovy script files

Post by MilkMaNY »

I'm attempting to follow the approach in this post, and separate my format script into multiple .groovy files. The problem occurs when I attempt to paste multiple files into the Formal field, single file works fine. Screenshots below show it working with one file, but not working with the same file listed twice.
Image

Image
I'm guessing I need some sort of delimiter between the files, but couldn't figure out what it is. Would appreciate any help on this.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multiple external *.groovy script files

Post by rednoah »

rednoah wrote: 24 May 2019, 11:27 (requires FileBot r8757) Use @format.groovy syntax to include external format expression code at compile time:

Code: Select all

@/path/to/TargetFolder.groovy
@/path/to/MovieNaming.groovy
@/path/to/MediaInfoTags.groovy
This feature requires FileBot r8757 or higher, i.e. the latest beta. FileBot 4.9.4 (current stable release) only accepts a single @file as format.
:idea: Please read the FAQ and How to Request Help.
MilkMaNY
Posts: 2
Joined: 04 Oct 2021, 16:35

Re: Multiple external *.groovy script files

Post by MilkMaNY »

Thanks, I'll give the beta a shot
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Multiple external *.groovy script files

Post by rednoah »

You can always make your own build script to combine a set of individual files, and then use that auto-generated file as single @format.groovy line in your format:

Code: Select all

cat A.groovy B.groovy C.groovy > ABC.groovy
:idea: Please read the FAQ and How to Request Help.
Post Reply