Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a large Address Book (on Mac 10.5) that has 80% of the phone numbers listed as "other".

When I sync the address book with my server, the "other" numbers aren't included.

Is there a way to batch change all "other" labels to "mobile"?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

I have successfully used the following AppleScript:

tell application "Address Book"
    repeat with thisPerson in every person
        try
            repeat with thisPhone in every phone of thisPerson
                if label of thisPhone = "other" then
                    set label of thisPhone to "mobile"
                end if
            end repeat
        on error errorMessage
            log errorMessage
        end try
    end repeat
    save
end tell

In short, it changes all other phone numbers to mobile, which in turn causes the phone number to be synced.

share|improve this answer
1  
Hi Vidar. Thank you for Your answer. I did originally find a cumbersome solution of importing everything to Outlook 2011. Here "other" is changed automatically and can then be exported back to address book :-) –  ulrikhansen Jan 3 '11 at 8:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.