I want to build a website specific macro. What I'm looking for is a macro that triggers when the title of a chrome tab contains a specific word. I've seen "Focused window title changes" but it doesn't seem like I could apply a condition for that, right?
Alternatively, it could work when the URL of a crome tab contains a specific string. Does that exist?
Chrome doesn't broadcast to the system when its URLs or (non-frontmost) Tab Titles change, so Keyboard Maestro can't have a trigger that involves those.
You can trigger on changes to the focussed window, but that doesn't help with hidden tabs or windows that are behind window 1.
The best you can do is to have a periodic trigger that scans all the window/tab titles and/or URLs, and to do that you have to know a bit of AppleScript.
thank you! I thought something like that. A periodic trigger does not work here since this is a very time-sensitive thing. I would've to set it to something like "every five seconds" which could then be hard on the CPU i guess.
Anyways, I found another (quite ugly?) way to accomplish that: there is a group which gets active in Chrome and the window title matches a specific pattern. (The target URL has a fixed window title that changes to sth completely different once the trigger gets activated, so we're not in a loophole here. And of course the target window/tab must be active for that.) The actual macro triggers when the focused window's title changes. It will execute an IF THEN action: IF the URL contains this certain piece of string THEN execute the macro. The OR section is just empty.
ATM this works for me and that's fine. Nonetheless, I'm a quite unexperienced user of KM but even for me this looks really bad. Is my solution a CPU intensive one? If someone has a nicer solution I'd be happy to here about it!
Beats me, I don't even know what the OpenAndSavePanelService is. Something related to Open File dialogs I presume. There is a few matches on the web for it, mostly complaining about it using lots of CPU. Another one of Apple’s stellar bugfree services…
I pasted the entries for both processes in one .txt file, the one with QuickLook... starts around line 200. I looked into the output and the only things that stands out to me are the MindNode, Omniplan and Ulysses lines. These apps are not installed on this computer (but they have been on the one that I've been using before).