you can, just use the ScriptLog to get a dump of the actionscript. You should be able to pick out the few variables in there that you can change. Then just wrap it in a nicer function. However, in my experience, I would suggest using the command line tools or some other process further down to do this. Its a better separation of responsibilities.
The action script is pretty gnarly, I think i’ll stick to the command line tools. Thanks!
LOL, guess I’m out of luck with the NVidia plugin:
#target photoshop
[B]// TODO needs work to support SaveAs with options and extensions on or off[/B]
app.activeDocument.saveAs( File ( "ddsTest1.dds" ), undefined,