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.


    Prowl + Pythonista to Auto-Copy Clipboard

    Pythonista
    3
    10
    5172
    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.
    • calebaharrison208
      calebaharrison208 last edited by

      Okay, so bear in mind, I'm very new to python, Pythonista, and coding in general. [e.g. halfway through Udacity's Intro to Comp Sci course new.] So I will understand if the best answer is to my question is "play around with it until it works".

      Right now, I have the following set up:

      -PushMenu [https://github.com/kalcher/pushmenu] allows me to send text from the OS X pasteboard to my iOS devices via Growl + Prowl [www.prowlapp.com]

      -Prowl [which is able to launch custom URL schemes upon receiving a notification] opens the push notification containing the text that was sent over by PushMenu

      At this point, I have to open Prowl, select the text, and paste it into whatever place I need it. I would LIKE to have a Pythonista script that Prowl can auto-launch upon receiving a push notification. I imagine it would act as follows:

      -Get content of push notification [Prowl's API seems to allow this in conjunction with some python libraries that were created, though I'm not proficient at weeding through APIs: http://www.prowlapp.com/api.php and https://github.com/babs/pyrowl]

      -Copy content to iOS clipboard

      Once these steps are done, I imagine I could either just navigate to the app I wish to use the clipboard in, or perhaps send it to a Drafts/Launch Center Pro action.

      Again, I realize I'm basically doing an entire script request here, so if that's too much work don't worry about it. That being said, it would be great to have a (relatively) seamless way to transfer clipboards from OS X to iOS. If anybody has any advice/suggestions regarding how this could be done or why it can't be, I would greatly appreciate it! TIA

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

        Who don't you make it?

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

          filippocld: I would love to make it myself (and share it!) but as I said, I'm very new to both python and Pythonista. I don't really understand what sort of functions/libraries I need to use/to import to do this. In other words, I can see most of the pieces to the puzzle (at least I think I can..), but I have no idea how to begin fitting them together.

          (I'm responding as if you meant to type 'why' rather than 'who' -- sorry if that is a mistake on my part)

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

            @calebaharrison, Some help on step #1:
            Python code to <b>run on your Mac</b> to get text content of the Mac OS X pasteboard.
            See: https://gist.github.com/cclauss/6203459

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

              @calebaharrison scuse me...i meant why...:-)
              The pythonista reciever is simple,and i aleready made it,in few hours I'll commit it
              the remaining is implementing the Prowl API
              @ccc good job ;-)

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

                [Update]
                the receiver is on https://gist.github.com/6204732
                and the. updated sender (updated,but without prowl API)is on https://gist.github.com/6204739

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

                  @ccc @filippocld wow, you two rock! Thank you so much. I will fiddle with it this afternoon and try to get it all set up with the Prowl api and such. There's a high chance I may come crawling back, begging for help...but I will try not to. :)

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

                    You're Welcome ;-)
                    The next step is configuring the Prowl API....but...my Mac is at home and,at the moment I can't help you with the Prowl API

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

                      some improvements done....updated the sender with the prowl api(used prowlpy ,it's better than Pyrowl)
                      any bugs,or improvements are welcome :-)

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

                        the updated sender :-)
                        https://gist.github.com/filippocld/6204739

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