Run commands on imported music files #4265
-
I'm trying to run commands on the files that are imported. Specifically say I import an album which has one or more CDs, I do the following manually:
These actions have to take place inside the directory where the files are. I'm trying to keep the examples vague as to make the solutions as universal as possible. What would be the correct way to apply this? I have tried with the Example: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The command that is running is
In terms of "safe" filenames - I don't think there's an easy way to run for each item during an import at the moment. |
Beta Was this translation helpful? Give feedback.
hook
doesn't run commands in a shell, so if your configuration looks like this:The command that is running is
cd
with the arguments'{album.path}' && app1 -x * && app2 file.wma > file.ext
. To run multiple commands sequentially you'll want to run them in a shell.In terms of "safe" filenames -
hook
passes the arguments straight into the command without going through a shell, so they don't need any escaping. If you want to run in a shell, you'll need to pass arguments in like above.I don't thin…