Using the Scripting Bridge to process e_mails, the bridge return NSString rather than String class when reading the message content. This works fine except that the .to_data method is undefined for NSString. I am able to use dataUsingEncoding as in the following:
content = message.content.get # Returns NSString rather than String nsdata = content.dataUsingEncoding( NSASCIIStringEncoding ) nsdata.writeToURL( @url, atomically:true ) But for consistency, you may want to add the .to_data method to the NSString class. Thanks, Bob Rice
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel