Addressing a group

A very very long time ago I was told that the way to address a group was to first “create” the group even if it already exist and then use the result. Something like this:

set xf to create location "abc/def/ghi"
set x to create record with {name:"tttt", type:txt, plain text:"So fun"} in xf

Is this still the correct way to do it? (it’s the “create” that bothers me :slight_smile: )

It’s still possible that way and probably the easiest way. However, there are now additional ways to address a group (e.g. by name, by location, by UUID, by ID or by reference like the result of the group selector).

But don’t worry about the name of the command, “get existing location or create new location if necessary” would be too long :wink: