Thanks for the reply. Yep, I know there are a variety of mail clients out there, so not everyone uses Mail. And that sucks. This program is actually a port of an iPhone application for which, different mail clients are not a problem. But at least to start, I'm only going to support Mail. I'll likely just copy the attachment to the desktop and let the non-Mail.app users handle it from there. For now at least.
On Tue, Feb 1, 2011 at 4:18 PM, John Joyce < dangerwillrobinsondan...@gmail.com> wrote: > > On Feb 2, 2011, at 7:13 AM, lorenzo7...@gmail.com 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. > > > -- "My break-dancing days are over, but there's always the funky chicken" --The Full Monty _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com