[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash vs. python scripts - which one is better?



Hi Douglas,

On 8/19/07, Douglas A. Tutty <dtutty@porchlight.ca> almost wrote:

Perhaps the OP can restate her needs and we can help her make a reasoned
choice without it becoming a religious issue.


OK. I have a hard time to remember all those command line options. So whenever
I have to accomplish a task multiple times, I write a script for it in ARexx. Arexx
is also capable of opening windows to request user input, eg. a window with some
options. I could not find this possibility in Linux/Rexx. So I was looking for another
language and found Python capable of doing so.

Here's an example: I've written a script in ARexx for creating mp3 files. It has a
couple of modes: Scale - 192kbps - 256kbps - Cancel. So when I run this script,
it opens a small window with these four options and I just have to pick the one I
need. Then it opens another window to select the directory where I have my .aiff
files stored (it defaults to ~/mp3/work).

I find this much more comfortable than eg. typing:
rx mp3conv.rexx 256kbps ~/mp3/work
Even better: I run this script from within my dir util (DirOpus == Konqueror), so I
don't have to type anything.


But I have a second question: Is there a programmable text editor available (with
a nice GUI - not something like emacs where I have to remember all those
ctrl+shift+left-alt+m commands) that I can completely control from within a
Python script?


Greetings, Manon.


Reply to: