. . . will open a new message with "someone@email.com" in the "TO" line. Supposedly, adding "?attachment=" to this will add an attachment but I'll be darned if I can come up with a method that will actually do that. For the most part, it does nothing.
The other possibility is to use the information returned by "LSGetApplicationForURL" to get a path to the app, craft specific command line arguments for each email client, then use NSTask to launch it. Seems like this could be involve lot of work.
Adding an attachment in Mail via AppleScript (Scripting Bridge) wouldn't be that hard I imagine. Do you have to do this in the user's client? Maybe you could provide your own server to do the emailing instead.
Maybe some kind of AppleScript is my answer. I don't know a thing about AppleScript but I'll look into it.
This is strictly a local application. It's for document scanning and I want it to be able to send the scanned doc directly into email as well as into folders, etc.
One thing that indicates that this is not an easy proposition is my comparison of apps on the Mac and Windows platforms. The "ScanGear Toolbox" that my old Canon N670U uses is available for both platforms and while the Windows version lists all of my installed email clients for its 'scan to email' function, the Mac version does not. Also, one of my customers uses a Fujitsu scanner and, while it's "ScanSnap" software does offer an email option, it apparently will only work with Mac Mail (and, of course, he uses something else).