group command not working?
MisterX
b.xavier at internet.lu
Mon Nov 15 08:17:50 EST 2004
The group command below doesn't work.
I also tried with select (do "select" && nulist)
and neither works... Any ideas?
here's the error
Type Group: bad object type
Line (why can't it figure the line out?)
Hint group Image 1 and Image 2 and Image 3 and Image 4 and Image 5 and
Image 6 and Image 7 and Image 8 and Image 9 and Image 10 and Image 11 and
Image 12 and Image 13 and Image 14 and Image 15 and Image 16 and Image 17
and Image 18 and Image 19 and Image 20 and Image 21 and Image 22 and Image
23 and Image 24 and Image 25 and Image 26 and Image 27 and Image 28 and
Image 29 and Image 30 and Image 31 and Image 32 and Image 33 and Image 34
and Image 35 and Image 36 and Image 37 and Image 38
Here's the script.
if you right click on the group command, the help will take you to the wrong
(subjective) page and insert the wrong filter keyword (not really
subjective)...
But once you see the revdoc group command definition, there's no reason this
script shouldn't work.
Any ideas?
Thanks
Xavier
Script below...
on mouseUp
--choose pointer tool
put the number of images into ic
put 100 into ytop
put 10 into lastx
repeat with x = 1 to ic
show img x
if lastx + 16 > the width of this card then
put 10 into lastx
add 24 to ytop
end if
set the topleft of img x to lastx, ytop
get the width of img x
if it < 20
then add 24 to lastx
else add it+4 to lastx
if x < ic then put " Image" && x && "and" after nulist
else put " Image" && x after nulist
end repeat
-- none of these work?!!
group nulist
do "group" && nulist
-- Attempt #2
lock messages -- or the selection is extremely slow thanks to RPP
select nulist or do "select && nulist
domenu "Selected group" -- wont work
group the selobj -- wont work
end mouseUp
after script is done and tried to group the selected images also failed...
More information about the use-livecode
mailing list