Is there anyway to tweak the script to only include the file name in the subject line?
- Code: Select all
tell application "Mail"
set theAttachment1 to (POSIX path of theFile)
set theNewMessage to make new outgoing message with properties {subject:theAttachment1, visible:true}
tell theNewMessage
make new to recipient at end of to recipients with properties {address:"office@email.com"}
make new attachment with properties {file name:theAttachment1} at first paragraph
end tell
end tell