contacts applescript error -1743

Hi,

if we try to add a new contact to the 10.8.2 contacts.app with this extract of a longer expContFromFM2Contacts applescript -


tell application "Contacts"

set newEntry to make new person with properties {first name:"Prename", last name:"Surname"}

end tell


we receive 'Contacts got an error: An error of type -1743 has occurred.'.

Does anyone know what error -1743 means?

We found out that the script works fine with another user - seems to be something regarding rights, sandboxing....don't know.

Maybe infos on -1743 could help.


Thanks in advance.

OS X Mountain Lion (10.8.2)

Posted on Mar 15, 2013 5:13 AM

Reply
1 reply

Apr 8, 2013 8:07 AM in response to phartung

Try this: Go into System Preferences and click on Security & Privacy, then the Privacy tab, then Contacts in the left column. Look for the app/applet that is giving you the error in the right column, and if it is unchecked, then check it.


What happens is that the first time the script is run, the user gets asked if they will allow the app to access their contacts. If they click "Don't Allow," you will get error -1743 and the app/applet will appear in the Privacy->Contacts as unchecked.


Also, there is a link here that may be relevant for certain kinds of applets, having to do with bundle identifiers, which wasn't an issue for me because I was running the AppleScript from within FileMaker Pro, so that was the app that needed to be checked in the Privacy list.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

contacts applescript error -1743

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.