• 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: How to get scripting to work without NSApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get scripting to work without NSApplication


  • Subject: Re: How to get scripting to work without NSApplication
  • From: "Neal A. Crocker" <email@hidden>
  • Date: Tue, 11 Dec 2001 00:09:28 -0800

Date: Mon, 10 Dec 2001 21:35:07 -0800
Subject: Re: How to get scripting to work without NSApplication
From: Jason Bobier <email@hidden>
To: email@hidden

I gave that a try, but it didn't seem to recognize that the app would
accept an appleevent. I'm guessing that it requires the scriptSuite
plist to be correct.

Did you add the NSAppleScriptEnabled setting (with string value YES) to your application settings in your project?

Neal.

P.S., I've actually used the NSAppleEventManager class to register a handler for a nonsensical event ("foo bar ") in a Cocoa application and when I send this nonsensical event from a script to my Cocoa app, the handler is invoked. It may be that the "aevtquit" event that you are interested in is special somehow. You could test this by trying to register for a nonsensical event and sending it from a script to your app as I did. If it doesn't work, I would guess you're using NSAppleEventManger wrong. If you could post or mail the part of your code that deals with registration and the handler code, I could take a look at it. Also, I could post my test project to my IDisk web page for you to take a look at.


  • Prev by Date: Re: How to get scripting to work without NSApplication
  • Next by Date: Re: cocoa-dev digest, Vol 1 #956 - 15 msgs
  • Previous by thread: Re: How to get scripting to work without NSApplication
  • Next by thread: Re: How to get scripting to work without NSApplication
  • Index(es):
    • Date
    • Thread