
// Script function: Select three images and rename them.


// 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 img1, img2, img3
string title = "Image Selection Dialog"
string prompt = "Please select three images." // the same image can be selected for the three
string label1 = "Source 1:"
string label2 = "Source 2:"
string label3 = "Source 3:"

if ( !GetThreeLabeledImagesWithPrompt( prompt, title, label1, img1, label2, img2, label3, img3 ) )
 Throw( "User pressed cancel." )

SetName(IMG1, "First selected image")
SetName(IMG2, "Second selected image")
SetName(IMG3, "Third selected image")


