View unanswered posts | View active topics It is currently Fri May 24, 2013 8:51 am



Reply to topic  [ 17 posts ]  Go to page: Previous  1, 2
 shellscript an attachment? 
Author Message
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6663
Location: Austin, Texas
Post 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)
Image


Mon Apr 30, 2012 9:56 am
Profile WWW
User avatar

Joined: May 10, 2010
Posts: 62
Post 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!
:)


Mon Apr 30, 2012 5:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page: Previous  1, 2

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.