This sort of thing is quite easy to accomplish in Windows using Notepad and the keyword Start.
You would type something like
start amencoder.exe (although I don't know the exact full path and exact name of Adobe Media encoder).
Save your text from above into notepad as a .bat file .
I'm not sure how this would be done in Mac but I'm sure there are similar options using the Terminal.
Why do you need to do this when you have an icon that can be double-clicked to invoke the program, by the way?
I need to be able to have media encoder run with specific settings established ahead of time.
I run several programs this way. I can automate a large list of commands.
For example I can render a sequence of images in Maya, then composite in after effects and then encode in media encoder without opening the programs.
AfterEffects has a render utility, I was hoping media encoder might
.bat file contains this:
Render -s 1 -e 600 -x 2048 -y 1536 -im filename filename.mb
set AE_RENDER_APP=C:\"Program Files (x86)"\Adobe\"Adobe After Effects CS4"\"Support Files"\aerender.exe
set AE_RENDER_SETTINGS="Best Settings"
%AE_RENDER_APP% -project %AE_PROJECT% -comp %AE_COMP_NAME1% -output %AE_OUTPUT_MOV1% -RStemplate %AE_RENDER_SETTINGS% -OMtemplate %AE_OUTPUT_QUALITY%
I understand now.
I only found this reference when I did a quick search on the web:
It mentions using XML as profiles so it's probably able to use settings that are configurable in XML and piped into the command line set. I'm not sure if this is a universally applicable entry (meaning that it runs the same on both Windows and Mac and all you need to do is plug in the path in either case relative to the OS). Try it out and report back with your results. I don't have anything to render/convert at the moment so I can't try it out for you.
sometimes you can type the name of the command in DOS with a following "/?" to get more information about the command as a help doc pops up. (if 'help' "program name" doesn't work).