Re: Calling AppleScript from a Cocoa app
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