10.12.4 Upgrade Breaks Safari AppleScript

Originator:bjasper
Number:rdar://30636424 Date Originated:2/21/2017
Status:Open Resolved:
Product:Safari Product Version:10.1
Classification:Serious Bug Reproducible:Yes
 
Area:
Automation

Summary:
Upgrading to 10.12.4 (16E163f) and Safari 10.1 (12603.1.29) is causing simple AppleScripts to fail with error -10000.

Steps to Reproduce:
1. Upgrade to 10.12.4
2. Run this applescript

tell application "Safari"
	get URL of tab 1 of window 1
end tell

3. Get error

Expected Results:
Expecting the URL of 1st tab in 1st window of Safari

Actual Results:
Result:
error "Safari got an error: AppleEvent handler failed." number -10000

Version:
10.12.4 (16E163f)
Safari 10.1 (12603.1.29)

Notes:
I hope this can get fixed quickly. I rely on this for my app and this being broken gives me no usable workarounds.

Configuration:


Attachments:

Comments

This looks fixed in 10.12.4 beta 4 (16E175b) and Safari Version 10.1 (12603.1.30.0.20).


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!