• 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: setEventHandler not working! (AppleScript related)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setEventHandler not working! (AppleScript related)


  • Subject: Re: setEventHandler not working! (AppleScript related)
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 21 Feb 2005 10:36:21 -0800

On Mon, 21 Feb 2005 11:15:40 -0500, Daniel Morrow <email@hidden> said:
>Is there any kind of AppleEvent debugging or
>something?

Yes, you can set environment variables AEDebug, AEDebugSends, and
AEDebugReceives (as explained in my book). This will show you very
explicitly what Apple event your app is receiving.

The "can't continue" message (as explained in my book) usually means that a
command is being sent to an app that can't respond to it:

tell application "Finder" to zork()
-- Finder got an error: Can't continue zork.

This suggests you still have not set up your app correctly. The fact that
you couldn't get this to work with scriptSuite and scriptTerminology is
suggestive -- actually, it is *lot* easier to use an sdef at this point, and
this is the Way Of The Future, so get used to it. I would suggest you start
over and use an sdef. There is no need for all that sharedAppleEventManager
stuff; Cocoa scripting takes care of all that for you. There are several
good tutorials out there on how to make your app scriptable.

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
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

  • Prev by Date: Why is copyWithZone: being called?
  • Next by Date: encodeArrayOfObjCType: (with key?)
  • Previous by thread: setEventHandler not working! (AppleScript related)
  • Next by thread: is there a sample project for an AppleScriptable Cocoa app?
  • Index(es):
    • Date
    • Thread