NSAttributedString and Scripting Bridge
NSAttributedString and Scripting Bridge
- Subject: NSAttributedString and Scripting Bridge
- From: Graham Cox <email@hidden>
- Date: Sun, 23 Aug 2009 23:32:47 +1000
I've successfully used Scripting Bridge to pass plain text and
attachments to Mail for sending, as part of an internal (non public)
app.
I'd like if possible to send mail as rich text. I have the message as
an NSAttributedString, and can easily get this as all sorts of
formats, such as RTF. However, the Scripting Bridge works with
Applescript's 'text' type (or 'mailText' in this case) which is
completely different - it's just a tree of paragraphs and attribute
runs.
Before I embark on a very long-winded conversion to this form, has
anyone already done it, or knows of a quicker way?
I'm surprised if there's no support for this built-in somewhere.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden