Thanks to KM11, we no longer need AppleScript to press dialog buttons.
This will Open in Preview:
This can be helpful when trying to script for UI interaction:
Assuming the inital state is that the Save As: field is focused, you can tab to the Search field:
2 Likes