Hi: I'm having trouble adding images to address book people. Can
anyone advise on the correct way to do it? Here is what I have so far:
set this_file to "/tmp/foo.tiff"
try
tell application "Image Events"
-- start the Image Events application
launch
-- open the image file
set this_image to open this_file
tell application "Address Book"
set g to group "TELUS"
--set p to person 1 of g
set the image of p to this_image
end tell
--close this_image
end tell
on error error_message
display dialog error_message
end try