I may well be wrong but at a very quick glance I would say that you have recorded the playing of an action… What you need do with scriptlistener is record the process/dialog or what ever it is again and utilize the output from that…
You ´re right, the copied file displays the playing of the action.
But the recording of the action itself give´s even less information, non of the settings were recorded?
var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
var desc9 = new ActionDescriptor();
var idjsCt = charIDToTypeID( "jsCt" );
desc9.putPath( idjsCt, new File( "C:\\Program Files\\Adobe\\Adobe Photoshop CS5 (64 Bit)\\Required\\HDRToning.jsx" ) );
var idjsMs = charIDToTypeID( "jsMs" );
desc9.putString( idjsMs, "undefined" );
executeAction( idAdobeScriptAutomationScripts, desc9, DialogModes.NO );
If you recorded an action that you use menu Image>Adjustments>HDR Toning... that step would record the uses of a script that ships with Photoshop CS5. On a Windows system its "C:\Program Files\Adobe\Adobe Photoshop CS5\Required\HDRToning.jsx" This script seems to retrieve the last setings it saved and set its dialog settings to them. It is not coded as a plugin like the Fit Image Script that will record its Dialog Settings into an Action step and not display a dialog when the action step is played. It is a more normal script like the Image Processor that will record the dialog setting used the last time it was used and will display then in its dialog when it displays it for user interaction as a starting point. This script is interactive through its dialog. If batched the dialog will cause the batch process to be interavtive for each image.
So your action does not get your settings recorded into it but the script does retrieve settings you used and records changes you make to then during its execution.
To do what you want you would need to program an HDR Toning Script that is a Photoshop Plug-in script like the Fit Image script shipped with CS5 is. Look at the Plug-in support in "C:\Program Files\Adobe\Adobe Photoshop CS5\Presets\Scripts\Fit Image.jsx" You may be able to creat the script you need by examining these two scripts.
Im not sat in front of a box equipped with CS5 at the moment… Even so it appears that HDRToning is a pre-installed script… Have you tried open it in the ESTK to see what it does? Thats if it not some binary…
Thanks for replying, thought, that i might cope without writing a script?
I tried to record some other apps from the image adjustments panel, but most of them came out with settings in the scriptlistener?
ESTK ships with Photoshop "Adobe ExtendScript Toolkit CS5" and is the default application if you double click on a jsx file. I'm just a script hacker and the way "C:\Program Files\Adobe\Adobe Photoshop CS5\Required\HDRToning.jsx" interacts with Photoshop and its features or plugins is above my knowledge It also looks like it will always prompt you to flatten images that are not flat. How the actual toning is done I do not see in the script. I never knew the "C:\Program Files\Adobe\Adobe Photoshop CS5\Required\" contained a script till your append and I recoeded a Photoshop Action to see what would be recorded in the action step. I do not understand the structure and the functions in the "HDRToning.jsx" script. Do not know if it would even work if you executed it from the ESTK and not from menu Image>Adjustment>HDR Toning... .