Thanks Chris,
I have some programming experience, but really not a whole lot. I come more from a background of an electrical and systems engineer. But I certainly aspire to the idea that implementing a solid, foolproof solution.
But the fact I could whip together the script to do exactly what I wanted (albeit, perhaps slower, more prone to race conditions, “not commercial ready") underscores the beauty of Keyboard Maestro.
My current script makes composing a fast email 100x better than the old way of opening Gmail: clicking compose; getting a little window; needing to reposition; etc. I almost enjoy the fact that it takes 6 seconds to open the window because I get to watch KM elegantly dance around Google’s Gmail dysfunction, with all the effort required to bring that compose window up exactly where I want it.
I think what I find most impressive is that KM provides so many potential solution angles for all those essential applications that I have used over the years, day in and day out - applications where I have gone onto forums desperate to get the author to make some minor change that would make my daily life 100% easier, only to have the requests ignored because they were swamped swamped or the request “not mainstream enough”. But now, none of that matters anymore. Using KM, I can fix it myself.
Anyway, as for a tighter script to get my compose window going, I’ll give that shell script and AppleScript a shot, Better is always… better, but at least I’m not desperate for a fix.