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
css459 last edited by
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 last edited by
@css459, anything in this thread that helps?
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.