[Alpine-info] Opening attachments with OpenOffice

Eduardo Chappa chappa at u.washington.edu
Thu Apr 8 10:42:16 PDT 2010


On Thu, 8 Apr 2010, Mirko Hessel-von Molo wrote:

MHM> 1. Those of you who know Alpine's internals: Is this theory possibly
MHM> true?
MHM> 2. How could I check whether it is?
MHM> 3. If not, what else might be the reason?
MHM> 4. In any case, how could I work around it?

Yes, it is true. You can know it by wrapping the call to the viewer
through a script that finds if the file exists after the call to
openoffice.

You can work around it by wrapping the call to openoffice through a
script, and finding out if this is already open. Then (if already open)
copy the file to another location and call openoffice to open the copy,
and remove the copy once you are done. Other options include a "sleep 1"
command after the openoffice call, to give time to openoffice to see the
file before it is removed by Alpine.

In any case, the point is, do not call the command directly. Wrap it in a
script.

--
Eduardo
http://staff.washington.edu/chappa/alpine/


More information about the Alpine-info mailing list