Используйте dotmacsyncclient
через NSTask или NSAppleScript, местоположение:
/System/Library/PrivateFrameworks/DotMacSyncManager.framework/Versions/A/Resources/
Использование:
Usage: mobilemesyncclient [options], version 446
--sync
Options:
--entitynames <entities to sync>
--dataclass <dataclass to sync>
--username <account username>
--password <account password>
--pushtruth
--pulltruth
--dumpchangelog <changelog path>
Options:
--tdir <target directory>
--dumpchanges <changelog number> --dataclass <dataclass name>
--listdataclasses
Required:
--username <account username>
--password <account password>
--listdataclass <dataclass name>
Required:
--username <account username>
--password <account password>
--downloaddc <dataclass name> --tdir <target directory>
Required:
--username <account username>
--password <account password>
--uploaddc <dataclass name> --sdir <source directory>
Required:
--username <account username>
--password <account password>
Options:
--clear
--needstruth
--removeclient <client name>
Required:
--username <account username>
--password <account password>
--listclients
Required:
--username <account username>
--password <account password>