• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail Recipients
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail Recipients


  • Subject: Re: Mail Recipients
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 09 Dec 2012 22:46:16 +0100


Le 09/12/2012 à 22:35, Luther Fuller <email@hidden> a écrit :
…
I replaced the 'try error' block with this …

repeat with i from 1 to (count items of toList)
if i > 2 then exit repeat
(item i of toList)
{(name of the result), "<" & ((address of the result) as Unicode text) & ">"}
if item 1 of the result = missing value then
item 2 of the result
else
(item 1 of the result as Unicode text) & space & (item 2 of the result)
end if
set toShortList to toShortList & {the result}
end repeat

fixing the problem by avoiding 'try error'.
This seems to reinforce recent warnings about using 'try error'. But is it a bug?
A Mail bug or an AppleScript bug?

Why not a neat design choice ?

From my point of view, issuing missing value when the name is missing is cleaner than issuing an error when the user try to grab the missing info.

Yvan KOENIG (VALLAURIS, France) dimanche 9 décembre 2012 22:46:05



 _______________________________________________
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

References: 
 >Mail Recipients (From: Luther Fuller <email@hidden>)
 >Re: Mail Recipients (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Mail Recipients
  • Next by Date: Re: Mail Recipients
  • Previous by thread: Re: Mail Recipients
  • Next by thread: Re: Mail Recipients
  • Index(es):
    • Date
    • Thread