Relative positioning of window off screen

I have an existing action that moves a specific app's window nearly off screen - my laptop's resolution is 1440x900, and I'm moving the window to 1439,899).

This works well until the resolution of my laptop changes (say to 1650x1050). I read about the SCREEN function but can't figure out how to get it to position a window in the bottom righthand corner like my hardcoded version does.

Is this doable? Or, barring that, is there a way for me to get the current resolution so I can use if/else?

Thanks!
Neil

Use SCREEN(Main,Right)-1 and SCREEN(Main,Bottom)-1.

Awesome, thank you!