• 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: Matt Neuburg <email@hidden>
  • Date: Tue, 06 Sep 2005 08:27:09 -0700

On Tue, 6 Sep 2005 03:29:07 -0400, Phil <email@hidden> said:
>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.

Could you be specific? Show the AppleScript code you'd like to call from
Obj-C. 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

  • Follow-Ups:
    • Re: Calling AppleScript from a Cocoa app
      • From: Phil <email@hidden>
  • Prev by Date: Re: Core Data : calling validation in awakeFromInsert problem ?
  • Next by Date: Re: Calling AppleScript from a Cocoa app
  • Previous by thread: Re: Calling AppleScript from a Cocoa app
  • Next by thread: Re: Calling AppleScript from a Cocoa app
  • Index(es):
    • Date
    • Thread