Scriptability & Frameworks
Scriptability & Frameworks
- Subject: Scriptability & Frameworks
- From: Buzz Andersen <email@hidden>
- Date: Thu, 5 Jun 2003 20:59:26 -0600
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.