Forum Archive

App extension trying to get an url

ephes

Hi *,

pythonista is a great app, I appreciate it very much. Now I've tried to write my own little script to share urls with my bookmarking service. The script usually works when I run it for the first time, but on the second time, appex.get_url() returns None and when I try to use the url to qrcode example script, I get an 'script running, You cannot start this action because a script is already running.' error. Maybe I'm doing something wrong?

Here's the code I'm using, the script called on share is client.py:
https://github.com/ephes/pythonista_api_client

cvp

@ephes You have to call appex.finish() to close the share, else your script stays running

ephes

@cvp Thanks! Solved the problem. Totally missed appex.finish() exists :).