Thank you for your reply earlier. Sorry I know that it was an applescript. I had a suggestion to send it via applescript: Here is the script that I wrote: It will send an email but the problem is that it fails right now cause the attachment is not working correctly.
-- Variables
set recipientName to "SomeOne"
set recipientAddress to "someone@gmail.com"
set theSubject to "CSV File"
set theContent to "Here is your CSV file created from your website"
set fileName to "HD:Users:markperryman:GinaApp:gina_20120801.csv"
-- Mail Tell Block
tell application "Mail"
--Create the message
set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
-- Set a recipient
tell theMessage
make new to recipient with properties {name:recipientName, address:recipientAddress}
tell content
make new attachment with properties {name:fileName as alias} at after the last paragraph
end tell
-- Send the Message
send
end tell
end tell
and here is the error I get now:
error "Mail got an error: Can’t make {name:alias \"HD:Users:someone:GinaApp:gina_20120801.csv\"} into type properties of attachment." number -1700 from {name:alias "HD:Users:markperryman:GinaApp:gina_20120801.csv"}
any ideas. Im at a loss right now.
I have a shell script written that does most of my process. Now I just want to write an applescript that can be called by the shell and send the email with the attachment. So Im not sure what Im doing wrong. As always any help would be appreciated.
Thanks