Re: changing "document" terminology for AppleScript support
Re: changing "document" terminology for AppleScript support
- Subject: Re: changing "document" terminology for AppleScript support
- From: Mike Abdullah <email@hidden>
- Date: Mon, 28 Aug 2006 21:52:45 +0100
Thanks Matt, that helps clarify things a little more.
I actually came across one of your starter tutorials for AppleScript
yesterday, and that tremendously helped me solve another problem with
my implementation, so thanks for that as well!
Mike.
On 28 Aug 2006, at 19:15, Matt Neuburg wrote:
On Sat, 26 Aug 2006 12:25:26 -0400, Daniel Jalkut <jalkut@red-
sweater.com>
said:
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).
No - it's AppleScript itself, which defines "document" / 'docu'. It
is your
(Mike's, the programmer's) responsibility not to re-use improperly an
existing four-letter code. This is not easy because you don't
always know
what the existing four-letter codes are. See the material in my
book about
terminology class; my book also completely explains the phenomenon you
(Mike) are seeing (see on "decompilation"), plus it tells you some
ways to
learn what four-letter codes AppleScript has already defined
(namely, look
at the dictionary of AppleScript itself). m.
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
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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