Image saved as "r"

Hey,
does somebody know why this script saves the image in my temp dir with the name "r" instead of "mytest.png"?
(function(){ var renderManager = App.getRenderMgr(); var renderOptions = renderManager.getRenderOptions(); renderOptions.RenderImgTarget = renderOptions.DirectToFile; renderOptions.renderImgFilename = "mytest.png"; renderOptions.applyChanges(); renderManager.doRender() })();
Comments
I seem to recall that the temporary file saved by DS is called r.png, so until you actually do a 'save as' your save name wil lnot be applied.
RenderImgTarget is an number with three possible values.
Hey nice, this did the trick....
so everything which is under Enumerations is a number.
renderOptions.RenderImgTarget = 3;
worked and
renderOptions.renderImgToId = renderOptions.DirectToFile;
worked, too.
Thank you for your help.
But the scripts complains now about:
Can I ignore this error?
No error or warning should be ignored, something might be missing, maybe if you post a streamlined version of the code could give us an idea.
The complete code is
It is not very complex, this are my first steps in daz scripting