• miwagner1

    No wonder he was surprised it worked. Apples docs say the UIApplication is Not available in app extensions.

    It's possible this will break in later iOS versions.

    posted in Pythonista read more
  • miwagner1

    This is fantastic. There are so many possibilities I can do now with pythonista and editorial with webpages. Right in the safari app.

    posted in Pythonista read more
  • miwagner1

    Ok so workflow can open other apps from the app extension. The user just had to confirm it. So how would I do this from the pythonista extension?

    posted in Pythonista read more
  • miwagner1

    This script is fantastic on my iPhone 6s. It even shows line wraps with a dot. This really needs to be added in a new update by default.

    posted in Pythonista read more
  • miwagner1

    Marcus67 the typical output looks like

    textastic://forum.omz-software.com/topic/2616/can-pythonista-push-itself-into-the-foreground
    

    Well dam if an extension can't open an app, I'm going to have to get fancy for viewing source code.

    posted in Pythonista read more
  • miwagner1

    Am I missing something here? It is not opening the textastic app.

    # coding: utf-8
    
    import appex
    import webbrowser
    from urlparse import urlsplit
    
    def main():
        if not appex.is_running_extension():
            print 'This script is intended to be run from the sharing extension.'
            return
        url = appex.get_url()
        if not url:
            print 'No input URL found.'
            return
        url = urlsplit(url)
        url = 'textastic://' + url.netloc + url.path + url.query + url.fragment
        print url
        webbrowser.open(url)
        
    if __name__ == '__main__':
        main()
    

    posted in Pythonista read more
  • miwagner1

    It looks like its broken? Pythonista is running version 2.7.5 and my mac is running 2.7.10. Your simple print statement with the go back works fine on my mac.

    posted in Pythonista read more
  • miwagner1

    Ya fixing the path to have Pythonista generate, os.path.expanduser did it. now lets hope apple won't make him pull the extension as its letting me do all sorts of cool stuff.

    posted in Pythonista read more
  • miwagner1

    you can basically do anything you can do with python in Pythonista. There is just the multitasking restrictions and file write restrictions to only inside the apps documents dir.

    posted in Pythonista read more
  • miwagner1

    Fantastic, it works. Now I can keep all of my scripts backed up on github.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!