command "group" fails when objectList is a string

Klaus on-rev klaus at major.on-rev.com
Sat Jul 2 20:04:28 EDT 2011


Hi Nicolas,

Am 03.07.2011 um 00:57 schrieb Nicolas Cueto:

> Hi.
> 
> Here's an example of what  does work:
> 
>   group group id 342201 and group id 342165 and group id 342129
> 
> And what doesn't:
> 
>    put "group id 342201 and group id 342165 and group id 342129" into tString
>    group tString
> 
> But shouldn't it work?
> 
> Which leads me to a second question. My workaround is:
> 
>  put "group group id 342201 and group id 342165 and group id 342129"
> into tString"
>  do tString
> 
> The LC docs say "do" can take time. And it does. But, any reasonable
> guesses as to how long is safe? For now, I've experimented with:
> 
>  wait 0 milliseconds
>  wait 50 milliseconds
>  wait 500 milliseconds
> 
> Some too slow. Some work at times, and other times not.
> 
> But perhaps there's some unbeknownst to me LC command or property that
> can help get around all this mess?

try this:
...
repeat for each item i in "342201, 342129, 342165"
## or use the name or whatever
  set the selected of grp ID i to true
end repeat
group
select empty
## Now you can do what you want with "last grp"
...
:-)

> Thanks.
> 
> --
> Nicolas Cueto

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the use-livecode mailing list