How do I delete cloned images with the same name all at once?

Tore Nilsen tore.nilsen at me.com
Thu Jan 18 11:35:42 EST 2018


Correction of previous script:

on deleteImage
put the number of images of this card into tImages
repeat with x = sImages down to 1
if last char of the short name of image x is an integer then — you will then keep the image you use as basis for the clones
delete image x
end if
end repeat
end deleteImage

> 18. jan. 2018 kl. 17:32 skrev Tore Nilsen via use-livecode <use-livecode at lists.runrev.com>:
> 
> on deleteImage
> put the number of images of this card into tImages
> repeat with x = sImages down to 1
> if last char of the short name of image x is an integer then — you will then keep the image you use as basis for the clones
> delete image x
> end if
> end repeat
> repeat with x 




More information about the use-livecode mailing list