Closed ianks closed 4 years ago
@ianks Sorry, I'm having a really hard time understanding what you're trying to accomplish. Can you explain it in high-level terms without using any Mjolnir terminology?
I'm essentially just trying to minimize a window, and then have it focus to another window after. That way, I can keep minimizing windows without having to manually refocus windows with my mouse. i.e. repeatedly pressing HYPER j
will close all visible windows one by one.
@ianks One option is you can just minimize all windows simultaneously, since you have an array of visible windows that you can iterate and act on.
Stale issue message
I am attempting to write a function which will:
So far I seem to have it so it minimizes the window then attempts to focuse the first visible window(which seems to be indexed at [1]?). Anywho, my issue is that it doesn't actually allow me to minimize the window. My guess is windows are focus-able the way I would like them to be.
Should I be going about this another way, maybe running
launchforfocus()
on an Application? If so, how can I coerce the userdata object fromwindow.application()
into a string?Thank so much! Having a swell time with Mjolnir :beers: