Script not found: amc

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Script not found: amc

Post by Meph88 »

Using a command that I have been using for a while without issue.

The command is this:

Code: Select all

/Users/User1/Applications/FileBot_4.7.2-brew.app/Contents/MacOS/filebot.sh -script fn:amc "/Users/User1/Documents/unsorted" --output /Volumes/Media/New --action move --conflict override -non-strict --def subtitles=en music=n artwork=y
A few days ago it worked great.
Now, it does not and I get this output:

Code: Select all

Script not found: amc
java.io.FileNotFoundException: Script not found: amc
	at net.filebot.cli.ScriptBundle.getScript(ScriptBundle.java:54)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:113)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:28)
	at net.filebot.Main.main(Main.java:124)
Failure (°_°)
I have updated filebot to the latest version but the issue persists. Not sure how to resolve this issue. Help is very much appreciated.

Here is the output of filebot -script fn:sysinfo

Code: Select all

FileBot 4.7.8 (r4846)
JNA Native: 5.1.0
MediaInfo: 0.7.92.1
7-Zip-JBinding: 9.20
Chromaprint: 1.1.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-03-24 (r490)
Groovy: 2.4.8
JRE: Java(TM) SE Runtime Environment 1.8.0_121
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 910 MB Max Memory / 25 MB Used Memory
OS: Mac OS X (x86_64)
Package: APP
Data: /Users/MacMini/.filebot
uname: Darwin Kevins-Mac-mini.local 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 23005
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script not found: amc

Post by rednoah »

Update everything and then try again:

Code: Select all

sh -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/filebot/master/installer/appbundle/Helper/brew.sh)"
Test:

Code: Select all

/usr/local/bin/filebot -script fn:sysinfo
@see viewtopic.php?t=2049
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Script not found: amc

Post by Meph88 »

I have run the command you recommended to update everything and have tried my CLI script again but I get exactly the same output and failure.
Seems to be specifically it can't find the amc script.
Not sure how to fix this kind of thing though.
"/usr/local/bin/filebot -script fn:sysinfo" still works fine.
User avatar
rednoah
The Source
Posts: 23005
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script not found: amc

Post by rednoah »

Here's how you call scripts. Simple is good. Complicated with hard-coded version numbers is bad.


BAD IDEA (never do this unless you know what you're doing):

Code: Select all

/Users/User1/Applications/FileBot_4.7.2-brew.app/Contents/MacOS/filebot.sh -script fn:sysinfo
GOOD PRACTICE:

Code: Select all

filebot -script fn:sysinfo
GOOD PRACTICE (if you have $PATH issues):

Code: Select all

/usr/local/bin/filebot -script fn:sysinfo
It seems you're getting confused because you seem to have installed multiple versions of FileBot, using an old one while also having installed the latest one.
:idea: Please read the FAQ and How to Request Help.
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: Script not found: amc

Post by Meph88 »

That has completely resolved the issue, I see now where I went wrong.
As ever, thank you for the amazing support.
Post Reply