
// Script function: Select an image and change the image name.


// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html

image img

string title = "Image Selection Dialog"
string prompt = "Please select an image."
string label = "Source:"

if ( !GetOneLabeledImageWithPrompt( prompt, title, label, img ) )
Throw( "User pressed cancel." )

SetName(img, "The image that I want!")
 
