ARexx (29/41)

From:Andreas Mixich
Date:25 Aug 2000 at 13:39:44
Subject:Re: Unbalanced parentheses (not!)

Hello Rolf

On 25-Aug-00 Rolf Max Rotvel wrote:

RR>> I will try and tell you. I hope to have this script ready soon. It once
RR>> worked nicely for Lha2LZX. Then I added lots of stuff, nearly rewrote
RR>> it. Now I use someone else's tool for lha2lzx ;-)
RR>
RR> I'm working on a universal archive converter. You can set it up to
RR> convert any type of archive to any format you like. Here's some
RR> examples:

The program I am writing at the moment does this and even more:
It will anaylze the filetpye by MIME.TYPES and offer some auto-conversion
for several types (lha->lzx,gif->png,html->ascii,and some stuff like
texi->aguide,emodules->ascii-emodules) This lets you just enter:
rx convert stuff.lha

In this case the file would be replace by stuff.lzx if stuff.lzx is smaller.

RR> rx arc2arc dl:#?.lha dl:imdb/applydiffs.tgz dl:pc/pics.zip lzx

Nice. My program must be invoked for each file separatly. Maybe I should
change this. But then, I will make it residentable, by using CompressRexx,
so that shouldn't be a problem.

RR> converts all the above files to lzx.
RR>
RR> rx arc2arc dl:kiss/xfiles.lzh zip
RR>
RR> converts xfiles.lzh to zip.

Yes, my program cando this as well. Name the input-file and specify the
output-type

RR> If you're interested in having a look I can email it to you.

You could, but then sure I would paste snipplets from your code to make my
program better ;-)

What I had in mind was _one_ interface to all sorts of filetype-conversion.
With an eye on automated processing, so Sysops and Sysadmins can use it
overnight (might include logging and email-notify).

But for the general user it is a strong tool as well, since it can be used
from Shell, Dopus5 (and relatives), as an after-session script for FTP and
Term programs and so on.

The last big problem I have might be unsolvable. I asked already on this
list, but I did not find the final solution:

How to make the script find out, if it was started from a program, that uses
a GUI or a program running in the current user's shell. Because: If I can
determine this, I could create the user-notification upon this. GUI ->
Requesters. Shell -> Pragma(*)

Also it would be interesting to find out, if the calling environment has
opened a console or not. But it seems this is all not possible.



Good Bye, Andreas
> Arno Eigenwillig wrote:
> > Because it is SO much nicer to search/read/understand things written
> > on paper than on disk.
>
> Not really, as you can't grep dead wood.

ARexx mailing list - No flames, no overquoting, no crossposting. Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com