OSX: Right click on file, sent email. Notes 9 Services in OSX?

Hi,
is there a way to configure an automator workflow in OSX in order to right click on a file in Finder and then sent that file to a new email in IBM Notes?

If there is a command line that I could run in order to create a new email and add attachments, that will really help. That way I can use the “Open selected
with …” and then sent the files to Notes.

Many thanks

Oliver

Subject: Of course there is - launch Notes and pass a mailto command line

For reference, below is a sample C shell script that you can use in Automator.

set m = “mailto:? mailto:?
foreach f ($*)
set f = perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$f"
set m = “$m&attach=$f”
end
open /Applications/IBM\ Notes.app “$m”

To use it:

  1. Launch Automator and create a new service, call it “Send to IBM Notes”;

  2. Change the service to receive files or folders from any application;

  3. Select Utilities and add “Run Shell Script”;

  4. Change script to csh and paste above sample script;

  5. Save the service. Now you should be able to send files to Notes from either context menu or services menu.