如何批量更改地址簿中的电话号码类型?

ulr*_*sen 3 mac address-book macos

我有一个很大的地址簿(在 Mac 10.5 上),其中 80% 的电话号码列为“其他”。

当我将地址簿与我的服务器同步时,不包括“其他”号码。

有没有办法将所有“其他”标签批量更改为“移动”?

Vid*_*dal 5

我已成功使用以下 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
Run Code Online (Sandbox Code Playgroud)

简而言之,它将所有other电话号码更改为mobile,从而导致电话号码同步。