• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
use applescript to import contacts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: openPanel using Automator Runner
  • Next by Date: Re: openPanel using Automator Runner
  • Previous by thread: Re: openPanel using Automator Runner
  • Next by thread: Script for moving files.
  • Index(es):
    • Date
    • Thread