• kahlbutz

    @cvp many thanks, this did it! Proves that I am still a bloody novice in Shortcuts usage. Definitely worth digging deeper! Merry Christmas, everybody

    posted in Pythonista read more
  • kahlbutz

    Hi folks,

    Thanks for your suggestions, but in the meantime I was able to solve the problem by sidestepping it. It struck me that I could extend the shortcut that I planned to run, by prepending the step Fetch contents of webpage from URL. The step could be named slightly differently, I only see the German name. Now the resulting Shortcut takes the URL, no longer the formatted text of the page. Super!

    What still strikes me: I do this in a loop for several URLs. But the shortcut is only run for the first URL. Is this because the calls to the Shortcut app do not block, and the following ones happen while the first is still executing? Can I wait for its completion?

    posted in Pythonista read more
  • kahlbutz

    Imagine a shortcut action which is normally run from a share sheet in Safari and accepts the content of the currently displayed page as formatted text. But now I want to run the shortcut action programmatically from a Pythonista script, for a set of other web pages. I cannot find out how I can properly pass the content of these other pages as formatted text. If I pass the html, the markup gets processed verbatim - not what I want. I would like to pass the rendered version of the page.

    Any help appreciated!

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!