Group/Ungroup by script

Peter Haworth pete at mollysrevenge.com
Thu Feb 17 20:59:11 EST 2011


I have a need to add a specific control to an existing group.  The following works but I'm curious if there's a better/easier way?

select group "Test"
put "group " into mycommand
repeat for each line myId in the selectedObjects
 	 put myID && "AND " after mycommand
end repeat 
put the long ID of button "Button" after myCommand
do myCommand


Pete Haworth










More information about the use-livecode mailing list