i am a big fan of this forum and itās my first post here!
I was wondering if thereās a way for keyboardmaestro to āwatchā the urlās in safari/ chrome etc. and if a certain websites loads, then an action is triggered ?
Letās say for example (a real life scenario here) that I would like to be reminded to get insurance on all my eBay shipment orders to my clients, but just the ones that contain electronics - so I thought if I received a text alert, like the one that KM has built in, would be very helpful.
There is no trigger for that. However it is likely the title of the window will change each time the URL changes, so potentially you could trigger on the window changing title and then check the URL. Iām not really sure how you would detect that it was an ebay purchase of electronics. You could probably avoid repeating the notification if the last notification was relatively recent (five minutes) on the assumption youāll not have forgotten yet.
so when my browser Safari sees that I just accessed https://www.ups.com/gb/en/Home.page , an alert shows up on my desktop with something along the lines of āremember to get insurance for electronic itemsā.
To avoid false positives refine the Title Condition ("UPS") to your needs, e.g. "Home: UPS" will work with the URL you have provided. (But not necesserily with other sub-pages on the UPS site.)
To get the window titles you can use an AppleScript like this:
tell application "Safari"
windows
end tell
(Most of the times it should also correspond to what you see in the tab title.)
Slightly off-topic - are any of you guys working in automatics/robotics professionally or is KM just a hobby? I have to admit that there is something really satisfying when you find a way to automate tasks like this
Since this was your first post in this forum, here a hint for future posts:
I could only write the macro because you gave some detailed and real-world information in post #4. Providing such information already in post #1 can greatly help to get an answer more quickly