Re: "a reference to"
Re: "a reference to"
- Subject: Re: "a reference to"
- From: Chris Page <email@hidden>
- Date: Wed, 9 Jan 2008 19:34:53 -0800
On Jan 7, 2008, at 10:44 AM, has wrote:
2. [Implicit get's] invisible nature means that users cannot
obviously see - and thereby understand - why their code fails in
some cases, because their experience of the common-case behaviour
has given them a faulty understanding of how AppleScript and Apple
event IPC actually work.
The get events do show up in the event log, which should help. One
shortcoming is that the event log only logs events and nothing else,
so it can be difficult to correlate events to what's going on in the
script.
In Michelle's original script, the event log shows
get every person of group "foo"
with the result
{person id ..., person id ...}
followed by the error
Can't get email 1 of {person id ..., person id ...}
which indicates that it can't get "email 1" of the list of person ids.
In her modified script that works, the event log shows
get label of email 1 of every person of group "foo"
with the result
{"foo", "bar", "baz", ...}
indicating a list of labels.
Perhaps one problem is that it can take some time to learn the
relationship between scripts and events, including the fact that the
text "{foo, bar}" in the event log represents an actual list object
rather than the conceptual collection of objects within the target
application?
It would be interesting to know whether there's a clearer way to
indicate to the scripter what's going on in the event log.
--
Chris Page
The other, other AppleScript Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden