• 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
AppleEvents, CGIs, Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleEvents, CGIs, Cocoa


  • Subject: AppleEvents, CGIs, Cocoa
  • From: Chilton Webb <email@hidden>
  • Date: Sat, 26 Jan 2002 11:57:22 -0600

Here's a brain thumper...

I have a Cocoa app running a tool with NSTask. No problems. I have a Carbon app that talks to the Cocoa app via AppleEvents. No problems.

I wrote a tool that sends these events to the Cocoa app so that I could ultimately run it as a CGI with the same interface as the Carbon app. Problem. If I run it from the terminal, all is fine. If I run it from the server, I get the 500 Server Misconfiguration error. Any idea why?

My 'offthetopofmyhead' guess is that perhaps there's a mechanism in place to prevent CGIs from sending and receiving appleEvents with other apps without the same permissions level, but I tried changing permissions and had no luck.

And as a little more info, I even stripped out only the part of the code that actually sends the appleEvent, and that's the part Apache is finding offensive. If I send the event, I get that error (and the event does not arrive), if I do not send the event, but construct and deconstruct the AE, no problems.

Anyone got a clue on this one? I searched Apple's site for anything regarding this, and came up empty. Searched the mailing list archives and came up empty. Called Steve and he asked me to quit bugging him during breakfast.

-Chilton


  • Follow-Ups:
    • Re: AppleEvents, CGIs, Cocoa
      • From: email@hidden
  • Prev by Date: Re: How do I make NSData from cabron-Handle
  • Next by Date: theoretical idea - would this work?
  • Previous by thread: Re: App and custom icon.
  • Next by thread: Re: AppleEvents, CGIs, Cocoa
  • Index(es):
    • Date
    • Thread