Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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

From: Manon Metten <manon.metten(at)gmail.com>
Date: Sun Aug 19 2007 - 15:12:52 EDT


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.

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Sun Aug 19 15:13:13 2007
Do you need help?X

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 02:28:00 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library