use applescript to import contacts
use applescript to import contacts
- Subject: use applescript to import contacts
- From: Shoddy <email@hidden>
- Date: Wed, 19 Jun 2013 14:54:43 +1000
Hi All!
im trying to create an applescript to create a new contact in my CardDav directory.
The carddav server is the mac the i am using. However i can't seem to add a contact to a group on the carddav server only to a group on the local machine.
my code so far is
tell application "Contacts"
set thePerson to make new person with properties {first name:"Joe", last name:"Bloe"}
make new phone at end of phones of thePerson with properties {label:"mobile", value:"0422123456"}
make new email at end of emails of thePerson with properties {label:"Work", value:"
email@hidden"}
add thePerson to group "CardDav Group"
save
end tell
i have also tried adding
make new group with properties{name:"Group"}
however that only creates a group on the local machine.
Your help would be appreciated.
With Thanks
Brendon
Shoddy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden