• 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
problems with scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems with scripting


  • Subject: problems with scripting
  • From: Vitaly Ovchinnikov <email@hidden>
  • Date: Fri, 12 Jun 2009 14:45:48 +0400

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

My application has opened documents, but script returns "can't get
name of document 1".

Actually, my question is simple: I have document-based cocoa
application, my document class (MyDocument) has one property
(aProperty) and one method (doSomething). Please show me the simplest
sdef file that will allow me to create documents from script, access
my property and call my method.

Thank you.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: problems with scripting
      • From: Arjun SM <email@hidden>
  • Prev by Date: Re: dumb question
  • Next by Date: Re: Get|SetControlProperty() equivalent
  • Previous by thread: Re: Launching agents .
  • Next by thread: Re: problems with scripting
  • Index(es):
    • Date
    • Thread