Hello, I would greatly appreciate if someone helps me. I use PDF Expert (and MS Word) quite heavily, often with several dozens of files open (all in TABs in PDF Expert and separate windows in WORD). The information on which files are currently open and even the order in which the files were open (ie position of TABs) is highly informative for brainstorming. Thus, I would like to generate a sort of "playlist" file that can be later accessed to open the PDF/WORD files previously opened by a simple double click. It will be similar to "Save all open tabs" function available in modern web browsers. I requested for such functionality to the developers of my frequently used applications but so far no luck, so I thought Keyboard Maestro could be an alternative path to the solution.
Thanks,
This is doable using KM (and maybe some scripting), but it is not simple.
I have developed similar systems for managing large number of open tabs/windows in a browser.
Here are the broad strokes for design of similar system for app windows/tabs:
- Get a list of all open tabs and windows
- Get the window name, tab number/ID, window number/ID
- This will probably require an AppleScript, especially to get multiple tabs in one window
- There may be some apps that this will be a challenge to do
- Store in a KM global variable
- Display list for selection using the KM Prompt With List action
- Select document to display using incremental-search
- Display the selected document
I can see three Macros that you might need:
- Get a list of all open tabs and windows (
#
1 above) to build/rebuild a new list; and then call a sub-macro (below) to Display - Macro/Sub-Macro to just Display list and select doc to display
- Remove selected documents from list
HTH.
Thank you very much for sharing your expertise. Although I cannot compose such macros at this point, your suggestions and guidance gave me an important lesson: divide and conquer. I will look into more information in each area that you suggested. Thanks.
1 Like