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.


    Script to accumulate webpage titles, urls, and copied text into a single file

    Pythonista
    1
    1
    924
    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.
    • Technocrat66
      Technocrat66 last edited by

      https://gist.github.com/technocrat/c895a8c84c5bf82be2f1

      One of the annoyances of collecting web clippings from several different sources is having to separately copy the url and text separately and switch applications each time to the target file.

      clipslate illustrates an x-callback-url way of combining a JavaScript bookmark to capture the page title and url and the system clipboard to capture the highlighted and copied text at the same time. These are available to the script as system arguments and though the clipboard.get() function.

      clipslate processes these data to format a markdown version, such as

      Clipped from 1-800-WHA-TFOR | Marlow's Listener on 2013-04-29

      When was the last time you made a domestic “toll” call?


      Then, the assembled text is put into the system clipboard with clipboard.set() and sent to the x-callback-url for notesy with the webbrowser function.

      The target file accumulates clippings until emptied or deleted.

      Not every app has x-callback-url, and those that do need to have an append action for this to work.

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