cocoa - Using the Apple Scripting bridge with Mail to send an attachment causes the message background to go black -


send a message with the

When I set the background black an attachment message using Apple Scripting Bridge for a problem because the text is code for black question:

  MailApplication * mail = [SBApplication applicationWithBundleIdentifier: @ "com.apple.Mail"]; / * Create a new outgoing message object * / MailOutgoingMessage * emailMessage = [[[mail classForScriptingClass:] @ "outgoing message" alloc] initWithProperties: [NSDictionary dictionaryWithObjectsAndKeys: EmailSubject, @ "subject", [self composeEmailBody], @ "Content", zero]]; / * Add object to mail app * / [[mail outgoing message] addObject: emailMessage]; / * To determine this, the message * / emailMessage.sender = [NSString stringWithFormat show: @ "% @ & LT;% @ & gt;", [[[mail accounts] objectAtIndex: playerOptions.mailAccount] full name], [ [[[Mail account] ObjectAntindex: PlayerApps.mail account] Email addresses] ObjectOutX: 0]]; Email message View = yes; / * Create a new recipient and add it to the recipient list * / Meltoariyripiant * therecipient = [[[mail] to Clasfoskripting Class: @ "recipient" alloc] initWithProperties: [NSDictionary Sbdkoshwastvik and Andke: rival email @ "address", Zero]]; [Email message. Sender addObject: theRecipient]; / * If there was a specified, / * ([player.info.gameFile length]> gt;) / / Create an attachment object / / mail Atiptment * theAttachment = [[[mail Clasfoskripting Class: @ "attachment" ] Alloc] InitWithProperties: [Object Endease with NSDictionary dictionary: playerInfo.gameFile, @ "filename", zero]]; / * Add it to the list of attachments * / [[E-mail message content attachment] Adobject: The attachment]; } / * Send Message * / [Send Email Message];  

The actual change to background color is on the second last line, which is:

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

The above code section has been essentially picked up from Apple by SBS & Mail Example Code. At this level, I have actually made the necessary changes to integrate with the data from our application. After I created and run the SBSandmail example and after downloading it from Apple, the message background has been changed to black with the execution of the same line. It does not matter what type of file is attached, where it is located, or which computer or operating system is used.

This could be a bug in Apple's Scripting Bridge, but got any problems and a solution in it? Alternatively anyone know that if the background color of a MailOutgoingMessage example can be changed with the script bridge?

After

I do not think the problem is in your code. I think this is a bug which recently Quick Google Search did this thing for the pop up:


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -