Try moving the Window to front after the repeat loop

on openWindows
  repeat with i = 1 to 3
    myWindowName = "Window"&i
    window(myWindowName).open()
  end repeat
  moveToFrontWindow 1
end

on moveToFrontWindow winPos
  --put the windowList
  the windowList[winPos].moveToFront()
end

regards
------------------------------------------
Ramesh CT
http://www.lingoman.net/
------------------------------------------

>>>
I am launching 3 MIAWS at the same coordinates.
I would like to have the first MIAW that is launched to be in front
of the two others.

I have a script basicly like this:

repeat with i = 1 to 3
  myWindowName = "Window"&i
  window(myWindowName).open()
  if (i = 1) then
    window(myWindowName).moveToFront()
  else
    window(myWindowName).moveToBack()
  end if
end repeat


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to