• 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: Entourage: make new contact
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entourage: make new contact


  • Subject: Re: Entourage: make new contact
  • From: Nigel Garvey <email@hidden>
  • Date: Sat, 2 Jun 2001 11:20:16 +0100

Michelle Steiner wrote on Fri, 1 Jun 2001 12:50:21 -0700:

[tell application "Claris Emailer"]
> tell group groupName
> repeat with i from 1 to (count of group members)
> tell group member i
> set the addressee to the address choice
> set the destinationAddress to (the address of the addressee)
> set the AdresseesName to (the name of the entry)
> end tell
> set the recipList to the recipList &
>{{address:{address:destinationAddress, display name:AdresseesName},
>recipient type:bcc recipient}}
> end repeat
> end tell
> make new outgoing message with properties {subject:MessageSubject,
>content:MessageContent, recipient: recipList, sending
>account:sendingAccount, scheduled:true}
>
>Note the double braces in the last "set" line. I have no idea why it
>requires double braces, but it won't work with single braces.

recipList is a list of 'recipient' records. Omitting the outer, 'list'
braces round the added recipient means you're concatenating a record to a
list. The record is coerced to list first, it loses its labels, and its
values become useless, individual members of the combined list.

By providing the new record inside a list, the concatenated object is a
list anyway. No coercion takes place, and the contained record remains a
record in the combined list.

However, you should omit the outer braces if you use instead 'set the end
of the recipList to ...'.

NG


  • Prev by Date: Re: Delete contents of 'server' folder on shutdown...
  • Next by Date: Re: Fun with dates
  • Previous by thread: Re: Entourage: make new contact
  • Next by thread: Limitations with Folder Actions
  • Index(es):
    • Date
    • Thread