Problems getting started with scripting

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
knowncolor
Posts: 4
Joined: 04 Apr 2012, 20:21

Problems getting started with scripting

Post by knowncolor »

Hi All,

First I'd like to say this application has a lot of promise, and it's really great to see an active community around the tool.

I'm trying to get set up to write some Groovy scripts (which I will share, ofc), but having some problems.

When I run the below command it all works as expected:

Code: Select all

filebot -script "http://filebot.sf.net/scripts/mi
.groovy" -trust-script "D:\Downloads\Game Of Thrones Season 1 - Complet
e" "MediaIndex.csv"
But, when I try to run my own script (not able to attached, but it is literally println "hello") nothing happens

Code: Select all

filebot -script "hello_world.groovy"
I've actually gone and installed Groovy, and when I run my file within the IDE it seems to work fine.

So... what am I missing?!

Many thanks in advance,
KnownColor
knowncolor
Posts: 4
Joined: 04 Apr 2012, 20:21

Re: Problems getting started with scripting

Post by knowncolor »

I've just found that I'm not able to run any scripts locally, if I copy the contents of the ones hosted here they don't work either.

No error message, just returns like it completed fine but doesn't do anything...
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Problems getting started with scripting

Post by rednoah »

That's really wierd. Local scripts shouldn't be a problem at all and it seems to work for others... I'll look into that.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Problems getting started with scripting

Post by rednoah »

Works fine for all my test cases:

Console:

Code: Select all

E:\unsorted>filebot -script test.groovy
hello world
Done ?(?????)?
Script:

Code: Select all

println "hello world"
Should be that simple, can't think of anything that might go wrong. If you still can't find the problem, PM me and send your skype/msn/etc so we can figure this out.
:idea: Please read the FAQ and How to Request Help.
knowncolor
Posts: 4
Joined: 04 Apr 2012, 20:21

Re: Problems getting started with scripting

Post by knowncolor »

Hey rednoah - thanks for the response.

I'm at work today, but should be online over the weekend so will send you a PM.
gregthomas
Posts: 7
Joined: 27 Sep 2012, 07:02

Re: Problems getting started with scripting

Post by gregthomas »

You've probably already solved this but just in case someone else might be searching for answers to similar issues; I had problems like this at first that were solved by putting the full path of my java install into the Path environment variable.
Post Reply