RE: Who has that property?
RE: Who has that property?
- Subject: RE: Who has that property?
- From: has <email@hidden>
- Date: Mon, 7 Nov 2005 19:36:34 +0000
Scott Babcock wrote:
>Yes, referring to "lib2 of lib2" directly results in an error.
>Try this, though:
>
>set libRef to (a reference to lib2 of lib2)
>handler1() of (get contents of libRef)
>
>I've run this code on 10.3.9 and 10.4.2 with Script Editor and Script
>Debugger. It works just as I described.
Added the above code to the original main script code then tested it on 10.2.8 and 10.4.2 with SE and Smile, and it errors as expected when attempting to get the reference's contents. (Though oddly SE and Smile report different errors, -1700 vs -1728.) You're definitely using the exact same code as you've posted here?
>I failed to point out the
>significance of using a reference to access the inherited property,
>although this is the method used in whoHasLib2().
Shouldn't make any difference other than delaying the point at which the script fails. Incidentally, your 'my' and 'a ref to' operators are all superfluous anyway and would best be removed.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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