omz:forum

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

    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 2
    • Posts 8
    • Best 1
    • Controversial 0
    • Groups 0

    Lance E Sloan

    @lsloan

    1
    Reputation
    994
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Michigan, USA

    lsloan Unfollow Follow

    Best posts made by lsloan

    • RE: Where is "URL to QR Code.py"?

      Thanks! That's such an obvious answer that I feel foolish to not have noticed it before. 😳

      I had the examples in my app, but instead of looking through the folders, I tried typing things like "qr" or "url" into the search field at the top of the file manager, but I didn't find it. Now that I know I have that program in my files, I understand the search isn't recursive, it only filters the current list.

      Are there any plans to make the file manager search recursive?

      posted in Pythonista
      lsloan
      lsloan

    Latest posts made by lsloan

    • RE: Webbrowser get and register

      Thanks for the clarification, @omz. Shortly before you replied, I thought that I should just try that and it worked.

      When I asked about it, I thought maybe it would be necessary to specify Chrome as an argument to sharedApplication() or some other method. I'm glad it's really just that simple.

      I'd like to suggest that the Pythonista documentation be updated to explain that using webbrowser.open() doesn't work to open other applications via the application sharing extension/mechanism. That is, add a note about that and give an example of the UIApplication.sharedApplication() method that works instead. These pages seem like good places for this update:

      • http://omz-software.com/pythonista2/docs/ios/urlscheme.html#launching-other-apps
      • http://omz-software.com/pythonista2/docs/library/webbrowser.html#webbrowser.open

      (And the corresponding documentation for the newer Pythonista.)

      If the documentation had mentioned this already, it would literally have saved me hours of frustration. I thought I was using webbrowser.open() incorrectly.

      Also, what's happened with the "list of third-party applications that have URL schemes" that was available at http://handleopenurl.com/? It appears to be defunct. Is there a replacement resource?

      posted in Pythonista
      lsloan
      lsloan
    • RE: Webbrowser get and register

      That works in programs when run directly from Pythonista (Python 2.7), but not if the program is run from another app via the sharing extension.

      I saw another post in the forum that showed using PyObjC Objective-C via objc_util to open URLs in the default browser (Safari), but I don't know how to make it open them in Chrome instead. (Again, via the app sharing extension.)

      posted in Pythonista
      lsloan
      lsloan
    • RE: Where is "URL to QR Code.py"?

      Thanks! That's such an obvious answer that I feel foolish to not have noticed it before. 😳

      I had the examples in my app, but instead of looking through the folders, I tried typing things like "qr" or "url" into the search field at the top of the file manager, but I didn't find it. Now that I know I have that program in my files, I understand the search isn't recursive, it only filters the current list.

      Are there any plans to make the file manager search recursive?

      posted in Pythonista
      lsloan
      lsloan
    • Where is "URL to QR Code.py"?

      When I choose Pythonista in the iOS share sheet, it shows the option "URL to QR Code", which references the program "URL to QR Code.py". Where is that program located or is its source available online?

      posted in Pythonista
      lsloan
      lsloan
    • RE: File manager rename and copy functions

      @omz Thanks, I'd forgotten about that trick.

      posted in Pythonista
      lsloan
      lsloan
    • RE: File manager rename and copy functions

      Thanks for the suggestions, @dgelessus.

      The rename feature in the editor isn't enough. In my case, it's not even possible for one file.

      As an experiment, I renamed a .pyui file to .json. I changed some coordinates from "{{x,y},{w,h}}" strings to [[x,y],[w,h]] structures. It worked in the app that used it, but when I renamed the file back to .pyui, all attempts to open it cause Pythonista itself to crash.

      I know I can rename or copy files with function calls from the console or a program. However, the file manager should have this feature, too. It feels incomplete without them.

      posted in Pythonista
      lsloan
      lsloan
    • RE: File manager rename and copy functions

      @brumm Really!? I will check that out?!

      P.S. You might like interrobang: ‽

      ;)

      posted in Pythonista
      lsloan
      lsloan
    • File manager rename and copy functions

      Please add features to the file manager to allow copying an existing file into a new one and renaming files.

      posted in Pythonista
      lsloan
      lsloan