Example:
- First Name: "Sandu"
- Middle Name: "D."
- Last Name: "Serban"
The result would be something like: "Sandu_D._Serban"
For all the contacts in my Mac Address Book.
Thanks
Example:
The result would be something like: "Sandu_D._Serban"
For all the contacts in my Mac Address Book.
Thanks
With applescript you can do it like this (use script editor to run):
tell application "Address Book"
set allNames to ""
set peopleCount to (count every person)
repeat with i from 1 to peopleCount
set firstName to (get first name of person i)
set middleName to (get middle name of person i)
set lastName to (get last name of person i)
set oneName to ""
if firstName is not missing value then
set oneName to oneName & firstName
end if
if middleName is not missing value then
set initial to first character of middleName
set oneName to oneName & "_" & initial & "."
end if
if lastName is not missing value then
set oneName to oneName & "_" & lastName & "
"
end if
if firstName is missing value or lastName is missing value then
set oneName to ""
end if
set allNames to allNames & oneName
end repeat
set the clipboard to allNames
end tell
This script copies the name list to clipboard. Next time you paste you get the name list (wait a bit if you have a lot of names in your address book).
br,
Juha