A swiftDialog option to set the position coordinates of a dialog
Is your feature request related to a problem? Please describe. I sometimes need to set the position of a swiftDialog dialog relative to an app (in an AppleScript or shortcut). Getting the x and y position coordinates of the app is a simple matter, but I am not aware of any options that allow me to set the x and y coordinates of a swiftDialog dialog.
Describe the solution you'd like.
A --positioncoordinates option that accepts the x and y coordinates of the dialog relative to the upper-left corner of the screen. Another approach would be a --bounds option that accepts x1,y1,x2,y2 dialog screen coordinates, but this would be less compatible with shortcuts.
Describe alternatives you've considered.
I looked at the --position and --positionoffset options, but they will not do what I want as far as I can see. They could be made to work if --positionoffset accepted separate x and y offsets, but that's not the case.
Additional context Thanks for swiftDialog.
note to self: preferred implementation would be to augment the existing --position argument to take an xy value.
Looked into whether positioning the dialog into relation to another app window is possible but would require accessibility entitlements. the values are pretty easy to get with osascript