On Fri, 12 Jun 2009 14:45:48 +0400, Vitaly Ovchinnikov <vitaly.ovchinni...@gmail.com> said: >Hello, > >I completely stumped with allowing my application to be called from >apple-script. After reading of apple docs, I added simple sdef file >and two keys to info.plist. Sdef file contains only standard suite and >nothing added by me, but even with this I can't run the simplest >script like this one: > >tell application "MyApp" > get name of document 1 >end tell
Does your sdef define the document class, and does it link it to the Cocoa class of your NSDocument subclass and specify the "name" element as 'pnam'? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com