AppleScript Address Book not working

Hi,


I'm trying to develop an AppleScript that selects the "Contacts" group in the Exchange section of the Address Book on macOS 10.12.6. I have tried the following but it only selects groups that are defined in the "iCloud" section of eth address book. How can I specify the script so that it selects a Group under the "Exchnage" section of the Address Book?


tell application "Contacts"

activate

set selected_group to first where (name = "Contacts"

tel selected_group

blah...

blah...

blah...

end tell

end tell


The problem is that the abouve set seems to only be able to select groups in teh "iCloud" section of my address book. Im new to AppleScript so pardon me if this is a dumb question! Thanks for your help


Regards

Replies

Yes, there is a close parathasis after "Contacts" ... it shoudl be (name="Contacts")... sorry for the typo above.

a) you are allowed to edit/delete your original post via the 'Actions' menu, above right. For comments/replies, use the 'Actions' menu lower left.


b) devForums 'scripting' is typically used for code scripting/Xcode, not AS proper, which seems to have a better home on Apple's public forums, thanks and good luck.



_______________________

Tags: off-topic thread

Ok thanks! I will move this to the public forum.


Regards