scriptSuite error in app that was fine in Panther
scriptSuite error in app that was fine in Panther
- Subject: scriptSuite error in app that was fine in Panther
- From: Seth Delackner <email@hidden>
- Date: Mon, 25 Jul 2005 03:10:51 +0000
- Mail-followup-to: email@hidden
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