• 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: Invoking an Objective-C method from an Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Invoking an Objective-C method from an Applescript
      • From: Robert MacGregor <email@hidden>
References: 
 >Invoking an Objective-C method from an Applescript (From: Robert MacGregor <email@hidden>)

  • Prev by Date: Re: Finder Scripting
  • Next by Date: Re: Safari - downloading an image
  • Previous by thread: Invoking an Objective-C method from an Applescript
  • Next by thread: Re: Invoking an Objective-C method from an Applescript
  • Index(es):
    • Date
    • Thread