You can drag email attachments (icons or images) directly from a Mail window to a Terminal window, and it’ll turn into a correct pathname of that file, where it lay deep in your personal mail cache. I just used this trick to quickly scp some images I was mailed.