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.


    Copy and Paste Between Shortcuts Not Working As Expected

    Pythonista
    clipboard shortcuts
    3
    3
    1547
    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.
    • css459
      css459 last edited by

      Hello Maintainers,

      I'm experiencing an odd behavior with the clipboard while using scripts within a Shortcut. When a value is copied to the clipboard using clipboard.set(), the value exists as expected within the Pythonista app. However, when moving back to Shortcuts (as I do using shortcuts.open_shortcuts_app() in my script), the clipboard does not contain the new value, but the previous value that was already in the clipboard. The value is only set once running the script twice, presumably making the intended value the previous value.

      Should I be passing data (base 64 data) a different way to Pythonista? It appears that reading from the clipboard is not an issue, but setting does not seem to work. Is there a workaround I can use for now?

      If it helps, I am running iOS 13.6.1 on my iPad Pro and launching Pythonista via "Open URLs"

      Thanks for your help!

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @css459 last edited by

        @css459, anything in this thread that helps?

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

          I was having the same issue! but I figured it out, you have to add a "wait to return" to make sure the pythonista code finishes running before the shortcut does. Hopefully it was the same issue if you haven't figured It out yet.

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