Run The Unarchiver in every torrent that finishes

MAC OS X specific questions, problems.
willpower

Run The Unarchiver in every torrent that finishes

Post by willpower »

Hello,

I am on MAC with TheUnarchiver already installed (and the last version of qbittorrent) and i want to know how can i run it every time a torrent finishes. Thanks

I want to automatically unrar every torrent that finishes.
Last edited by willpower on Mon Dec 07, 2015 4:15 pm, edited 1 time in total.
ciaobaby

Re: Run The Unarchiver in every torrent that finishes

Post by ciaobaby »

Options -> Downloads -> Run program (assuming it exists in MAC versions)
willpower

Re: Run The Unarchiver in every torrent that finishes

Post by willpower »

But what do i have to type there? I don't know code :/


something like this maybe?

Code: Select all

run the_unarchiver /%f/%n/*.rar /%f/%n/
but i am not sure :/
Last edited by willpower on Mon Dec 07, 2015 4:46 pm, edited 1 time in total.
ciaobaby

Re: Run The Unarchiver in every torrent that finishes

Post by ciaobaby »

The parameters are case sensitive so should be in uppercase, and if there may be spaces in the text the parameter should be wrapped in quote marks, ie "%D"

But as to whether they are in the correct order for your application I have no idea, do some 'dummy runs' of directing the output to a text file so you can see what is being sent to the application.
willpower

Re: Run The Unarchiver in every torrent that finishes

Post by willpower »

Thank you.


Can i put everything inside "" ?

Like this:

Code: Select all

open "/%F/%N/*.rar"
This makes any sense?
Should i use / or \ ?


(i am hoping this will open .rar file with mac default app: the unarchiver)
ciaobaby

Re: Run The Unarchiver in every torrent that finishes

Post by ciaobaby »

Can i put everything inside
Absolutely NOT!

Spaces are a command line delimiter, so are necessary between the parameters.
willpower

Re: Run The Unarchiver in every torrent that finishes

Post by willpower »

so, should i use this?

Code: Select all

open "/%F/%N/*.rar"
or this?

Code: Select all

open /"%F"/"%N"/"*.rar"
or this?

Code: Select all

open \"%F"\"%N"\"*.rar"
ciaobaby

Re: Run The Unarchiver in every torrent that finishes

Post by ciaobaby »

Bear in mind that %N (torrent name) may NOT relate to a valid path.

On MAC OS path separators are '/' so "%D/" would be correct
willpower

Re: Run The Unarchiver in every torrent that finishes

Post by willpower »

thank you

so, maybe this is the correct form?

Code: Select all

open "%D"/*.rar
ciaobaby

Re: Run The Unarchiver in every torrent that finishes

Post by ciaobaby »

"%D/*.rar"
willpower

Re: Run The Unarchiver in every torrent that finishes

Post by willpower »

it doesn't work... nothing happens :(
ciaobaby

Re: Run The Unarchiver in every torrent that finishes

Post by ciaobaby »

What did writing to a text file show? CLI is

echo "%1" "%2" "%3" > path-to-a-text-file

(replace 1,2 & 3 with the actual parameters you expect to use)

I have no idea what "The Unarchiver" is, so have no clue as to what the command line structure should be.
willpower

Re: Run The Unarchiver in every torrent that finishes

Post by willpower »

i did this:

Code: Select all

echo "%D/*.rar" > /Users/willpower/Desktop/qbt.txt
but nothing happened... :/


The Unarchiver is my default compress/decompress files app.
ciaobaby

Re: Run The Unarchiver in every torrent that finishes

Post by ciaobaby »

Applications and scripts do not normally have write permissions to the desktop on Linux and Mac.
willpower

Re: Run The Unarchiver in every torrent that finishes

Post by willpower »

i tried adding 'sudo' before, but nothing happens too.. :/

nobody here uses a Mac?
Post Reply