grouping dynamically created groups with the group command
Posted: Fri Jan 02, 2015 10:55 pm
a have a script that clones a template group of fields based on a user controlled number of data entries and places each newly created group below the previous. Now I need to create a scrollbar for when the number of groups exceed the length of the stack. It was my thought to group all of the dynamically created groups into a master group and then set the vScrollbar and hScrollbar to true. The group command however does not seem to like my syntax.
How would be a better way of doing this?
Code: Select all
repeat with i= 1 to the number of groups in cd 1
put the short name of grp i of cd 1 into tName
put tName&&"and "before tGList
end repeat
delete the last word in tGList
group tGlist --Here it hangs it doesn't seem to like "group id xxx and group id xxx etc"
put it into tMasterGroup
set the vScrollbar of tMasterGroup to true
set the hScrollbar of tMasterGroup to true