Extracting a list of groups from an address book

Can someone give me the syntax for processing address book groups. Similar to ‘person’ I’m looking for the correct way to do the following:

repeat with this_group in every ???group????

TIA.

Silly me. I forgot to put the thing in a “tell application”. :confused:

However, I cannot seem to extract the names:

set group_list to {}
tell application "address book"
   repeat with this_group in every group
      set end of group_list to name of this_group
   end repeat
end tell

Hi,

What about:

tell application "Address Book"
	set groupNames to name of every group
end tell

Best wishes

John M

That did it. Thanks.