• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
scriptSuite error in app that was fine in Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: scriptSuite error in app that was fine in Panther
      • From: Don Briggs <email@hidden>
  • Prev by Date: Fwd: Problem with japanese systems
  • Next by Date: Re: Re: Threads
  • Previous by thread: Re: PackageMaker question
  • Next by thread: Re: scriptSuite error in app that was fine in Panther
  • Index(es):
    • Date
    • Thread