Setting context from a script
Is there a way to set the context from a script without loading a layout? I must be missing it if there is.
I had a script that wouldn't Find or Sort correctly (or at all) from a layout for one table, because part of the script operated on fields from a different table.
Freezing the screen and loading a layout from the table that the script operated on was the only way it would work.
Just seems like there would be a "Set ..." script step to do that.
Is there a sure-fire way to obtain context from a script?