It should work for a right-side Dock if, as mentioned, you compare item 1 of the coordinates list to the screen width.
Remember, the coordinates are the current top-left corner of the Dock -- it's the x coordinate of a right-side Dock that changes, the y of a bottom-edge Dock.
Which is why I thought a left-edge Dock would be difficult -- how can the left edge of something jammed to the left change? But it turns out that the Dock doesn't "expand" from it's hidden position, it slides in -- so a hidden left-edge Dock's left edge is beyond the edge of the screen.
So for my current display arrangement, Main display on the right and the Dock on the left-edge of the left display:
...the working "Pause" is:
So I've found out that a) it is possible, in fact it's easy, and b) the Dock on the left does my head in even more than the Dock on the right... Every day's a learning day!


