Re: changing "document" terminology for AppleScript support
Re: changing "document" terminology for AppleScript support
- Subject: Re: changing "document" terminology for AppleScript support
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 26 Aug 2006 12:25:26 -0400
I think Script Editor allows for some degree of "spillover" in the
terminologies it learns about from various sources (applications,
scripting additions, built-in AppleScript, etc).
So if Script Editor has learned at some point that "docu" is a
document, then it's going to call that whever it sees the type code.
Even assuming Script Editor didn't learn about what 'document' means
from anywhere else, I think it's likely you're going to inherit the
core Cocoa Scripting dictionaries, where the class code you're
dealing with is always going to be called "document."
It would be much better, I think, for you to choose a new code,
instead of trying to override a system standard. You can then work on
the task of hooking up your new code to the usual document-model
machinery.
Daniel
On Aug 26, 2006, at 11:55 AM, Mike Abdullah wrote:
I am trying to add scripting support to my app. I have used sdef
editor to add the basic skeletal sdef to my app and things work
nicely.
However, the term "document" is not very appropriate for my app,
and I wish to change it to "event"
I have gone through and renamed everything appropriate in the sdef
(as far as I can see) and things now work fine. I can quite
happily do:
get events
get event "Untitled"
However, when I do this, the text that appears at the bottom of the
script editor to indicate what the script returned still says:
document "Untitled" of application "My App"
Presumably I need to also alter something in my actual code, but what?
Mike.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden