Watch Me Do or other method for exact pixel coordinate of mouse click (Automator)

automator

Is it possible to specify how a mouse click point is recorded or processed in Watch Me Do?

had thought it was exact pixel position recorded but it seems that in a safari browser it is relative to the page scroll…

Is there another way to simulate actions clicking in exact locations (irrespectivec of browser scrollbar)?

Specifically, I would prefer a non-third party tool solution – using Automator if possible.

Best Answer

Automator can ‘Run AppleScript’, and you can click at a coordinate using AppleScript:

tell application "System Events"
  click at {123,456}
end tell

How do I make the mouse click at current location using AppleScript?