Re: bash vs. python scripts - which one is better?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/19/07 14:12, Manon Metten wrote:
[snip]
>
> 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).
Python + Tcl/Tk should be easier than Python + Gtk.
Even simpler would be bash + dialog or it's GUI companion gtkdialog.
> 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.
Your geek cred just dropped. Substantially.
But that's ok. Really. Honestly, we won't snicker about you while
sipping pretentious and outrageously expensive microbrew. I swear.
> 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?
Complete control? I don't know. But gedit (sorry, a GNOME app)
lets you access at least some of the window and editor.
>
> Greetings, Manon.
>
- --
Ron Johnson, Jr.
Jefferson LA USA
Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGyJuRS9HxQb37XmcRAtU3AJ9BtQZpWz5RN4v8WHCvdNG1m/LOowCbBtEf
O7p+k+uAUOpxmzOWg5Ngz0A=
=F7Mx
-----END PGP SIGNATURE-----
Reply to: