SyntaxError: unexpected char: 0xFFFF
javax.script.ScriptException: SyntaxError: unexpected char: 0xFFFF
at net.filebot.format.ExpressionFormat.compile(ExpressionFormat.java:85)
at net.filebot.format.ExpressionFormat.<init>(ExpressionFormat.java:43)
at net.filebot.format.ExpressionFileFormat.<init>(ExpressionFileFormat.java:13)
at net.filebot.cli.ArgumentBean.getExpressionFileFormat(ArgumentBean.java:255)
at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:124)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:33)
at net.filebot.Main.main(Main.java:132)
Error (o_O)
You're accidentally mixing bash code and Groovy code without knowing which code is interpreted by whom.
The solution is to pass format expressions via text files instead of passing them on the command line (where bits and pieces my be interpreted by bash without you being aware) or by escaping and quoting things correctly.