I try to import csv file in my contacts in a new group with javascript or applescript (I will appreciate help in JS). what I've tried:(I tried lot combinaison of this command)
var contact = Application("Contacts");
var group = contact.Group({
'name':'test'})
var personne = contact.Person()
contact.add(contact.Person())
var g = contact.Group({name : "test"})
contact.add(g)
I tried first to create a new group but nothing become visible in adress book.app I aim to do File -> new group(cmd+maj+n) and this new group file->import (cmd +o) but with javascript.