jaster Posted July 26, 2015 Share Posted July 26, 2015 I made a simple workflow a while back to rename tv show files using 'tvnamer'. Most of the time files don't have the episode's name within their title and it's even more uncommon for there to be an apostrophe as well. So since Alfred doesn't offer escaping single quotes, I was wondering what I could do to fix this. The workflow just has (one or more) files passed through to: /usr/local/bin/tvnamer -q -c /Users/Daniel/.mytvnamerconfig.json {query} Link to comment
RodgerWW Posted July 26, 2015 Share Posted July 26, 2015 Can you use "{query}" in your command, and turn off all escaping options? ' interrupts bash commands. Link to comment
jaster Posted July 26, 2015 Author Share Posted July 26, 2015 Can you use "{query}" in your command, and turn off all escaping options? ' interrupts bash commands. That did it. I could swear I tried the earlier. Oh well. Thank you. Link to comment
RodgerWW Posted July 26, 2015 Share Posted July 26, 2015 No problem at all, glad it works now. Link to comment
vitor Posted July 26, 2015 Share Posted July 26, 2015 For bash (likely what you’re using), your quoting options should look like this:Particularly since you’re dealing with file names that you have no idea what they’ll be, these options will get you covered the most. Link to comment
jaster Posted July 27, 2015 Author Share Posted July 27, 2015 For bash (likely what you’re using), your quoting options should look like this: Particularly since you’re dealing with file names that you have no idea what they’ll be, these options will get you covered the most. Thanks Vitor. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now