Re: shellscript an attachment?
Ah - I think you've got a parameter ordering problem. All the options to mutt (or any command line tool) need to go first:
- Code: Select all
do shell script "echo | /opt/local/bin/mutt -s \"Sunday Test\" -a /Users/bob/Desktop/SecuritySpyimage.jpg firstname.lastname@example.org"
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.