Woke up this morning after installing the 1st public beta of OS 10.11.5.
Tried one of my Macros but it was not outputting the Safari Title?
I have quickly fixed this using a small apple script but my question is why this is not working any longer?
Seems a weird bug to have. Maybe Apple’s security people have gone insane. The title is got from simply JavaScript document.title.
Does this AppleScript work:
tell application "Safari"
if it is running then
tell document 1
set r to do JavaScript "document.title"
if r is missing value then
set r to ""
end if
end tell
else
set r to "Not Running"
end if
end tell
r
Is that something you did, or something Apple did? If the latter, yes, you should report it as a bug so they know that it causes people problems, though likely they will just come back with “broken as designed”.
Yep, I had similar problem where I could no longer detect Safari field names. All I had to do is goto Safari>Developer menu and check the ‘Allow javascript from Apple events’ and I’m back in business.
All of a sudden I'm having a problem of the "SafariTitle" token not working. Last week, got a JavaScript error message (see attached), and now the macro to paste the Safari Title is not working at all.
I tried the AppleScript script that Peter posted above, but that didn't work either.
I'll try restarting the KM Engine once more. Any other suggestions?
<img