In Applescript, how can I correctly obtain values for a process window that is the not the front window?
You could specify a different window, e.g. second window; however, it will do you no good to specify a different window as System Events can only send a keystroke or key code to what's frontmost.