local tList repeat with rImgNum = 1 to the number of images [in card "x"] if the short name of img rImgNum is among the lines of tList then set the name of img rImgNum to the name of tImg rImgNum & "x" end if put the short name of img rImgNum into line rImgNum of tList end repeat -- Done!
Sean Cole *Pi Digital Productions Ltd* 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' On Thu, 4 Jul 2019 at 09:30, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Richmond, > > > Am 04.07.2019 um 10:26 schrieb Richmond via use-livecode < > use-livecode@lists.runrev.com>: > > > > I've lost this . . . having done it several times before . . . > > > > So: I duplicate an object, let's call it img "XXX", so I end up with > > 2 objects called "XXX" (which is problematic), and I wish to > > rename the new version of "XXX" . . . > > err . . . > > set the name of the last/recent/latest/headache > > ... > set the name of last img to "XXX_2" > ... > > > Richmond. > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > kl...@major-k.de > > > _______________________________________________ > 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