• 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
NSAttributedString and Scripting Bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Problem with unbind:
  • Next by Date: Re: User interface validation doesn't work, right?
  • Previous by thread: Re: Problem with unbind:
  • Next by thread: Re: User interface validation doesn't work, right?
  • Index(es):
    • Date
    • Thread