◆ Script file: Link
◆ Script function: Name the opened images in order of "the front most, second front most and so on"
◆ Example:
Names of original images
Names of the images after script execution
◆ Re-naming in order: "Image 0" is the most front image, "Image 1" is the second most front image, and so on... , for instance, the images will be re-named as "Image 0 ...", "Image 1" and "Image 2" if three images are opened in total
◆ FindNextImage() in Line 15 returns each image. If the last image is found, the returned image will be
invalid and then the script execution ends. |
◆ Script file: Link
◆ Script function: The same as Case A.1
◆ The execution result is the same as that in Case A.1 even though there is not "showimage (EMcurrent)" in Line 9.
◆ Example:
Names of the images after script execution
|
◆ Script file: Link
◆ Comparing with Case A.2, in this script, an additional line of "showimage(EMcurrent)", in Line15, before "FindNextImage(EMcurrent)" in Line 16 is added.
◆ In this script, the second-most front image of the opened images will be brought to the most-front by "showimage (EMcurrent)", and thus the original most-front image will become to the second-most-front image, and again and again to form an endliessly execution loop.
Example names in the execution process:
Names of the images after script execution
Then, you will need to press "Ctrl+Break" to stop the execution process. |
|