Thanks Chris,
I really like that concept. However, other stuff you wrote suggests you might be making it harder than I think it needs to be. (And maybe that's my problem, too.)
That sounds like reinventing AltTab or Contexts. In my current thinking and design, I am emphatically NOT interested in listing every open window of every open app. To me, that defeats the point of having multiple Desktop Workspaces (DTWS).
Unfortunately, that is what most of the "Desktop Managers" out there focus on. But listing open windows does not work for me, that's why I put related windows from different apps into separate Desktops. Very often those are the same apps, just open on different files, different folders, different web pages. So systems that support switching from app to app easily are useless as well.
I've seen myself have 80 to 100 windows open, Notes, TextEdit, Finder, Browser with several tabs, Preview, maybe Terminal, and who knows what else for each of a dozen or more different ongoing projects or tasks. Listing all the windows is not helpful. Listing all the apps is not helpful. That's why I put them in separate Desktops.
The challenge for me at the moment is how to I assign a name to each DTWS and then list all the names. CurrentKey Stats, which is my inspiration, uses invisible windows, where the window title is the Desktop name. I'm trying to recreate that so I have something workable and maintainable that works for OSX versions newer than Mojave, now that CKS has been abandoned.
Also, I don't care if the windows are invisible. In fact an unobtrusive window that consists of only a titlebar, that I can position at the top or bottom of the screen, seems like it would be very useful in identifying which Desktop I'm in.
I had hoped, based on Peter's suggestion above, that KBM's HTML Prompt could work, but despite that idea dominating the previous conversation in this thread, it turns out that listing the open KBM HTML Prompt windows in all Desktops is not simple. If other people also have a need for listing open KBM HTML Prompt windows, maybe we can lobby Peter to look into providing that feature.
At this point, I seem to have two options:
- Write my own app that just makes window titlebars and can list them in AppleScript, which is currently beyond me.
- Find a lightweight app that is properly behaved enough and that I don't care to use for its intended purpose, e.g. some ASCII text editor, and dedicate that app to providing my DTWS identifiers.
If you see other alternatives than the above, please suggest something.
The first option is what I was trying to ask for in the OP. I haven't always been clear in my explanations of what I'm looking for. I hope I am clearer here. (I'm certainly wordy, not a good sign.)
As for my second option, Stickies would work as a dedicated, lightweight app to put a name on a Desktop, except that when you reboot, all open Stickies windows open the first Desktop, which adds 20 minutes of moving Stickies around to the reboot process, which makes it painful enough to be useless.
However, when you suggested:
that made me think that a background process that kept track of current names and position could provide data to automate moving all the Stickies after a reboot. That seems like a kludgey patch when other apps do the same thing transparently. I'm currently voting for simplicity.
Notes seems like it will work, except that I already use Notes for other purposes, particularly sharing between my laptop and my iPhone and sharing to-do lists, shopping lists, project lists, etc. with my wife. I suppose I could put all the Desktop names in a folder that I otherwise ignore.
I tried using TextEdit, but I also use TextEdit for other purposes. Also, I've run into a problem that with somewhere around 20 TE windows open, on reboot it doesn't transparently put everything on the original desktops, instead it does the same thing as Stickies, reopening all windows on the same Desktop.
So that's where my thinking is at this point. I'm trying to name 40 Desktops to manage 100 open windows. At least be able to do that, so I have some headroom when I'm using 25 Desktops and 40 windows.
Thanks for your help. It does help to have other people at least thinking about the issues.