[<] Sujet : [AS] au Sujet du carnet d'adresse
De : Yves Petronin <anonyme@...>
Date : 2010-02-28 15:26:03
Pour sélectionner une fiche, on peut utiliser une des nombreuses "properties" dont les plus usuelles sont "Last name" ou "name" qui correspond au premier nom affiché selon les préférences. Il y a des pièges, car par exemple, il peut y avoir plusieurs adresses, et il est souvent préférable d' écrire first address par défaut. --SCRIPT tell application "Address Book" set LISTE1 to last name of (every person whose city of first address is "PARIS") set m to value of first email of (first person whose country of first address is "FRANCE") end tell --SCRIPT Par ailleurs les adresses ont pas mal de "properties" souvent assez classiques il est vrai: city (Unicode text) : City part of the address. country (Unicode text) : Country part of the address. country code (Unicode text) : Country code part of the address (should be a two character iso country code). formatted address (Unicode text, r/o) : properly formatted string for this address. id (Unicode text) : unique identifier for this address. label (Unicode text) : Label. state (Unicode text) : State, Province, or Region part of the address. street (Unicode text) : Street part of the address, multiple lines separated by carriage returns. zip (Unicode text) : Zip or postal code of the address. A noter aussi les "phonetic first name" ou "phonetic last name" phonetic first name (Unicode text) : The phonetic version of the First name of this person. phonetic last name (Unicode text) : The phonetic version of the Last name of this person. Les propriétés des personnes (fiches) sont très nombreuses. Voici une liste incomplète. birth date (date) : The birth date of this person. company (boolean) : Is the current record a company or a person. department (Unicode text) : Department that this person works for. first name (Unicode text) : The First name of this person. home page (Unicode text) : The home page of this person. image (TIFF picture) : Image for person. job title (Unicode text) : The job title of this person. last name (Unicode text) : The Last name of this person. maiden name (Unicode text) : The Maiden name of this person. middle name (Unicode text) : The Middle name of this person. name (Unicode text, r/o) : First/Last name of the person, uses the name display order preference setting in Address Book. nickname (Unicode text) : The Nickname of this person. note (Unicode text) : Notes for this person. organization (Unicode text) : Organization that employs this person. phonetic first name (Unicode text) : The phonetic version of the First name of this person. phonetic last name (Unicode text) : The phonetic version of the Last name of this person. phonetic middle name (Unicode text) : The Phonetic version of the Middle name of this person. _______________________________________________ Applescript_fr mailing list anonyme@... http://listes.patpro.net/mailman/listinfo/applescript_fr
Sujet : Re: [AS] au Sujet du carnet d'adresse
De : Jean-Paul Danain <anonyme@...>
Date : 2010-03-01 13:32:42