you'd better send this to the python mailing list (see info on
www.pyton.org.il).
when you do that - make sure you supply all the necessary details
(including the lilynameGen funciton - which doesn't sound like it is part
of the standad python library ;) ).
--guy
On Fri, 4 Nov 2005, Aaron wrote:
> Hi all,
> I have a pthon script with a function in it that I have used for
> renaming single files.
>
> I now want to do it on a series of files.
>
> the main program that uses the function is:
>
> #---------------------------------------------------------------------------------------------------
> # M a i n P r o g r a m
> #---------------------------------------------------------------------------------------------------
> # Test run
>
> # strLilyname = lilynameGen( '384-3.ly' ) - Commented this test out - it
> generates a lilyname from the file
> # strLilyname = lilynameAssign( '384-3.ly', strLilyname ) - Commented
> this test out - it assigns the lilyname to the lily file
>
> # This is the test run for the 'batch' function ...
> strLilyname = lilynameGenAssign('[a-z].ly', 'COPY' )
> #this is what I tried to have it work on all files but I obviously have
> not idea of the correct way to to this
> # Alternatively test run: strLilyname = lilynameGenAssign( '',
> 'RENAME' )
> print "========================"
> print "Lily name =", strLilyname
>
> --------------------------------------------------------------
> What should I use to generate this script for a series of files?
>
> Thanks
> Aaron
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
--
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]