Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making my application scriptable



Hello, Ben and all 

The two most common newbie "gotchas" with this signature seem to center on:
 Have you set NSAppleScriptEnabled in your project's Info.plist?
 Have you set the value of NSPrincipalClass to the correct value?
(In the case of HelloCocoaAppleScript, set it to "DemoApp".)

I just checked: the ReadMe says
 in the project's Info.plist, add
NSAppleScriptEnabled = YES
 set DemoApp as the principle class
all the way at the bottom.

If this answer identifies your problem, welcome to Cocoa AppleScriptability.
If not, please contact me off-list.

Regards,
Don

On Thursday, 2003 July, 31, at 20:08PM, Ben Mackin wrote:

I am trying to make my application scriptable. I have been following the
HelloCocoaAppleScript project and files to try and get things going. So far,
things look good. I can syntax check a script, and the commands and stuff
are recognized. The problem is when I try and run the script, I get an
NSReceiversCantHandleCommandScriptError error.

I have looked through both my code and my scriptsuite file and everything
looks in order. I made sure that the command in the script does go to a
proper command in my code, and it does, so I am at a bit of a loss.

Thanks for any and all help with this matter.

Ben
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Making my application scriptable (From: Ben Mackin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.