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 formatted text to clipboard

    Editorial
    3
    5
    3282
    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.
    • Chrishphoto
      Chrishphoto last edited by

      Hi

      I am just starting to get to grips with workflow and have been trying to find a way to copy formatted text to the clipboard so I can paste this into other rich text apps, such as calendar or email replies.

      I can't see any way to do this directly. I have considered forming an email and then copying the text, and copying from the preview but i have been unable to find any actions to interact with the email pop up or with the preview. Can this be done with actions or with python?

      Any pointers would be appreciated!

      Thanks,
      Chris

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

        You can do this with three actions in a workflow:

        Get Document Text
        Convert markdown to HTML
        Set Clipboard
        

        Before you run the workflow, open the document in Editorial.
        After it has run, switch to your other app and paste the html in.

        Then you can fancy up the workflow:

        • At the start of the workflow, check there is a .md file open in Editorial.
        • At the end, display a HUD alert that the html is on the clipboard, to switch to the other app and paste it there.
        1 Reply Last reply Reply Quote 0
        • Chrishphoto
          Chrishphoto last edited by

          Thanks Peter but I would like to have formatted text in the clipboard rather than HTML. Do you know whether this is possible?

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

            @Chrisphoto It's currently not possible, sorry.

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

              Thanks for responding. Is there any chance of this happening at some point?

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