• 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
Re: AppleScript and error messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript and error messages


  • Subject: Re: AppleScript and error messages
  • From: Itrat Khan <email@hidden>
  • Date: Sun, 12 Aug 2001 17:11:49 -0400

On Monday, August 6, 2001, at 08:32 PM, Eric Scharff wrote:

However, I am getting odd error messages when I run things from
within ProjectBuilder. They look like NSLog messages but they
aren't coming from my code. Every time I run a script (probably
every time an AppleEvent gets generated by the Script Editor) I
get a message like this:
Aug 06 18:27:25 MyProj[336] _NSMacOSTypeFromString(): string
'(null)' is not exactly 4 characters long.

I haven't seen this error myself, but try checking your AppleEventCodes in your script suite definition file (and if you've written any commands, check AppleEventClassCodes, too). Perhaps you've forgotten to set a value in one of them, which is why the application complains about a (null) string. Both your classes and your script suite itself must have valid AppleEventCodes.

You can also check the spelling of your keys; maybe you've misspelled AppleEventCode somewhere, resulting in a null value for that key.

You can make writing script suite definitions easier by selecting a Plist definition from the inspector. This automatically fills in new siblings or children with the appropriate keys, so you don't accidentally forget to include or misspell a required key.

..........................................
Itrat Khan
http://www.itrat.net


References: 
 >AppleScript and error messages (From: Eric Scharff <email@hidden>)

  • Prev by Date: Localizable strings & attributes
  • Next by Date: Re: Newbie Window/Scrolling Question
  • Previous by thread: AppleScript and error messages
  • Next by thread: How to make NSButton not invert (gray) when tracking mouse?
  • Index(es):
    • Date
    • Thread