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.


    [Share Code] Update iOS contact images with Twitter profile pictures

    Pythonista
    twitter contacts objcutil
    2
    2
    3090
    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.
    • lukaskollmer
      lukaskollmer last edited by lukaskollmer

      Hi,

      I made a small script that scans the iOS contacts list and looks for contacts that have a Twitter handle set in the Social section.
      For every Twitter username found, the app will offer you both the current image and the Twitter profile picture. Then, you can select which image you'd like to set to the contact.

      You can get the script from GitHub.

      Currently, the script will suggest the Twitter picture, even when it is identical with the one from the address book. However, I'll add support for detecting if the images are equal soon.

      This is what it looks like:

      (I know that the code probably could be written in a better, more elegant way, but it is my first Python script and I think it's definetly good enough to share it. If you have any suggestions how it could be improved, please let me know)

      1 Reply Last reply Reply Quote 3
      • Croc
        Croc last edited by

        This looks awesome for your first script! My first script is lame compared to this one lol. All it does is detect if you have a link to a tweet in your clipboard and then it likes it using your account.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors