Skip to content

Instantly share code, notes, and snippets.

@Velrok
Created February 2, 2010 22:32
Show Gist options
  • Select an option

  • Save Velrok/293120 to your computer and use it in GitHub Desktop.

Select an option

Save Velrok/293120 to your computer and use it in GitHub Desktop.
tell application "Address Book"
repeat with contact in people
repeat with icq in ICQ handles of contact
set nimbuzzIcq to (value of icq) & "@icq.nimbuzz.com"
set nimbuzzIcqFound to no
repeat with jabber in Jabber handles of contact
if (value of jabber) = nimbuzzIcq then
set nimbuzzIcqFound to yes
end if
end repeat
if nimbuzzIcqFound = no then
make new Jabber handle at the end of (Jabber handles of contact) with properties {value:nimbuzzIcq, label:"privat"}
end if
end repeat
end repeat
save
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment