Hi, @me_simon. I'm not entirely clear about your data, but I'm taking a guess:
If so, here is one way:
Download: 01)Get Credentials (@_jims).kmmacros (48 KB)
Macro-Notes
- Macros are always disabled when imported into the Keyboard Maestro Editor.
- The user must ensure the macro is enabled.
- The user must also ensure the macro's parent macro-group is enabled.
System Information
- macOS 13.3.1 (22E772610a)
- Keyboard Maestro v10.2
Just a couple notes:
- Typically you'd want to use local variables in a macro like this. Click here for more information.
- I inserted some Group actions (in red) that you can obviously disable or delete. I inserted those actions using a macro I shared elsewhere on the forum).

