Page 1 of 1

Artwork from file path when using content menus

Posted: 01 Jan 2014, 10:05
by Ithiel
Hi Red,

I found your thread on creating context menus for FileBot, and not being one to leave well-enough alone, I'm trying to expand on it, lol.

Most of it I've got working, however I'm wanting to allow people to get artwork by clicking on a file within the folder as well, as opposed to just clicking on the folder.

I know that to have it find artwork from the folder path, you use this in the context menu:
@="cmd /c filebot -script fn:artwork.tvdb \"%1\" --log-file context.log"

.. but I'm not sure what I'll need to get it to work from a file within that folder (at present, that just throws up an error saying 'you're not a folder').

Is there a command to tell filebot to check for artwork using a file, or am I better off trying to figure out string manipulation within command prompt to trim the filename from %1 to just leave the path?

Thanks :-)

Re: Artwork from file path when using content menus

Posted: 01 Jan 2014, 11:36
by rednoah
Sorry, the script doesn't support that. It starts by finding folders/subfolders and that doesn't work if the root is a file already.

Re: Artwork from file path when using content menus

Posted: 01 Jan 2014, 12:57
by Ithiel
all good - I managed to track down what I was after:

Code: Select all

@="cmd /c filebot -script fn:artwork.tmdb \%w\" --log-file context.log"
Per http://msdn.microsoft.com/en-us/library ... s.85).aspx, you can use %w to get the working directory :-)