Re: Scriptability & Frameworks
Re: Scriptability & Frameworks
- Subject: Re: Scriptability & Frameworks
- From: Don Briggs <email@hidden>
- Date: Sat, 7 Jun 2003 10:14:11 -0700
See my .Mac homepage
http://homepage.mac.com/donbriggs
There you will find
>
EZCocoaAppleScript_2.0 a more complete but older tutorial. It takes
>
the venerable DotView example project
>
(/Developer/Examples/AppKit/DotView/) and makes it
>
Model-View-Controller
>
XML document-based
>
a framework embedded in an application, and
>
scriptable.
How that helps.
Don
On Thursday, June 5, 2003, at 07:59 PM, Buzz Andersen wrote:
>
Cocoa gurus:
>
I am struggling with adding AppleScript to an application of mine
>
because a significant portion of its functionality lives in an
>
embedded framework. Essentially, my application needs to have a
>
one-to-many relationship with a class that is part of my framework. I
>
have tried accomplishing this by adding Script Suite and Script
>
Terminology files to my framework (in much the same way Apple defines
>
the Text Suite as part of the AppKit), in addition to the suite and
>
terminology files that already exist in my application.
>
>
I'm not sure if I'm missing something, but this arrangement doesn't
>
seem to work. Attributes that use standard Cocoa classes or classes
>
that are part of my application proper work fine, but when I do
>
something like this...
>
>
tell application "TheApplication"
>
set theObject to the first FrameworkObject
>
set theName to the name of theObject
>
end tell
>
>
...I get an error saying that theObject is not defined.
>
>
Everything seems to look correct based on the way things are showing
>
up in my application's dictionary. Is there something I'm missing?
>
Some sort of AppleEvents voodoo (I have noticed that Script Suites in
>
the Cocoa frameworks seem to use '????' as their top level AppleEvent
>
code, but I've tried that and it doesn't seem to make a difference.
>
>
I would be extremely grateful if anyone could point me in the right
>
direction. I would be glad to show my Script Suite and Script
>
Terminology files if that might help...
>
>
--
>
Buzz Andersen
>
email: email@hidden
>
web: http://www.scifihifi.com
>
_______________________________________________
>
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.