Mac Hyp: Adding Multiple Enclosures to a Message (75958)



The information in this article applies to:

  • Microsoft Mail Software Development Kit (SDK) for HyperCard 3.0

This article was previously published under Q75958

SUMMARY

The AddEnclosure command in the Microsoft Mail version 3.0 HyperCard Software Development Kit (SDK) does not use Mail's File dialog box. It uses the standard Macintosh File dialog box, which adds only one file to the message at a time.

To add multiple enclosures, this command must be called multiple times.

MORE INFORMATION

The following script allows an unknown number of files to be added to a message:
  on mouseup
      put msmail (CreateMessage) into messageRef
      put 0 into count
      repeat
        put msmail (AddEnclosure, messageRef)
        if msmail (GetEnclosureInfo, messageRef, "enclCount") = count
   then exit repeat
        add 1 to count
      end repeat
				
This script brings up the standard Macintosh File dialog box until the Cancel button is clicked.

Modification Type:MajorLast Reviewed:10/2/2003
Keywords:KB75958