Re: Inheritance and Loaded Libraries
Re: Inheritance and Loaded Libraries
- Subject: Re: Inheritance and Loaded Libraries
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 31 Oct 2004 05:55:54 -0800
On 10/31/04 3:08 AM, "Axel Luttgens" <email@hidden> wrote:
> By contrast, the succeeding statement explicitely provides a context for
> the interpretation of "my XLib" as an object.
> Notwithstanding the initialization work that comes with a "tell" statement.
>
> Hence the idea of providing the first two statements with a "tell"-like
> context through a prior evaluation; for example:
>
> Main - variant 4
> script myScript
> (get my XLib)'s runTest() -- works!
> runTest() of (get my XLib) -- works!
> tell my XLib to runTest() -- works!
> end script
> tell application "ScriptRunner" to runScript(myScript)
>
> (note that with the above, we should be running three distinct instances
> of aLib.scpt...)
>
> I'm sure someone will provide a better/more detailed explanation.
> In the meantime, hope this somewhat helps,
Aagghh. Very good, Axel. I don't see how I missed that - adding an explicit
'get' one of the first things I usually try. I think it was simply that
whereas it sometimes jumps out at me when a property is a direct object
clearly following an 'of' (as in ex. 2"--works!" above) , I missed it when
the alternate 's syntax was used (ex. 1). It's still interesting that 'tell'
does not require the 'get' here (ex. 3) to make the script-object-ness of
XLib clear, and yet in the example you provide in your next message even
'tell' needs the 'get' to make that example work.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden