omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Calling Pythonista from Drafts fails, then works?

    Pythonista
    3
    6
    3343
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AddledBadger
      AddledBadger last edited by

      Hi,

      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:

      pythonista3://bp/add-blood-pressure-data?action=run&argv=[[Draft]]

      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?

      Thanks, Terry

      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        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.

        AddledBadger 1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

          you might try with the script in the root folder?

          AddledBadger 1 Reply Last reply Reply Quote 0
          • AddledBadger
            AddledBadger @dgelessus last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • AddledBadger
              AddledBadger @JonB last edited by

              @JonB Thanks, I'll give that a try.

              1 Reply Last reply Reply Quote 0
              • AddledBadger
                AddledBadger last edited by

                Hi, moved the script to the root and its been fine since, thanks for the suggestion. Thank, Terry

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB Forums | Contributors