omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. fraserspeirs

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    fraserspeirs

    @fraserspeirs

    0
    Reputation
    553
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    fraserspeirs Unfollow Follow

    Latest posts made by fraserspeirs

    • Launching Pythonista from 1.6b app extension

      I'm trying to write a script for the 1.6 app extension that will:

      • Take some text passed in from the share sheet
      • Format the text in a specific way
      • Place the formatted text on the pasteboard
      • Launch Pythonista and run another script that will take the text on the pasteboard and do something with it.

      Here's the script:

      import appex
      import clipboard
      import webbrowser 
      
      initial_text = appex.get_text()
      
      # text processing stuff
      
      clipboard.set(processed_text)
      webbrowser.open('pythonista://NewFromClipboard.py')
      

      Is it possible to launch a pythonista:// URL from the app extension? If not, is it possible to do something with objc_util?

      Worst case, I can make it a two-step process but it would be great to have it in one place.

      posted in Pythonista
      fraserspeirs
      fraserspeirs
    • RE: Launching Pythonista from 1.6b app extension

      Thanks. It's not a huge big deal to make it a two-step process. Just glad to know I shouldn't spend any more time on this.

      posted in Pythonista
      fraserspeirs
      fraserspeirs