I really looked up and down lots of questions, here and at "AskDifferent", but could not find a valid answer to this fundamental question:
HOW do you "activate" programatically a menu item that's only visible when the option key is depressed and that hasn't got a shortcut of its own ?
I know how to use:
click menu item "Save as …" ... [or:] perform action of menu item "..." ...
... quite well.
I've also learned about previously-set commands like:
key down option [or:] keystroke "whatever" using option down
But none of these will perform a simple click on a menu item that "regularly" isn't visible.
Admitted, using an existing shortcut like "option shift command s" will "Save as …" as expected:
keystroke "s" using {option down, shift down, command down}
(Farther down I was proven wrong by pbell; so here is my latest "simplified" solution:
tell application "System Events" to perform action "AXPress" of menu item ¬
"Arrange in front" of menu "Window" of menu bar item "Window" of ¬
menu bar 1 of application process "Script Editor"
(As I found out by now, this code will do the exact same thing.)