This is a bit barbaric:
--8<---------------cut here---------------start------------->8---
(defun my-helm-locate-attach-file (arg)
(interactive "P")
(helm-locate arg)
(mml-attach-file (car kill-ring)))
--8<---------------cut here---------------end--------------->8---
The crude part is especially in the fact you need to press
C-u C-c C-k
after selecting the desired file in helm.
Anyway, hopefully this inspires a more elegant solution :)
Kind regards,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:
www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C