編輯 iPhone 通信錄 .contacts 導出文檔

問題

經過PP助手導出通信錄,生成xxx.contacts文件,直接用Notepad++打開亂碼app

解決方法

能夠把xxx.contacts更名爲xxx.contacts.zip,而後用WinRAR等解壓縮工具打開,打開后里面有幾個xxx.plist文件(從Contacts_0.plistContacts_7.plist)。姓名和號碼分別在Contacts_0.plistContacts_2.plist中(能夠直接用Notepad++打開):工具

Contacts_0.plistcode

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
    <string>SDMessageProcessChanges</string>
    <string>com.apple.Contacts</string>
    <dict>
        <key>10</key>
        <dict>
            <key>com.apple.syncservices.RecordEntityName</key>
            <string>com.apple.contacts.Contact</string>
            <key>display as company</key>
            <string>person</string>
            <key>last name</key>
            <string>劉校</string>
        </dict>
    </dict>
    <true/>
    <string>___EmptyParameterString___</string>
</array>
</plist>

Contacts_2.plistxml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
    <string>SDMessageProcessChanges</string>
    <string>com.apple.Contacts</string>
    <dict>
        <key>3/10/0</key>
        <dict>
            <key>value</key>
            <string>13300001111</string>
            <key>com.apple.syncservices.RecordEntityName</key>
            <string>com.apple.contacts.Phone Number</string>
            <key>type</key>
            <string>home</string>
            <key>contact</key>
            <array>
                <string>10</string>
            </array>
        </dict>
    </dict>
    <true/>
    <string>___EmptyParameterString___</string>
</array>
</plist>
相關文章
相關標籤/搜索