brunogrande Posted June 17, 2013 Share Posted June 17, 2013 Hello, I tried to create a dead simple workflow which simply reverses the inputted text. Python doesn't seem to work. On the other hand, Bash seems to work, but I would like to know what's wrong with my Python workflow. Here's the script I'm trying to use: string = {query} print string[::-1] Here's the download link for the workflow: http://cl.ly/PhsE Thanks in advance, Bruno Link to comment
Tyler Eich Posted June 18, 2013 Share Posted June 18, 2013 Hello, I tried to create a dead simple workflow which simply reverses the inputted text. Python doesn't seem to work. On the other hand, Bash seems to work, but I would like to know what's wrong with my Python workflow. Here's the script I'm trying to use: string = {query} print string[::-1] Here's the download link for the workflow: http://cl.ly/PhsE Thanks in advance, Bruno {query} should be "{query}" or '{query}'; otherwise Python won't interpret it as a string Cheers Link to comment
brunogrande Posted June 18, 2013 Author Share Posted June 18, 2013 {query} should be "{query}" or '{query}'; otherwise Python won't interpret it as a string Cheers Wow... I assumed that Alfred parsed the {query} as a string, but I can see it being other types as well. Thanks, Tyler. 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