open the window off-screen, at -2000 on x, move to the correct layout, do your finds, adjust size to fit etc, bring the window at 0 on x, halt script.
Tried that, but it didn't work. any other ideas?
modify your original script to run only if the window name is <> "Temp".
When you open your window, call it temp.
Then rename it.
I think what Siplus meant to say was on your script for the OnLayoutEnter script trigger to add something along the lines of the following:
If you insert that at the top of your script it will only run when the Window Name = Original Window.
Obviously change original window to whatever you'd like.
--Edit changed from Halt to Exit
Thank you siplus and sreese I will try those once kids are in bed. really appreciate the input.
If[Get(windowName) >< $OriginalWindowName]
It seems to work but should I be worried about anything?
Exit script is 99% of times better than Halt script. There is a 1% of cases when Exit won't cut it but Halt will.
As a general principle, you should put an override in your triggered scripts to allow you to turn them off in situations like this. For example, I use a global variable in this fashion:
If [ IsEmpty ( $$noTrigger )
(do triggered stuff here)
at the head of any triggered script. Then, I have a script to open a new window that looks like this:
Set Variable [ $$noTrigger ; 1 ]
New Window [ (variety of parameters) ]
Set Variable [ $$noTrigger ; "" ]
In this way, you call the New Window script instead of explicitly opening a new window. It will always prevent any Script Trigger from firing.
Just a thought and question I suppose. Why do you use that fashion of a script instead of the other way where it would be like:
if [ not isEmpty ( $$noTrigger) ]
Exit Script 
My preference is towards the one listed above because then all of my lines of code are not indented and I can quickly copy and paste the code chunk into every script that may need it.
The only real reason is because sometimes you do want some actions to process anyway. But you're right; if I wanted to suppress every action in the script then the method you showed would be a better way to do it.
I can't thank you guys enough. it all works well and I have learnt a hole new level of scripting. the idea that I can just change a variable and exit a scrip is great. This was a really good discussion, It was like hanging around with the big boys in the playground
It looks like you have resolved the issue already, but another approach you could use is to open the new window via a Go to Related Record step instead of using New Window. This gives you the opportunity to specify (1) the layout you want to go to, and (2) that you want this to be in a new window. This approach overcomes the brief mirroring problem that is inherent in New Window.