Re: scriptSuite error in app that was fine in Panther
Re: scriptSuite error in app that was fine in Panther
- Subject: Re: scriptSuite error in app that was fine in Panther
- From: Don Briggs <email@hidden>
- Date: Mon, 25 Jul 2005 09:08:42 -0500
Hello, Seth
Try changing all the 4-Char codes that YOU declare to include at
least one upper-case character, e.g.,
'dors' -> 'Dors'
'mins' -> 'Mins'
Apple reserves the space of all-lower-case 4-Char codes.
Perhaps Tiger now conflicts with one of yours.
Also, the list
email@hidden
focusses on just such issues, and follow-up questions might well go
there.
All best
Don
On Jul 24, 2005, at 10:10 PM, Seth Delackner wrote:
An App I wrote ages ago nolonger functions in Tiger, yet it hasn't
changed at all. The nib has a combo box whose nib on load has
applescript attached to it, so I tried changing that code to just
an empty function:
on awake from nib theObject
end awake from nib
And it still gives the same error:
2005-07-25 10:52:35.571 iWake[12756] Error converting apple event
to script command: -1700
2005-07-25 10:52:35.571 iWake[12756] Original event:
<NSAppleEventDescriptor: 'core'\'getd'{ '----':'obj '{ 'form':'ID
', 'want':0x00000000, 'seld':2, 'from':'obj '{ 'form':'ID ',
'want':0x00000000, 'seld':1, 'from':''null''() } }, &'csig':65536 }
2005-07-25 10:52:35.571 iWake[12756] Expected type: 'obj '
2005-07-25 10:52:35.572 iWake[12756] Offending object
descriptor: <NSAppleEventDescriptor: 'obj '{ 'form':'ID ', 'want':
0x00000000, 'seld':2, 'from':'obj '{ 'form':'ID ', 'want':
0x00000000, 'seld':1, 'from':''null''() } }
, so I think my scriptSuite is broken, but my scriptSuite is
extremely minimal (see below). I then recreated my scriptSuite
from scratch as an XML version with plist editor, and it still is
not happy. I dunno.
{
"Name" = "iWake";
"AppleEventCode" = "iWak";
"Classes" = {
"NSApplication" = {
"AppleEventCode" = "wApp";
"Superclass" = "NSCoreSuite.NSApplication";
"SupportedCommands" = {
"iWake.SleepInMinutes" = "sleepInMinutes:";
};
};
};
"Commands" = {
"SleepInMinutes" = {
"CommandClass" = "NSScriptCommand";
"AppleEventCode" = dors;
"Arguments" = {
"Minutes" = {
"Type" = "NSNumber";
"AppleEventCode" = "mins";
};
};
};
};
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden