Pythonista and Workflow

Following up and the last in this little mini series is a quick post on linking pythonista to workflow.

If you do want to have a look at the other posts in this, they are

This is just a short introduction of how you can link workflow and pythonista together.  I have several workflows that do a variety of tasks, and because of these two great apps you can link everything together.  To call a Pythonista script from workflow, you just select Run Script, when you drag that over you just need to enter in the name of the script (you don't need to add the .py extension)

Once you have you script ready, you just need to add two small parts to your pythonista scripts so it will return to workflow and running.  At the top of the script add the following

import webbrowser

Then at the bottom of you script when everything has been done add the line

webbrowser.open("workflow://:)

This will the revert back to workflow, so if there are other actions for the workflow to do, it won't pause and you don't have to do anything manually, it will all run smoothly.  Happy to share any of the workflows I have if you would like to see how they knit together, along with the Pythonista scripts, just drop me a mail.

I am always interested in your thoughts so if you have any comments or feedback then please feel free to add any comments, or you can mail me  here.

Related Posts Plugin for WordPress, Blogger... 

 

Become The Ultimate Pro Gamer

Tips and reviews