• cvp

    @kim First of all, read a little bit Pythonista documentation and how to use it

    posted in Pythonista read more
  • cvp

    @jmv38 Panasonic Lumix DMC-TZ40

    posted in Pythonista read more
  • cvp

    @omz You're right. I'll obviously never use it but your application is so vast that you will always meet someone who has requests that you have not thought of.

    And that is a reason more why so much people here find your app (and you too) so marvelous, sincerely said, not to get a personal reduction πŸ˜‚

    posted in Pythonista read more
  • cvp

    @omz It works, but, honestly, not easy to find that πŸ˜€

    posted in Pythonista read more
  • cvp

    @mieq As @mikael asked, what do you want to do?

    • close the view and fall in keyboards list? There is a close button at right (X)
    • dismiss the keyboard? It is possible, I already did it in my Japanese Braille keyboard

    posted in Pythonista read more
  • cvp

    @omz Welcome back and thanks for the future version. I'm sincerely more than happy that you feel better.

    posted in Pythonista read more
  • cvp

    @mikael ok, sorry. Wen I go in holidays, I always backup my photos from my camera to my iPad, until now via wifi, via usb in the future. But often, I have a lot of photos per day and it is sometimes difficult to say/pick which is the first to save visually. And I give the today date (I back up in the evening) and it is done.

    posted in Pythonista read more
  • cvp

    @mikael it is what does my little scrip above, you only need to add a path in the file write, a path like some posts above.

    posted in Pythonista read more
  • cvp

    @FlyingDiver with the new beta, and thus in the v3.3 arriving begin of next week, you will be able to open an external folder on an usb Drive (flash, sd, Drive) connected to your iPhone/iPad, and thus save on it your local photos.

    posted in Pythonista read more
  • cvp

    Now, the open external folder also shows an usb Drive connected, and that is a very good news...

    posted in Pythonista read more
  • cvp

    I don't use WorkingCopy but I see iCloud, On My iPad, my NAS ip and my Mac ip

    posted in Pythonista read more
  • cvp

    dialogs.pick_document() does not show an usb Drive but shortcut command "get file" shows it, thus I think it could be possible, but perhaps with iOS 13 functions in future Pythonista version.

    posted in Pythonista read more
  • cvp

    Hoping next version of Pythonista will allow access to USB drives

    posted in Pythonista read more
  • cvp

    @FlyingDiver Personally, I plug an USB drive/flash to an usb slot of my router and I'm able, via SMB, to copy local Pythonista files to a folder of my external drive.But, I agree that in holiday/trip you don't have a router

    posted in Pythonista read more
  • cvp

    @FlyingDiver Assume you import your photos in the photos app.
    The script shows how to import them from the photos app to a Pythonista folder.

    Yes to "I would have to use iOS "Share" to copy them from Pythonista's sandbox to the external media?"

    Then, in Pythonista, you can copy a folder to an external device like I also show

    posted in Pythonista read more
  • cvp

    @mikael No, and I don't understand why Files app shows the usb connections but Pythonista "open external" does not 😒

    Γ‰dit: it is accessible if you, in Files app, manually select a file and share to a Pythonista script.

    posted in Pythonista read more
  • cvp

    @mikael for info, when I connect my Panasonic LUMIX to my iPad via the Apple USB adapter, a photo is accessed as

    /private/var/mobile/Library/LiveFiles/com.apple.filesystems.userfsd/NO NAME/DCIM/106_PANA/P1060745.JPG 
    

    posted in Pythonista read more
  • cvp

    @FlyingDiver a (quick and dirty) script to show how to import, from the camera roll, all photos created after a specific date (ex: all new photos of a new day during your trip, if you run it each day) and to save them into Pythonista, up to you to specify a particular folder.
    So all exifs (taken date, device, eventual gps, ...) are also copied into the jpg file.

    from datetime import datetime
    from objc_util import *
    import photos
    
    d0 = datetime(2016,2,19)    # date of first photo to save
    all_assets = photos.get_assets()
    for asset in all_assets:
        if asset.creation_date > d0:
            file_name = str(ObjCInstance(asset).valueForKey_('filename'))
            b = asset.get_image_data().getvalue()
            with open(file_name, mode='wb') as fil:
                fil.write(b)
    

    posted in Pythonista read more
  • cvp

    @FlyingDiver Assume you have imported your photos in the camera roll, you could import them, via script, into a Pythonista local folder, and there, via edit/share/save to files copy all your folder on an USB drive, like here

    posted in Pythonista read more
  • cvp

    @mikael said:

    if you know the path to it, Internet suggests something like /var/mobile/Media/DCIM might work.

    Don't forget that you need to "open an external folder" in Pythonista and that this functionality only was existing in the last beta, thus we need to wait for the new version

    Edit: just tried with path = '/private/var/mobile/Library/LiveFiles/com.apple.filesystems.userfsd/HOOTOO/' which is the path when I import a file from an usb Drive but I get an access error since I can't define a folder as "open external folder" in Pythonista.

    Files app shows

    But Pythonista open external does not even show the usb line

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!