Page 1 of 1

Problems getting started with scripting

Posted: 04 Apr 2012, 20:30
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

Re: Problems getting started with scripting

Posted: 04 Apr 2012, 22:24
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...

Re: Problems getting started with scripting

Posted: 05 Apr 2012, 00:34
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.

Re: Problems getting started with scripting

Posted: 05 Apr 2012, 01:06
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.

Re: Problems getting started with scripting

Posted: 05 Apr 2012, 09:36
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.

Re: Problems getting started with scripting

Posted: 28 Sep 2012, 20:45
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.