Re: Invoking an Objective-C method from an Applescript
Re: Invoking an Objective-C method from an Applescript
- Subject: Re: Invoking an Objective-C method from an Applescript
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 22 Aug 2005 12:10:41 -0400
Wild guess: applescript is expecting a carriage return where you have
a linefeed.
On 8/22/05, Robert MacGregor <email@hidden> wrote:
> Hi,
>
> I'm trying to invoke an Objective-C method from a Java method within
> my app using NSAppleScript.:
>
> tell application "CocoaJavaApp"
> call method "msgTest" of class "NSApplication"
> end tell
>
> I get this error:
>
> Java Applescript errors:{
> NSAppleScriptErrorBriefMessage = "Expected end of line but found
> identifier.";
> NSAppleScriptErrorMessage = "Expected end of line but found
> identifier.";
> NSAppleScriptErrorNumber = -2741;
> NSAppleScriptErrorRange = <00000027 00000006 >;
> }
>
> When I invoke the method from within my Applescript app it works. Why?
>
>
> Rob
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden