Page 1 of 2
File rename command in a chain.
Posted: Tue Mar 09, 2010 10:58 am
by ppay
I made a Chain that produces an Ogg file with extension .ogg. I would like .oga extension instead of .ogg, so I am looking for a step called "File Rename" in the list of commands that would rename *.ogg to *.oga. But I cannot find such a command. What is the way to automate file renames in a chain?
Re: File rename command in a chain.
Posted: Tue Mar 09, 2010 3:23 pm
by kozikowski
Chain components are programmed one at a time. If you can't find a command, then it hasn't been written yet. You used to be able to do something like that in Windows Command Line. Consult your Windows manual.
Koz
Re: File rename command in a chain.
Posted: Tue Mar 09, 2010 7:50 pm
by ppay
Do you mean that I can take a Windows command line, any Windows command line, and add it as a step to a chain? Do you have an example of that where it is explained?
Otherwise, is there a tutorial about programming new commands for Audacity. I am not a programmer, but something as simple as file renaming should be quite easy to figure out.
Re: File rename command in a chain.
Posted: Tue Mar 09, 2010 8:10 pm
by steve
ppay wrote:so I am looking for a step called "File Rename" in the list of commands that would rename *.ogg to *.oga.
Audacity does not (currently) have that.
If you need to rename a lot of files, you could use a "bulk rename utility" such as this one:
http://www.bulkrenameutility.co.uk/Main_Intro.php
Re: File rename command in a chain.
Posted: Tue Mar 09, 2010 8:19 pm
by ppay
Thanks for your contribution. I know about bulk rename utilities, but it is much more powerful if it is possible to rename files inside a chain in Audacity. My needs are very simple: .oga for ogg audio instead of the default .ogg given by Audacity. Even better would be to parameter the output extension for Ogg files to .oga. The only output setting is currently the quality level of the output.
Anyway, if Audacity makes it possible for common users like me to easily program their own commands, please point me to the right tutorial for that. Otherwise, I will have to wait that someone (who?) writes a file-rename command.
Re: File rename command in a chain.
Posted: Tue Mar 09, 2010 10:51 pm
by steve
From the Windows Command prompt you can use:
If you are unfamiliar with the Windows command prompt, here's what you do in Win XP:
1) START button > Run...
2) Type "cmd" (without the quotes) and click OK (opens a command window). This will open in your user space C:Documents and Settigs<user name>
3) Use the "CD" (change directory) command to navigate to the appropriate folder, for example to go into "My DocumentsMy Music" you would type:
4) When you are in the folder where the ogg files are located, use the "ren" (rename) command as described above.
Re: File rename command in a chain.
Posted: Tue Mar 09, 2010 11:09 pm
by ppay
What does this have to do with Audacity?
Re: File rename command in a chain.
Posted: Wed Mar 10, 2010 5:51 pm
by steve
You wrote:
ppay wrote:Otherwise, I will have to wait that someone (who?) writes a file-rename command.
I wrote:
stevethefiddle wrote:From the Windows Command prompt you can use:
ren *.ogg *.oga
That's a file rename command. It doesn't run in Audacity, but it is a file rename command and will perform the file renaming that you require.
Also not to do with Audacity, why do you need to rename your .ogg files as .oga? (just wondering)
Re: File rename command in a chain.
Posted: Wed Mar 10, 2010 6:08 pm
by kozikowski
If you're a programmer, you could write an Audacity tool yourself. That would be your contribution to the open source community.
So the choices are: write it yourself, wait for somebody else to write it, do the job outside of Audacity the simplest way being Windows Command Line as written above.
Koz
Re: File rename command in a chain.
Posted: Wed Mar 10, 2010 6:55 pm
by ppay
stevethefiddle wrote:Also not to do with Audacity, why do you need to rename your .ogg files as .oga? (just wondering)
That's because I want to embed videos and audio files in html5 <audio> and <video> tags in Opera. To make it clear which tag should be used, I prefer to have .oga for audio and .ogv for video, otherwise .ogg could be either audio or video and it is difficult to decide which tag should be used.
kozikowski wrote:If you're a programmer, you could write an Audacity tool yourself.
Are there any tutorials about how to write Audacity tools?