My requirement is simple. Launch Mail.app and create a blank email and attach a file/files.
I've seen NSWorkspace to actually launch mail, but how can I effectively mimic the same functionality when you drag a file to the mail icon? Googled to death but always get Cocoa Touch results!
Thanks for any guidance.
This works fine:
[[NSWorkspace sharedWorkspace] openFile:@"/path/to/file/file.ext" withApplication:@"Mail"];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With