Stefan I think there is a misunderstanding here… What i want to do is to make all the letters of my contacts first and last name appear in capital letters and not only the first letter of each one.
I understood this because i just saw that all the www… contacts i have are made as Www… so your script is working just fine but is not made for the purpose i want.
I am sorry if i didnt explain it properly from the beggining.
Sorry for saying that nothing changed but i already have all of my contacts written with their first letters in capitals so i couldnt see a change.
Sorry for the whole trouble. Changing all the letters of the first and last name of all the address book contacts with a script is it possible ?
Ok i did this and now it runs without giving any errors.
Thing is that it didnt convert all the contacts but only the last name of one written with english letters.
Also my address book is with greek letters so i suppose that i have to edit your script replacing the english a - z and A- Z characters with grrek. Is this correct ?
I recommend to install the Scripting Addition SatImage OSAX.
On the site click on “Satimage osax 3.5.2 (build 360)”.
Install the package.
Then use this script
tell application "Address Book"
script a
property l : get people
end script
repeat with aPerson in a's l
set {first name:fName, last name:lName} to aPerson
if fName is not missing value then set first name of contents of aPerson to uppercase fName
if lName is not missing value then set last name of contents of aPerson to uppercase lName
end repeat
save addressbook
end tell