SD7 (7A25) Error Accessing Contacts

This script works fine in SD6, but fails in SD7 Beta:

-- Script Debugger 7 7.0 (7A25) on macOS 10.12.6
-- Script Debugger 6.0.7 (6A217) on macOS 10.12.6

tell application "Contacts"
  set theEmails to (every email whose value contains "gmail") of every person
  
  -->SD7:  Contacts got an error: An error of type -1743 has occurred.
  -->SD6:  Works fine
end tell

Have you authorized Script Debugger 7 to access contacts? Since v7 has its own bundle ID, it’s treated as a different app from v6.

1 Like

Yep, that fixed it.

(Discourse Forum Issue: this is forcing me to add a min of 20 chars. Can you please make it less? Sometimes only a “yes” or “no” following a quote is all that is needed in a reply.)