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.


    appex.get_url only works when url is on clipboard

    Pythonista
    2
    2
    1875
    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.
    • paultopia
      paultopia last edited by

      From the safari share sheet, the following snippet of code

      url = appex.get_url()
      print(url)
      if url is None:
          url = clipboard.get()
      print(url)
      

      if I just run it straight from a web page in mobile safari, it prints None and None

      But if I first copy the url to the clipboard, it prints the URL both times.

      Is there some weird multithreading thing happening here? Can't figure out why else this would be happening.

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

        Sorry about the late response. Unfortunately, I can't reproduce this here. Could you perhaps open an issue with a few more details (iOS version etc.) in the bug tracker?

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