I'm trying to write a simple AppleScript to open a certain URL and move and resize the window to the right half of the screen using the (New, I think) menu commands in MacOS but I can't seem to get the correct name of the menu item. It should be Window>Move & Resize>Right but it also includes an icon to show the right side of the screen and I can't work out how to do it.
Thanks for any help
You don't need to include it; just use the "Menu" button in the Select/Activate a Menu Item action, and you can just pick it from the list:
As you can see, the icon isn't included, just the text. This worked fine for me in testing.
-rob.
Hi, welcome to the forum. I expect someone else here could give you advice about how to do it in that way, but you might also like to know (if you didn't already) about KM's Manipulate a Window
action.
I see @griffman has just answered too, so I hope you have something to base any further question on if needed.
CWM Window Right Macro (v11.0.3)
CWM Window Right.kmmacros (11 KB)
This also might be of use but you have a great answer already.