- Code: Select all
do shell script "echo | /opt/local/bin/mutt -s \"Sunday Test\" -a /Users/bob/Desktop/SecuritySpyimage.jpg bob@aol.com"
The direct parameter (the one without a "-LETTER" must go after all the other options - so "-s" and "-a" need to go first. Substituting a good image and my email address works correctly using above command. That would explain why you're not getting the attachment - the "-a" option is coming after the email address which is the direct parameter so it's getting ignored.