Bug with "missing value"
Bug with "missing value"
- Subject: Bug with "missing value"
- From: David Crowe <email@hidden>
- Date: Mon, 13 Jun 2005 16:07:34 -0600
Title: Bug with "missing
value"
I have a list of fields from the AddressBook, let's call it
"x".
The following code does not find any matches with the constant
'missing value':
repeat
with
aField
in x
if
aField = missing
value
then
set end
of
thePerson
to ""
else
set end
of
thePerson
to aField
end
if
end
repeat
But if I change it
to:
repeat
with i from 1 to (count
x)
if
item i of x =
missing value
then
set
thePerson
to thePerson &
{""}
else
set end
of
thePerson
to item i of
x
end
if
end
repeat
Then it works.
I have a workaround, so a
solution is just a matter of interest, but this does seem wierd to me.
Perhaps one of the AppleScript gurus on the list can discuss the
subtlety that I've bumped into.
- David Crowe
_______________________________________________
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