RE: Who has that property?
RE: Who has that property?
- Subject: RE: Who has that property?
- From: "Scott Babcock" <email@hidden>
- Date: Tue, 8 Nov 2005 17:34:40 -0800
- Thread-topic: Who has that property?
As I mentioned, I work on a system with many scripts and several
inter-dependant libraries, and I also have a script-runner applet that
can be used to run a single script or a set of scripts.
The main system library contains a handler to scan for library-reference
properties and populate them automatically - something like the way
#include works in C. The script-runner applet runs text script files
with the 'run script' event, which means that the script files are
compiled into script objects whose parent is the applet.
The applet uses a few of the system libraries itself, and so it contains
library reference properties. The library loader was seeing these
properties, which were not part of the script being run but of the
script runner itself. The library loader then tried to populate these
properties, which threw an error and caused the run to fail.
This is why I need to be able to determine a property's actual
container.
> Date: Tue, 08 Nov 2005 11:22:43 +0100
> From: Axel Luttgens <email@hidden>
> Subject: Re: Who has that property?
> To: AppleScript Users <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Scott Babcock wrote:
>
> >This may indeed be a Script Debugger issue. I tried my code on a
clean
> machine without Script Debugger and got the same result you're seeing.
I
> still think there's value in the discussion, however, if it's applied
to
> embedded script objects instead of loaded script libraries.
> >
> >
> I still don't clearly understand your basic question.
>
> Why would you need to inspect, from your main top-level script, the
> innards of script objects?
> In principle, a script object should be kind of a mostly
self-contained
> black box. If a property "foo" defined somewhere else impacts a script
> object's behavior, that's either because it has been a conscious
design
> decision (eg by lexical scoping or by setting the parent property), or
> because something has been overlooked (ie a bug).
>
> Clearly, I must be missing something. ;-)
> Could you provide a short example focusing on the need you are
> encountering for handlers such as whoHasLib and refTest?
>
> Tanks,
> Axel
_______________________________________________
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