I have a macro that is using "Wait for Safari to Finish Loading" and "Execute Javascript in Safari" actions and was working fine for a long time, until some time ago (not sure exactly when it stopped working, I haven't used it in a few weeks).
The Wait action never returns and the Execute action doesn't actually execute the Javascript. I double checked that the permissions in Accessibility are enabled (I also reset the permissions and set them again).
I'm on a MacBook Pro M1 using the latest version of macOS Ventura (13.5.2).
Does anyone have any idea why these actions stopped working?
Thanks,
Marius
EDIT: Attached macro to reproduce the issue.
SampleMacro.kmmacros (2.4 KB)
Howdy, welcome to the forum! As you might have already figured out, this is a great community full of people who love to help.
If possible, post the macro itself so we can take a look at it and see what might be going wrong. As one of the moderators likes to say, "If we're not testing we're guessing, and guessing often wastes people's valuable time".
If you need help on how to post the macro, just let us know and we can walk you through it.
If you haven’t had the opportunity to read this tutorial, I highly recommend it. It will help you get the most help for your question.
Tip: How Do I Get The Best Answer in the Shortest Time?
-Chris
Thanks for your reply.
I've attached the simplest macro to reproduce this. The Javascript in the Execute action works fine in the Safari console, but nothing happens when I run it in KM. It also seems like "Wait for Safari to Finish Loading" never actually returns.
Marius
SampleMacro.kmmacros (2.4 KB)
Can you confirm that Safari itself still allows JavaScript from Apple Events?
Screenshot (click to expand/collapse)
Yes, I also unchecked then checked the boxes without any luck.
@cdthomer Are you able to reproduce this issue by any chance and are you on the latest macOS version? I'm trying to figure out if this is caused by some recent changes by Apple or it's something specific to my system.
Thanks again,
Marius