Hi! I'm getting inconsistent results in a bunch of my macros. I've narrowed it to the use of the %FinderSelection% %FinderSelections% and %FinderInsertionLocation% tokens.
This simple test macro is giving me inconsistent results. Sometimes it will get both the selected item(s) and insertion location, and sometimes it will get just the selected item(s) and sometimes it will get neither.
Peter is aware of issues with the %FinderSelections% token, I reported it yesterday. The other tokens may be a related issue.
Long story short, he made adjustments to the underlying code that those tokens use to prevent it from running for longer than 0.5 seconds. So with a large number of items, it doesn’t finish completing before it times out. He may adjust it with a future update.
Yes, there are two different issues in the FinderSelects.
One issue is a problem with Pre-Ventura systems where the results are intermittent. This is resolved for the next version.
One issue is a limitation on how long the token is allowed to take. I've increased it from 0.6 to 0.9 seconds, but realistically the token needs to be more or less instant, so if you want to deal with very long lists, then use the Finders Selection collection.
Yes, it's showing on KM, but sometimes it goes away for some reason. That screenshot was probably when it went away.
But the issue is there even when Safari is the front window and in version 10 it was always working.
I tried your suggestion of using the %SafariURL% directly on the prompt and it seems to be working now. Let's see if it works from now on. Still, there's something with version 11 that's causing this. Maybe related to macOS as well, because it seems that version 11 with older versions of the macOS is the issue, not just version 11 itself.
Thanks for sharing that tip.
My issue now is that I can see the url on the action itself. When I try the macro, it doesn't work. It's probably related to the issue reported by the OP, because this macro was working prior to upgrading to version 11