Calling Pythonista from Drafts fails, then works?
I’m sending blood pressure data, e.g., 1208060 to a pythonista script to graph it. I send the data via a url from Drafts:
The first time I do this, pythonista says there’s no such script. If I then undelete the draft and run the url again, it finds the script and works fine. Any ideas? Is this likely to be a Drafts issue or a Pythonista one?
I'm not familiar with Drafts - is the [[Draft]] part a placeholder? If so, what is it replaced with? Does the replacement text contain any special characters that could cause problems in a URL? If so, you might need to URL-escape the text so it can be passed through the URL, or use an alternative way of passing the text (for example the clipboard). I don't know if and how that could be done in Drafts, I don't have the app - I'm just thinking of things that could cause problems in this case.
you might try with the script in the root folder?
@dgelessus Hi, thanks for your reply. Yes, replaced the the text in question. In the specific case, it's just a string of integers, e.g., 1208060 . Consequently, I don't think there's any unusual characters, but thanks for the suggestion.
@JonB Thanks, I'll give that a try.