How to archive unused KBM macros?

From what you wrote further down, I gather that you mean MacOS "spaces" rather than, say, tab groups. I'll come back to that.

How much automation you want is a point to consider, and when you would like it to run. Here are two examples.

  1. A macro to save the URLs and titles of all currently open tabs, and then close them. It could run at the end of your day (scheduled for a regular time, or run before shutdown or daily backup procedures)
  2. A macro to save the URL and title of just the currently open tab.

How you get the title and URL depends upon your browser, but with KM it is possible (even with Firefox) to get that information. As you probably know, for most browsers, including Chrome, you can use the tokens %FrontBrowserTitle% and %FrontBrowserURL%.

I use Obsidian, which, like this forum, uses Markdown. It follows that I find it convenient to use Markdown's format of [title](URL). So for using tokens in a macro, that is [%FrontBrowserTitle%](%FrontBrowserURL%).

You know more about MacOS spaces than I do (I never have got on with virtual desktops), so I hope you will have more of an idea of how best to identify a space.

Opening a corresponding file (or, say, in Obsidian, a matching note – the same thing) would be straightforward.

The most effective system will be one that is tailored for your preferred way of working, so in this case I think you should just make your own macros from scratch. A search of the forum might still give you ideas, but the only challenge that I can see is the question of "spaces".

I hope that was of some help. I am sure that a number of us will be happy to discuss this all further – but admin might want to split the thread if so. :wink: