Hi,
I am trying to group some groups, and then name the supergroup I have just created.
The dictionary, says :
To refer to the newly-created group, use the last keyword:
group button "Yes" and button "No"
set the name of last group to "Do It"
However, if I execute : group group "fred" and group "Mary", I get a new group named group id 12345
but "show the name of the last group" gives "Mary", which I don't want to rename.
How then do I get the name of the super-group, so that I can rename it ?
Thanks
a group of groups
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: a group of groups
The "last" keyword is not stable with groups. Check out the dictionary entry. I prefer using the templategroup.
Craig Newman
Craig Newman
Re: a group of groups
Hi Kevin,
yep, if you group some groups THE LAST GROUP is of course not the newly created group!
But you can check "the owner" of these groups and acct accordingly like this:
...
group group "fred" and group "Mary"
set the name of the owner of grp "fred" to "Ginger ermmm... Mary and Fred"
...
Tested and works!
Best
Klaus
yep, if you group some groups THE LAST GROUP is of course not the newly created group!
But you can check "the owner" of these groups and acct accordingly like this:
...
group group "fred" and group "Mary"
set the name of the owner of grp "fred" to "Ginger ermmm... Mary and Fred"
...
Tested and works!

Best
Klaus
Re: a group of groups
which dictionary entry do you mean ?dunbarx wrote:The "last" keyword is not stable with groups. Check out the dictionary entry. I prefer using the templategroup.
Craig Newman
Re: a group of groups
Indeed it does ! Thanks Klaus. Your solution should be added to the dictionary entry.Klaus wrote:Tested and works!