Send Email once added to iTunes

I am trying to setup some code to send me a notification email once a file has been added to my iTunes library.
I am currently using...
The error I am getting is Expected "," or "}" but found identifier. and it is highlighting MyEmail
I am a noob to applescript. Any Suggestions?
I am currently using...
- Code: Select all
tell application "Mail"
activate
set theNewMessage to make new outgoing message with properties {subject:"Subject TV Added", content:"For your viewing enjoyment, we have added " & theFile & " to your iTunes library, visible:true}
tell theNewMessage
make new to recipient at end with properties {address:"MyEmail@gmail.com"}
send theNewmessage
end tell
end tell
The error I am getting is Expected "," or "}" but found identifier. and it is highlighting MyEmail
I am a noob to applescript. Any Suggestions?