Contacts won’t launch
Try running the following script in AppleScript editor:
If you get an error message back from the AppleScript editor mentioning error number -10661 has occurred, then you’re going to need the following procedure.
The problem stems from the launch services database being out of sync and not knowing which app to launch when it gets passed “Contacts” as input. To solve that, we’re going to do a couple of things in Terminal (roll up your sleeves!).
First up, we’re going to ensure that the locate database is loaded. We’re going to need that to find the address of the Launch Services database, so
1. Open Terminal.app (/Applications/Utilities/Terminal.app) and type
In the second case or once you’ve got your locate database loaded and working, copy the address returned to the clipboard by dragging across the whole thing to highlight it and hitting ‘command-C’ on your keyboard.
Still with Terminal active, hit ‘command-V’ to paste that address at the prompt. Hit the spacebar once, and then complete the command by adding
After the prompt returns, go test that AppleScript again. Hopefully, Contacts fires up without issue.🙂
*Thanks go to Yvan and Deivy on the AppleScript users list for identifying and solving this problem.