Greetings,
I have a list of emails that I'm trying to separate it into a few lists of just a couple emails each.
To begin with, I have a text file with one email per line, no separators. My python/workflow prowess is good enough to add quotation marks before and after each line as well as a comma after each line, then copy it all to the clipboard.
Then I can flip over to the console and set a variable to point to a list with the emails in it (all_emails = [paste]).
Finally I can pull portions of the list (some_emails = all_emails[0:3]). It feels like I'm on the right track.
However, when I try to accomplish the same thing, using a script instead of the console, it gives me an error message saying that it needs a string. So I tried to turn some_emails into a string and it gives me the whole list, not just the first couple of emails.
The list is not being created in the script like it is in the console. I suspect it has to do with encoding, but I don't have the first clue how to fix it. :-) Remember it pulls the contents of a text file with one email per line and no separators. I'll post a link to the workflow so you can see what's happening:
http://www.editorial-workflows.com/workflow/5320493146046464/V8Ii1guwpB8
I would be super grateful for your help!
Thanks!