Getting Started with Groovy / FileBot Scripting

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 16615
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Getting Started with Groovy / FileBot Scripting

Post by rednoah » 16 Dec 2011, 06:44

Hello everyone,

FileBot format expressions and CLI script are all based on Groovy, a full-fledged Java based scripting language, which means there are virtually no limits to what you can do. If you wanna learn more about the Groovy programming language check the the following links.

Beginners Tutorial to get you started:
http://groovy-lang.org/syntax.html

Groovy Console for prototyping code:
http://groovy-lang.org/groovyconsole.html


NOTE:
These are some hints on HOW TO LEARN Groovy programming. FileBot already bundles a complete Groovy runtime so you DO NOT NEED TO INSTALL Groovy in order to run FileBot / Groovy scripts.

IMPORTANT:
FileBot expects Groovy scripts to be UTF-8 encoded plain-text files WITHOUT BOM. Some editors on Windows will automatically add a a byte marker at the beginning of UTF-8 encoded text files but this will break the Groovy syntax and cause a MultipleCompilationErrorsException at startup. Make sure you use a proper editor like notepad2 or some IDE like NetBeans.
:idea: Please read the FAQ and How to Request Help.

Post Reply