Invoking an Objective-C method from an Applescript
Invoking an Objective-C method from an Applescript
- Subject: Invoking an Objective-C method from an Applescript
- From: Robert MacGregor <email@hidden>
- Date: Mon, 22 Aug 2005 12:01:24 -0400
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