I am trying to create a applescript to make a new message bcc’ing an address book group. I have been trying a few ways and the closest I can get is with the script below.
This lets me select the group and I can see that it retrieve’s the emails but I can’t figure out how to set the bcc to be those emails.
tell application "Address Book"
set gp_list to the name of every group
set theGroup to the value of email of every person in group (item 1 of (choose from list gp_list))
end tell
tell application "Mail"
activate
set theSubject to "subject"
set theBody to "message"
set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return}
tell newMessage
set visible to true
make new to recipient with properties {name:"Me", address:"my@email.com"}
make new bcc recipient with properties {theGroup}
end tell
end tell
Thank you for any help