Thanks for replying about this question. However I can't seem to figure out how to access the isStranger property in Applescript. I tried the following code: if isStranger of eachContact then log uName & "is a stranger"
But I get the following error Adium got an error: Can’t make isStranger of contact "xyz" of account id 3 of service "Yahoo!" into type specifier. How is the isStranger property accessed in Applescript? On Feb 8, 2013, at 8:15 PM, Evan D. Schoenberg, M.D. wrote: > On Wednesday, January 23, 2013 at 3:06 PM, Steve Schow wrote: >> I am trying to write an applescript that will go through all the 1000+ >> contacts that have accumulated, and delete the ones which are no longer >> active. I have maybe 100 active contacts. By active I mean, they are >> currently an "added" yahoo user on my yahoo contact list that I see. When I >> remove a contact, adium seems to keep the contact object internally anyway, >> just in case I might add that contact again, then their complete info will >> still be there. I want to completely nuke the ones that are not active >> anymore. >> >> So the question is, in Applescript when I'm looking at a contact object, how >> can I determine if that contact is currently on my actual yahoo contact >> list, as opposed to just lurking in the plist? > The isStranger property might serve to allow that distinction, Steve. It's > protocol dependent what exactly 'stranger' means, and I'm not sure about > Yahoo offhand. > > -Evan > >