On 10 okt 2013, at 15:26, Christopher Stone < email@hidden> wrote: You've tried repairing permissions?
That's right. Did it several times. Thanks for thinking about my problem and verifying that 10.8.5 by itself is not the culprit.
This is obviously not a scripting problem, but something that has become corrupt. I run these scripts almost every week, and I have done nothing special to my computer (MBP retina). Nothing else appears corrupt, only this.
I have Time Machine backups, but I simply have no idea WHAT to restore.
Since not even path to application "Contacts" works if Contacts is not running, but it DOES work if Contacts IS running, there appears to be something wrong with how the scripting system finds targets? After I quit Contacts and run path to application "Contacts" again, it will again issue Error -10661!
Searching the net tells me that Error -10661 = kLSExecutableIncorrectFormat (Although that appears to be defined in an MacOSX10.6.sdk, and cannot be found in /System or /Library)
So the executable appears to be bad somehow. But despite that, Contacts as an app runs fine!
It is totally weird!
My disk is not partitioned, so there are no duplicate versions of Contacts as far as I now.
But, nevertheless, it appears as if a Mac OS component is pointing to something wrong, but only with this app? I mean, if I do path to application "Preview" there is no problem at all. And similarly, tell application "Numbers" to launch is no problem. Only Contacts has become a problem.
I haven't tried to restore Contacts from Time Machine, since the app "in GUI mode" works normally. Maybe I should attempt a restore? Or maybe not?
I would be grateful if someone thought about this and gave me a good hint at what file in Time Machine I should restore. I am NOT interested in some lame workarounds, such as starting Contacts in another way, since this is not a scripting problem -- it is something that has gone corrupt. But what?
/Harald
|