Saturday, November 18, 2017

#1 2012-10-09 01:14:22 pm

2ndSegment
Member
Registered: 2008-10-22
Posts: 16

AppleScript Error -10664…Anyone know it?

I've searched high and low for this one, but can't get a lead. Anyone able to point me in the right direction?

TIA

Offline

 

#2 2012-10-09 03:50:09 pm

DJ Bazzie Wazzie
Member
From:: the Netherlands
Registered: 2004-10-20
Posts: 2724
Website

Re: AppleScript Error -10664…Anyone know it?

Would be useful if you can tell us a bit more. Because it's not a standard AS error it's probably in third party software.

The error number itself doesn't say much because I can easily trigger it myself

Applescript:

run script a

script a
   error -10644
end script

Offline

 

#3 2012-10-09 06:17:07 pm

2ndSegment
Member
Registered: 2008-10-22
Posts: 16

Re: AppleScript Error -10664…Anyone know it?

Thanks for responding.

When my program launches, it asks the Calendar app for a list of calendars and then loads the list in a combo box. On this customer's machine (same app version and OS version as mine), Calendar does not launch in response to the query and the error is generated.

The workaround for her was to simply launch Calendar first and then launch my app. Everything works fine then. This is isolated to her machine only (hundreds of other users and no complaints thus far) and I can't reproduce the problem.

Could this be a result of the name change from "iCal" to "Calendar" with Mountain Lion?

Thanks.

Offline

 

#4 2012-10-09 08:49:49 pm

DJ Bazzie Wazzie
Member
From:: the Netherlands
Registered: 2004-10-20
Posts: 2724
Website

Re: AppleScript Error -10664…Anyone know it?

Just a thought: Does the same error applies when you wrap the code in 'using terms from' block?

Sorry for such a poor help but my practical experience in AS-Studio ends in Snow Leopard. Since the error happens in Mountain Lion I can't be much of a help I'm afraid.

Offline

 

#5 2012-10-09 10:15:08 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5175

Re: AppleScript Error -10664…Anyone know it?

What is the text of the error?

As DJ suggested, error numbers starting with -10000 are application errors.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#6 2012-10-10 02:01:38 pm

2ndSegment
Member
Registered: 2008-10-22
Posts: 16

Re: AppleScript Error -10664…Anyone know it?

"AppleScript Error"
"An error of type -10664 has occurred. (-10664)"

Shane; Not much help there I'm afraid.

DJ; As far as any testing of code, I really can't because I can't reproduce the error on my machine and I don't have access to the problem machine.

This isn't a huge deal for me, but I've never been unable to find anything on an error code before. Obviously there is a lot under the hood in AppleScript that I don't understand. The only thing I find suspect is the app name change from "iCal" to "Calendar". When I reopen my project, "iCal" is automagically replaced by "Calendar" in all the Tells. I'm still compiling under Snow Leopard myself using Xcode 3.2.6.

Thanks for the help.

Offline

 

#7 2012-10-10 05:06:34 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5175

Re: AppleScript Error -10664…Anyone know it?

So what if you compile with:

Applescript:

tell application id "com.apple.iCal"

Because the id hasn't changed with the new name. That will at least rule in or out whether the name change is the culprit.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#8 2012-10-10 07:47:16 pm

2ndSegment
Member
Registered: 2008-10-22
Posts: 16

Re: AppleScript Error -10664…Anyone know it?

Thanks Shane. I'll see if I can get the user to try a new build using the id and report back.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)