case "$(uname)" in
FreeBSD|Linux)
MUACOMPOSER=launch_thunderbird_compose.sh
;;
Darwin)
MUACOMPOSER=launch_mail_compose.applescript
;;
esac
${MUACOMPOSER} \
to="hoge@example.com,moge@example.com" \
cc="soge@example.com" \
subject="Test sample shiken tesuto" \
attach="/pathto/attachfile.tgz" \
body="$(cat /pathto/mailtemplete)"
Saturday, October 3, 2009
Wrap script for Thunderbird and Mail.app
If you saved script as launch_mail_compose.applescript and launch_thunderbird_compose.sh,
Follow command works well for both FreeBSD/Linux and Mac OS X.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment