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

AppleScript and error messages


  • Subject: AppleScript and error messages
  • From: Eric Scharff <email@hidden>
  • Date: Mon, 6 Aug 2001 17:32:20 -0700 (PDT)

To experiment with AppleScript, I created a simple ObjC Cocoa
document-based application (a shopping list) and added
AppleScript support through an appropriate MyProj.scriptSuite
and English.lproj/MyProj.scriptTerminology, After fixing a
number of syntax errors in the script files, I got everything
working with basically no extra code! As a former Classic and
current Cocoa programmer, I have even less desire to ever go
back. :)

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.

The scripts still seem to run properly, though.

Anyone know what I'm doing wrong? Is there some
applescript-specific method I've failed to implement?

Thanks,

-Eric
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


  • Follow-Ups:
    • Re: AppleScript and error messages
      • From: Itrat Khan <email@hidden>
  • Prev by Date: Problem solved (was Framework Hell)
  • Next by Date: NSNotification vs message callback?
  • Previous by thread: Problem solved (was Framework Hell)
  • Next by thread: Re: AppleScript and error messages
  • Index(es):
    • Date
    • Thread