MAC OS Filebot scripts
Posted: 04 Oct 2014, 05:02
Hi. I absolutely LOVE this program. I have a fully automated media center now thanks to you guys. It functions flawlessly but there is one little issue…
So normally I use the following script on my MacBook to move the TV shows after Vuze completion:
#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -rename /Users/Leigh/Documents/VuzeTV * --format "/Volumes/Public/Shared Videos/Cloud TV/{n}/Season {s.pad(2)}/{n} {s00e00} - {t}" --db thetvdb -non-strict
And that does the job. The issue is when the TV show is in a subfolder. After reading the forums I found the following about fn:renall and have installed the Groovy GVM and then tried
#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -script fn:renall /Users/Leigh/.gvm/bin/gvm-init.sh /Users/Leigh/Documents/VuzeTV * --format "/Volumes/Public/Shared Videos/Cloud TV/{n}/Season {s.pad(2)}/{n} {s00e00} - {t}" --db thetvdb -non-strict --action test
But I get an error:
AccessDeniedException: /Users/Leigh/Library/Saved Application State/com.adobe.flashplayer.installmanager.savedState
java.nio.file.AccessDeniedException: /Users/Leigh/Library/Saved Application State/com.adobe.flashplayer.installmanager.savedState
at net.filebot.cli.ScriptShellMethods.getMediaFolders(ScriptShellMethods.java:151)
at net.filebot.cli.ScriptShellMethods.eachMediaFolder(ScriptShellMethods.java:172)
at Script1.run(Script1.groovy:10)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:60)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:81)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:108)
at net.filebot.Main.main(Main.java:191)
Failure (°_°)
I have updated java:
Leighs-MacBook-Air:~ Leigh$ java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
So, I am a total nOOb at trying to run any kind of script. I have no programming acumen whatsoever. But I have tried as much as I could find before plaguing you guys here. I hope you can help. I appreciate it!
Thanks, Leigh.
So normally I use the following script on my MacBook to move the TV shows after Vuze completion:
#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -rename /Users/Leigh/Documents/VuzeTV * --format "/Volumes/Public/Shared Videos/Cloud TV/{n}/Season {s.pad(2)}/{n} {s00e00} - {t}" --db thetvdb -non-strict
And that does the job. The issue is when the TV show is in a subfolder. After reading the forums I found the following about fn:renall and have installed the Groovy GVM and then tried
#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -script fn:renall /Users/Leigh/.gvm/bin/gvm-init.sh /Users/Leigh/Documents/VuzeTV * --format "/Volumes/Public/Shared Videos/Cloud TV/{n}/Season {s.pad(2)}/{n} {s00e00} - {t}" --db thetvdb -non-strict --action test
But I get an error:
AccessDeniedException: /Users/Leigh/Library/Saved Application State/com.adobe.flashplayer.installmanager.savedState
java.nio.file.AccessDeniedException: /Users/Leigh/Library/Saved Application State/com.adobe.flashplayer.installmanager.savedState
at net.filebot.cli.ScriptShellMethods.getMediaFolders(ScriptShellMethods.java:151)
at net.filebot.cli.ScriptShellMethods.eachMediaFolder(ScriptShellMethods.java:172)
at Script1.run(Script1.groovy:10)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:60)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:81)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:108)
at net.filebot.Main.main(Main.java:191)
Failure (°_°)
I have updated java:
Leighs-MacBook-Air:~ Leigh$ java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
So, I am a total nOOb at trying to run any kind of script. I have no programming acumen whatsoever. But I have tried as much as I could find before plaguing you guys here. I hope you can help. I appreciate it!
Thanks, Leigh.