I am having trouble with an AppleScript attached to a hazel rule since upgrading to El Capitan. the script is supposed to email a file as an attachment to someone. It used to work flawlessly and since upgrading, it will still send the email, but without the attachment. Please help! I have included the script text and picture below for reference. Note: I changed the email to a generic one for this forum. Also, I have checked that I have added the item to the inputAttributes.
tell application "Mail"
set theMessage to make new outgoing message with properties {visible:true, subject:"R/M Chart " & (item 1 of inputAttributes), sender:"myemail@myemail.com"}
tell theMessage
make new to recipient at end of to recipients with properties {address:"myemail@myemail.com"}
make new attachment with properties {file name:theFile} at after the last character
send
end tell
end tell