• 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
Re: changing "document" terminology for AppleScript support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing "document" terminology for AppleScript support


  • Subject: Re: changing "document" terminology for AppleScript support
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 28 Aug 2006 11:15:20 -0700
  • Thread-topic: changing "document" terminology for AppleScript support

On Sat, 26 Aug 2006 12:25:26 -0400, Daniel Jalkut <email@hidden>
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

  • Follow-Ups:
    • Re: changing "document" terminology for AppleScript support
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: I'm having trouble retaining a NSColor
  • Next by Date: Re: I'm having trouble retaining a NSColor
  • Previous by thread: Re: changing "document" terminology for AppleScript support
  • Next by thread: Re: changing "document" terminology for AppleScript support
  • Index(es):
    • Date
    • Thread