Naming Groups
Posted: Sat Dec 26, 2015 10:50 am
I seem to be having some trouble with naming groups.
I was attempting to make it work in a wider script but have tried it independently on a stack by itself and can't get it to work for the life of me.
Got two fields, Field1 and Field 2, this is what I've got on a button:
on mouseUp
set the name of templateGroup to "Misery"
answer the name of the templateGroup
group field "Field1" and field "Field2"
end mouseUp
I've also tried using "set the name of the last group" but I know 'last' has had some problems with groups anyway.
All the same, this doesn't affect the new group at all. I can't change any of the properties of the new group through use of the templateGroup.
How do I create a group and set its name at the same time?
I was attempting to make it work in a wider script but have tried it independently on a stack by itself and can't get it to work for the life of me.
Got two fields, Field1 and Field 2, this is what I've got on a button:
on mouseUp
set the name of templateGroup to "Misery"
answer the name of the templateGroup
group field "Field1" and field "Field2"
end mouseUp
I've also tried using "set the name of the last group" but I know 'last' has had some problems with groups anyway.
All the same, this doesn't affect the new group at all. I can't change any of the properties of the new group through use of the templateGroup.
How do I create a group and set its name at the same time?