Hi Andy,
This isn't directly a response to your question but get this when you are ready;
http://livecodeshare.runrev.com/stack/7 ... dependence
Provides automatic scaled images with the correct file names
<image>@ultra-low.<ex> - 0.25x
<image>@extra-low.<ext> - 0.5x
<image>@low.<ext> - 0.75x
<image>@medium.<ext> / <image>.<ext> - 1x
<image>@high.<ext> - 1.5x
<image>@extra-high.<ext> / <image>@2x - 2x
<image>@ultra-high.<ext> - 4x
And I guess for the original question
repeat with x = 1 to the number of cd of this stack
repeat with y = 1 to the number of images of cd x
put the short name of img y of cd x into tName
put char -3 to -1 of tName into tExt
export image 1 to file tName as tExt
etc.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!