I came up with a non-paschal mystery.
Her is a script, that staggers the open Script Editor Windows:
Code: Select all
put the windows into WindowList
filter WindowList with "revNewScriptEditor*"
repeat with ii = 1 to the Number of lines in WindowList
get line ii of WindowList
set the Rect of window it to "100,100,1000,600"
put Patt into fld "Find" of window it
set the TopLeft of window it to 50 + (ii - 1) * 10,50 + (ii -1) * 10
end repeat
This script works, If I put it without MouseUp into the message box..
This script does not work, if I put it at the end of a handler A in the stacks's script, or if I put it into an own handler B in the stack's script, that is called by handler A: all script editor windows lie congruently on top of each other.
Thanks in advance
Peter