• 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: Calling AppleScript from a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling AppleScript from a Cocoa app


  • Subject: Re: Calling AppleScript from a Cocoa app
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 6 Sep 2005 10:11:20 +0200

Hi,

hope this link helps:

http://weblog.scifihifi.com/2004/04/15/calling-applescript-handlers- from-cocoa

GV



Am 06.09.2005 um 09:29 schrieb Phil:

Does anyone have suggestions / pointers re: calling AppleScript from Cocoa apps? This is an area that Apple docs don't seem to cover in a way that I am finding helpful.

Specifically, I need to call AppleScript code (both with and without parameters) from a Cocoa app preferably by calling functions stored in a central script. In playing around with some code found on the web, it appears to be the core of what is needed: no problem getting a sample function to display a dialog with a passed parameter. However, when the same code is called to pass a parameter to a different function in the same script, it fails with a -1708 error which seems to mean 'the AppleEvent was not handled by any handler'... which I find clear as mud since the function executes correctly via Script Editor.




_______________________________________________ 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
  • Follow-Ups:
    • Re: Calling AppleScript from a Cocoa app
      • From: Phil <email@hidden>
References: 
 >Calling AppleScript from a Cocoa app (From: Phil <email@hidden>)

  • Prev by Date: [ANN] HOM paper available
  • Next by Date: Custom View in a data cell
  • Previous by thread: Calling AppleScript from a Cocoa app
  • Next by thread: Re: Calling AppleScript from a Cocoa app
  • Index(es):
    • Date
    • Thread