Use AppleScript to send notification

Ok, so I'm getting stuck using an embedded AppleScript to send an email via Sparrow in the background. I've got this so far
The email sends perfectly but I would like "theFile" to display the filename of what Hazel passes to it. Hope someone can help
. Really need to brush up on my AppleScript
- Code: Select all
tell application "Sparrow"
set newNotification to make new outgoing message with properties {subject:"New Episode Downloaded", content:"Hello Christina,
I've takent the liberty of downloading theFile for you. Enjoy"}
tell newNotification
make new to recipient at end of to recipients with properties {address:"smithjw@me.com"}
end tell
sendmessage newNotification
end tell
The email sends perfectly but I would like "theFile" to display the filename of what Hazel passes to it. Hope someone can help
