>On 14/08/02, from the brain of Gary Johnson tumbled:
> On Wed, Aug 14, 2002 at 05:38:41PM -0700, Michael Montagne wrote:
> > I'm playing around a bit with rox. There is a feature called Send-to.
> > It will take a selection of files and pass them to a program. What I'd
> > like is to pass the files to mutt and have them be the attachments.
> > I tried:
> > konsole -e mutt -a "$@"
> > in a shell script but it appears that the "-a" argument only accepts one
> > file, cause it works then.
> > Is my desire possible? Well it must be, but is it possible within
> > reasonable limited shell script programming knowledge?
>
> How about this?
>
> cmd="konsole -e mutt"
> for a in "$@"
> do
> cmd="$cmd -a $a"
> done
> $cmd
>
> HTH,
> Gary
Good idea. Here's another one.
#!/bin/bash
if [ $# -eq 1 ]
then
konsole -e mutt -a "$1"
else
tar -czf ~/attachedfiles.tgz "$@"
konsole -e mutt -a ~/attachedfiles.tgz
fi
--
Michael Montagne [[EMAIL PROTECTED]] 503.226.1575
--