Posts: 2833 from 2003/2/8
From: USA
@GMKai
There are a few other secrets you would need to use for your project. First, you'll want to put your options into a variable, like so:
Set LameOps="-hkm"
Use whatever options you want, just make sure that you put all of your options into one variable, making the rest of the script easier to write.
The next problem is, do you want to name the file when you encode something? If you don't mind typing in the name of the file, you don't have to do anything funny. Just type in the name of your output file into the destination requester.
For example:
requestfile initialvolumes >ENV:LameOutVar
The input file requester will be very simular,
requestfile initialvolumes >ENV:LameInVar
The use of the options, in this example, is static, and the other two options are based on user selectable action. Now, you simply need to combine them all...
SET LameCommand="Path/to/lame.elf" $LameOps $LameInVar $LameOutVar
The above combines all of the variables into ONE string, LameCommand. Now, you can run your command. Simply place your new variable on a line by itself:
$LameCommand
That's it, finished!
It will not be too pretty this way, since you will have to type in the name of the outfile into a requester, but it should work.