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.


    Override confirmation dialog box when hiding a photo

    Pythonista
    2
    5
    1260
    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.
    • masscode
      masscode last edited by

      Thank you for the beautiful solution to my previous question:
      https://forum.omz-software.com/topic/7129/get-all-photos-including-hidden-photos-in-a-specific-album/3

      I have a subsequent question.
      I have a need to hide/unhide a lot of images in my Photos app rather frequently. Unhiding is not an issue, but there is a confirmation dialog box when hiding an image by script, which requires me to tap for each image.
      Is there a way to override this and suppress it?

      import photos
      
      if __name__ == '__main__':
      
      	assets = photos.get_assets(media_type="image", include_hidden=False)
      	assets[-1].hidden = True
      
      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @masscode last edited by

        @masscode I guess iOS needs user confirmation. I don't see any objectiveC method...

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

          @cvp
          Oh that’s a pity, but it makes sense.
          Thank you for your insight!

          cvp 2 Replies Last reply Reply Quote 0
          • cvp
            cvp @masscode last edited by cvp

            @masscode Of course, I could be wrong, maybe an other user in the forum has the idea

            1 Reply Last reply Reply Quote 1
            • cvp
              cvp @masscode last edited by

              @masscode Another way could be, for each photo you want to hide:

              • keep a copy in a local folder
              • delete it from the camera roll
              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors