If you want to avoid the "do" you can just build the list put the name of button "a" & " and " & the name of button "b" into tReferences
group tReferences Though if you know that you're going to group button "a" and button "b" doing group button "a" and button "b" is the better way, so I'm assuming you are looping through stuff. Maybe something like this.. repeat block goes here clone whatever put the long id of the last object & " and " after tmyList end repeat delete the last word of myList -- remove the extraneous and group tMyList The same method works for selecting... select tMyList On Fri, Apr 19, 2013 at 4:22 PM, Paul Hibbert <l...@pbh.on-rev.com> wrote: > Mike, > > The dictionary states… > > Parameters: > The objectList is a list of object references, separated by the word > "and". > > I'm not saying it's the correct way, but if you need to build the group > command via script, this does work… > > put "group" && the name of button "a" && "and" && the name of button > "b" into xx > do xx > > HTH > > Paul > > > On 2013-04-19, at 3:04 PM, Michael Doub wrote: > > > I feel a bit foolish asking this but I can not figure out the syntax for > the group command. > > > > I am trying to clone a bunch of objects, align them property and then > group them so I can build a scrolling group. > > > > group button "a" and button "b" -- works fine > > > > put the name of button "a" && return && the name of button "b"into xx > > group xx --- does not work > > > > the dictionary says group [objectList] > > > > what is the syntax for an objectList? > > > > -= Mike > > _______________________________________________ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode