shellscript an attachment?

Posted on
Mon Apr 30, 2012 9:56 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

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 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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Apr 30, 2012 5:15 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: shellscript an attachment?

Hello again!

That did it!
Code: Select all
do shell script "echo | /opt/local/bin/mutt -s \"Sunday Test\" -a /Users/bob/Desktop/SecuritySpyimage.jpg bob@aol.com"


Also had to use a Postfix.app to get it going through.

Thanks nsheldon and jay for hanging in there and not giving up on helping, it made all the difference!
:)

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Who is online

Users browsing this forum: No registered users and 12 guests

cron