Jump to content

jfcg

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by jfcg

  1. Since I didn't have any answer and it's an easy task, I share a very simple patch if anyone else is interested in remove duplicates. In update_contacts.py, change the following lines in the main function:

     

                    contacts.append(d)

                    people_count += 1
     
    To:
     
               if d not in contacts:
                    contacts.append(d)
                    people_count += 1
     

     

    Thanks for your reply.

     

    I meant with duplicates to the same email AND the same name. I think it's the approach most of the applications take. I use MailMate and duplicates don't show. It's clear that if you aren't very carefully, some duplicates can't be filtered. But at least, it's up to the user to maintain its contacts list clean. Also, from a usability point of view, it's weird that a selection list is populated with exactly the same entry several times.

     

    Do you think it could be interesting to implement this approach?

     

    Thanks!

     

    PD: I don't disable my Google Contacts account, because I would like to keep my contacts synchronized. It's a pity that groups don't synchronize and I have to do it manually, causing problems like this issue.

  2. Thanks for your reply.

     

    I meant with duplicates to the same email AND the same name. I think it's the approach most of the applications take. I use MailMate and duplicates don't show. It's clear that if you aren't very carefully, some duplicates can't be filtered. But at least, it's up to the user to maintain its contacts list clean. Also, from a usability point of view, it's weird that a selection list is populated with exactly the same entry several times.

     

    Do you think it could be interesting to implement this approach?

     

    Thanks!

     

    PD: I don't disable my Google Contacts account, because I would like to keep my contacts synchronized. It's a pity that groups don't synchronize and I have to do it manually, causing problems like this issue.

     

    It's a tricky problem with no obvious works-for-everyone solution.

    I deliberately allowed duplicates, as it's possible that someone might have assigned the same email address to multiple people, e.g. I might have both Andrew and Vero with info@alfredapp com as their email(s). (The workflow organises everything by email address.) Filtering duplicates by name is a non-starter (damn your eyes, John Smiths!), and filtering by email AND name would only work well if you're careful naming your contacts.

    I can think of a couple of ways it might be fixed in the workflow, but neither is ideal. Basically, the difficulty of spotting duplicates is why syncing accounts is so hard to do in the first place (and "Apple and Google can't do it. We'll have to call Dean." is not something anyone said ever.) Still, I guess a few dupes is okay in the workflow. It's not like it changes your address book.

    May I ask why you can't disable your Google Contacts on the Mac? I'm trying to figure out if it would be better to be able to ignore certain accounts (though I don't yet know if this is possible with the Contacts API) — which strikes me as a fairly clean solution — or whether I should try to implement some sort of duplicate filter (exclude duplicate emails or exclude duplicate email AND name).

  3. Hello!

     

    I'm working with my first workflow. At the end of it (in Output), I need to launch an Applescript with some input. The only option I have found to do it is by Run Script with /usr/bin/osascript as interpreter. I know NSAppleScript Action, and there you can get inputs with the variable 'q', but how can I do it with osascript interpreter? NSAppleScript is only an Action and it isn't available as an Output. I've already tried using 'on run argv' with no luck. Input is always empty.

     

    Could anyone help me?

     

    Thanks in advance!

×
×
  • Create New...