Mail address bug
Mail address bug
- Subject: Mail address bug
- From: Luther Fuller <email@hidden>
- Date: Wed, 30 Jul 2008 12:17:55 -0500
I was trying to find out why I was getting strange behavior with a
Mail script involving a list of my email addresses. Addresses that
should be there ... aren't. A list of my email addresses should look
like this: {"fullerluther(2)alltel.net", "lutherfuller(a)mac.com",
"lutherfuller(a)me.com"}.
Here's the test script ...
tell application "Mail"
activate
--
set addressList to (email addresses of accounts) -- a list
end tell
activate me
count items of addressList
display dialog the result --> 2
set AppleScript's text item delimiters to {"#"}
display dialog addressList as text -->
"fullerluther(2)alltel.net#lutherfuller(a)mac.com#lutherfuller(a)me.com"
More testing reveals that item 1 of addressList isn't text, but a list;
and item 2 of addressList is the list: {"lutherfuller(a)mac.com",
"lutherfuller(a)me.com"}.
An error message tells me: Can't get item 3 of
{{"fullerluther(2)alltel.net"}, {"lutherfuller(a)mac.com",
"lutherfuller(a)me.com"}}. Which explains why addressList isn't
behaving properly.
BTW, it was working properly as recently as a couple of weeks ago.
There must be a reportable bug here, but I'm not sure what's causing
it or exactly what it is.
Any ideas?
_______________________________________________
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