Passing a file to applescript in an variable

Hello,
I would like to create an application that will take a pdf as input (drag and drop) and sends an email with a user choosen subject.

I have thus created an automator workflow that is almost working. The only part I am not getting is passing the dropped file to the applescript so that it will attach it within the mail

Can someone help me to sort this out ?

Thanks in advance for your help !

Here you can download the zipped workflow
http://s000.tinyupload.com/index.php?file_id=12980776511398698508

and here is the applescript at the end of the automator workflow. The problem has to do with passing the second item of input.

Hello,
Here is the answer:

from here http://stackoverflow.com/questions/32977111/passing-a-file-from-a-second-automator-variable-to-applescript