I am convinced I had the following script working in Preview to
position and set the size of the frontmost window
Preview is not scriptable. To find out whether an application is
scriptable, drag its icon onto the Script Editor icon; if it is
scriptable, Script Editor will open its dictionary. Otherwise, Script
Editor will tell you that it is not scriptable.