Alexander Cohen wrote:

Is there a way to use a url request to open mail with all its fields
completed but most importantly, contain an image attachement?


Nope. If you want to send an email in the background, you'll need to look into a third-party framework option:

http://www.collaboration-world.com/pantomime
http://www.theronge.com/mailcore
http://www.mulle-kybernetik.com/software/EDFrameworks

If you're talking specifically about creating an outgoing message in Mail.app, you'll need to control it via its Apple events ('AppleScript') interface. It's somewhat buggy (chronically so), but can usually be coaxed into doing roughly what you want. I've got an sample project (SendEmail) in appscript's svn repository that shows how to do this using ObjC and appscript:

svn checkout http://appscript.svn.sourceforge.net/svnroot/appscript/objc-appscript/trunk objc-appscript

I believe there's a sample project somewhere on Apple's site that shows how to do the same sort of thing using Leopard's Scripting Bridge (but I'll not link to that here as I don't have a very high opinion of Scripting Bridge:).

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to