I’ve let Adium ad my msn contacts to address book, but the first and the last name is switched.
I’ve tried to write a script to fix this, but it doesn’t work jet.
What am I doing wrong?
tell application "Address Book"
set personsList to selection
if ((count personsList) is 0) then
display dialog "Nothing selected!" with icon caution buttons {"Drat"} default button 1
return
end if
repeat with thePerson in personsList
set theFirstName to last name of person
set theLastName to first name of person
set first name of person to theFirstName
set last name of person to theLastName
end repeat
end tell