Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
NameError in workflow when getting variable
-
Can anyone help me figure out what is going wrong with a workflow?
I keep getting a
NameError: name 'titles' is not defined
on lines 6 & 7 the second block of Python script even though I've done everything I can to make sure that there are values in that variable. I have had the variable show the values in popups, etc, just to make sure that something's getting passed to the variable.The workflow can be found at http://www.editorial-workflows.com/workflow/5152084659798016/hHQqAVMMio0The reason I have two different blocks of python code is because I'm generated a string of values in the first block, putting those values in a popup to select the appropriate value, and then returning the value to call a dictionary in the 2nd block.
Any help would be greatly appreciated.
-
I think titles has to be in quotes.
import workflow title = workflow.get_variable('title') print title
-
Oh wow. It most certainly does. Too late on a Friday, I guess...
-
Nice userid @pfcbenjamin :-)
-
Thanks. Someone finally got the reference.