Page 1 of 1

OSX Filebot scripting no longer works

Posted: 21 Dec 2014, 00:12
by LexLolly
Hi, I have downloaded filebot 4.5.3 of the Apple APP Store (yes i paid for it) and it did over write my older free version 3.8.
The reason I downloaded the latest version was that the rename script i ran stopped working and I noticed that the 3.8 gui version stopped working too (like many times before - it was always resolved by downloading the upgraded version).

However the APP store version does not have the program "filebot" in the "Contents\MacOS" anymore. There is a "FileBotAppLauncher" instead so it appears that i lost the option to run filebot scrips.

How do I get this to work again!!

Thanks for any help on this.



------------ Here my script (it worked well for over a year now)
set ProgramPath to "/Applications/FileBot.app/Contents/MacOS/filebot"
set FilePath to "/Users/name/Desktop/Temp Work/Ready to Upload/"
set FileTestPath to "Macintosh HD:Users:name:Desktop:Temp Work:Ready to Upload:" as alias
set FormatFile to "{n}.{s00e00} - {t}"

tell application "Finder"
set TVShowFileNames to name of every file in FileTestPath
end tell


repeat with TVShow in TVShowFileNames
try
set RenameFile to FilePath & TVShow
--display dialog RenameFile
do shell script (quoted form of ProgramPath) & " -rename " & (quoted form of RenameFile) & " --db TheTVDB --conflict skip -non-strict --format " & (quoted form of FormatFile)
on error
--do nothing
end try
end repeat

Re: OSX Filebot scripting no longer works

Posted: 21 Dec 2014, 07:00
by rednoah
Apple does not allow command-line tools in the App Store.

Use brew to install the filebot command-line tools:
viewtopic.php?f=4&t=2049

PS: You should call filebot via "filebot" and not "/Applications/FileBot.app/Contents/MacOS/filebot"

Re: OSX Filebot scripting no longer works

Posted: 24 Dec 2014, 22:08
by LexLolly
rednoah, i installed based on your post.

so how would I now call the script as below script no has an error:

set ProgramPath to "filebot"
...
do shell script (quoted form of ProgramPath) & " -rename " & (quoted form of RenameFile) & " --db TheTVDB --conflict skip -non-strict --format " & (quoted form of FormatFile)


Thanks for your Help
Lex

Re: OSX Filebot scripting no longer works

Posted: 24 Dec 2014, 22:17
by LexLolly
Rednoah,
i have changed my script ProgramPath to:
set ProgramPath to "/opt/homebrew-cask/caskroom/filebot/4.5.3/filebot.app/Contents/MacOS/filebot.sh"

This works!

I am just trying to figure out how to just call "filebot" without all the path info.

Re: OSX Filebot scripting no longer works

Posted: 26 Dec 2014, 16:11
by rednoah
brew cask will automatically create a symlink in /usr/local/bin and since that's always in the $PATH the shell will be able to find "filebot"

Code: Select all

$ which filebot
/usr/local/bin/filebot
But if you have issues with Apple Script you need to ask Google. ;)