Let's use Fit Image.jsx as an example.
I can call it with a chunk of code that looks like this:
Stdlib.PSfitImage = function(width, height) {
var desc = new ActionDescriptor();
desc.putUnitDouble( cTID('Wdth'), cTID('#Pxl'), width );
desc.putUnitDouble( cTID('Hght'), cTID('#Pxl'), height );
var fitId = sTID('3caa3434-cb67-11d1-bc43-0060b0a13dc4');
return executeAction(fitId , desc, DialogModes.NO );
};
My problem is that the descriptor that is returned has 0 elements in it. I
really need that result descriptor. Is there something I can change in Fit Image
to make it seamlessly return the descriptor, or do I have to stream it to and
from a file on disk?
-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com