Re: Sierra 10.12.4 and JavaScript by AppleEvents in Safari
Re: Sierra 10.12.4 and JavaScript by AppleEvents in Safari
- Subject: Re: Sierra 10.12.4 and JavaScript by AppleEvents in Safari
- From: Christopher Stone <email@hidden>
- Date: Fri, 31 Mar 2017 02:03:31 -0500
On 03/31/2017, at 01:13, 2551phil <email@hidden> wrote:
Well, this still works in Safari 10.1, on El Capitan and Sierra beta:
tell application "Safari" tell front window's current tab set f to do _javascript_ "document.URL;" end tell end tell
So, might be something to do with the actual JS in your script rather than the do _javascript_ command itself.
It's possible that you're right.
But – code that has worked for a decade (the generic link scraper) is now broken.
The XPath code in the Google link scraper has been working perfectly for over a year.
It all works perfectly in Safari 10.0.3 (12602.4.8) on macOS 10.12.3.
Apple has clearly broken something.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden