Page 1 of 1

a group of groups

Posted: Tue Jan 31, 2012 2:55 pm
by kevin11
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

Re: a group of groups

Posted: Tue Jan 31, 2012 3:02 pm
by dunbarx
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

Posted: Tue Jan 31, 2012 3:09 pm
by Klaus
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! :D

Best

Klaus

Re: a group of groups

Posted: Tue Jan 31, 2012 3:19 pm
by kevin11
dunbarx wrote:The "last" keyword is not stable with groups. Check out the dictionary entry. I prefer using the templategroup.

Craig Newman
which dictionary entry do you mean ?

Re: a group of groups

Posted: Tue Jan 31, 2012 3:34 pm
by kevin11
Klaus wrote:Tested and works! :D
Indeed it does ! Thanks Klaus. Your solution should be added to the dictionary entry.