SBSendMail

  • SBSendMail, from Apple's Scripting Bridge example,  gives an error on:

    [[emailMessage.content attachments] addObject: theAttachment];

    The header file, Mail.h, does not have "content" for a new outgoing message, which doesn't make any sense, since the example sets the property "content" at the outset.

    I used instead:  [[[emailMessage content] attachments] addObject: theAttachment];

    But get a warning error that says "MailOutgoingMessage may not respond to content".

    However, it does respond and the attachment is attached to the email.

    It would seem that I shouldn't get an error message?

    BTW I used: [NSURL fileURLWithPath:attachmentFilePath isDirectory:(BOOL)NO] instead of the example code.

    Best regards,

    John MacMullin
previous month june 2012 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Go to today