On Feb 2, 2011, at 7:13 AM, [email protected] wrote:

> How can one go about doing this and support 10.4-10.6? There are links all 
> over the place pointing to deprecated API's (NSMailDelivery) or frameworks 
> that are 10.5+ (EDMessage, Scripting Bridge), but nothing I can use. All I 
> want to do is open the default mail application, create a new message, attach 
> a file and then allow the user to address it and send. That should not be too 
> difficult, I should think. Is an Automator action the way to go? Can someone 
> help me out?
> Thanks
> ____________________________________________
 HI Lorenzo,

If you need to support multiple versions of the OS have 3 options really :

1) 
Use compiler directives with #ifdef to check the os version number and utilize 
the frameworks appropriate for the version found.

2)
Use AppleEvents (AppleScript or other means of interfacing with AppleEvents)

3)
Role your own means of sending the mail.

*** Keep in mind some users may not use the Mail application at all. They may 
be using another email client app, OR they may use webmail, OR (rare) no email 
at all.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to