• 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
Trying to create an sdef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to create an sdef


  • Subject: Trying to create an sdef
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 07 Aug 2014 13:55:55 +0700

I have an app (called App) which is NOT document based and has an app delegate called AppDelegate.

Now AppDelegate has a property:
	@property (readonly)  NSString *babbel;
implemented as:
	- (NSString *)babbel { return @"Bibbel"; }

How to write an apple script (to be used in Apple Script Editor) to get this magic Bibbel-string?
And how to write the sdef to make this possible?
And what else does my AppDelegate has to implement?

This just seems to be no good:

[...]
<suite name="App Suite" code="Apps" description="Classes just for the App application.">
	<class name="delegate" code="Dell" description="App's top level scripting object">
		<cocoa class="AppDelegate"/>
		<property name="babbel" code="babB" access="r" type="text" description="magic string" />
		</property>
	</class>
</suite>
[...]

tell application "App"
	get babbel of delegate
end tell

returns:
error "Can’t get babbel of delegate." number -1728 from «class babB» of «class Dell»

MacErrors.h says:
 errAENoSuchObject             = -1728, /* e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. */


You see, I am absolutely clueless.

Gerriet.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Trying to create an sdef
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: NSTask task to rsync with ssh cert authentication
  • Next by Date: Re: Trying to create an sdef
  • Previous by thread: Re: displayed path in finder OS X
  • Next by thread: Re: Trying to create an sdef
  • Index(es):
    • Date
    • Thread