Issue
Apple's Contacts App had a defined field for a name prefix (e.g. "Dr.").
Using AppleScript if I retrieve the name
property, the prefix is included. However, there does not appear to be/exist a prefix
property. There IS a suffix
property which I am able to read and write, but I need to be able to specifically WRITE (e.g. add) a prefix to a contact.
Any/All help would be appreciated!!
Solution
In the AppleScript dictionary (⇧⌘L ) for Contacts, look at the properties of the class Person.
If you have added a Prefix to the contact via, e.g., Contacts > Card > Add Field, then it is assigned to the title
property.
Example AppleScript code:
tell application "Contacts"
set theContact to the first person ¬
whose title is not missing value
return title of theContact
end tell
Answered By - user3439894 Answer Checked By - Marie Seifert (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.