leo_revzin's profile

11 Messages

 • 

218 Points

Fri, Sep 27, 2019 8:15 PM

Request: Add Scale Styles option to "resize image" command in AppleScript

The "resize image" command in AppleScript performs the Image Size command in Photoshop.

However, with the AppleScript's command, the Scale Styles option is not enabled. Which, obviously, leads to undesired results in many cases.

Unless I'm missing something, there's no way to enable the Scale Styles option in AppleScript.

So I hope Adobe can add this parameter to the "resize image" command in AppleScript.


Thanks,
Leo


P.S. There's also another Photoshop support forum at https://community.adobe.com/t5/Photoshop/bd-p/photoshop

I wonder which one is the right place to submit feature requests and bugs to Adobe?

Responses

954 Messages

 • 

15.3K Points

2 y ago

Could you record action manager code with script listener? It could capture this option.

11 Messages

 • 

218 Points

Thanks Jaroslav,

But can you please elaborate on this?

It looks like I'm not familiar with these options...

How do I record action manager code with script listener?


Thanks,
Leo

11 Messages

 • 

218 Points

Thanks Jaroslav,

I got the code below on another forum... I can run it from AppleScript and it works.

Better than nothing - but I hope that Adobe will listen and give us the Scale Styles option as a regular AppleScript parameter.


var idImgS = charIDToTypeID( "ImgS" );
    var desc764 = new ActionDescriptor();
    var idWdth = charIDToTypeID( "Wdth" );
    var idPrc = charIDToTypeID( "#Prc" );
    desc764.putUnitDouble( idWdth, idPrc, 50.000000 );
    var idscaleStyles = stringIDToTypeID( "scaleStyles" );
    desc764.putBoolean( idscaleStyles, true );//scale styles here
    var idCnsP = charIDToTypeID( "CnsP" );
    desc764.putBoolean( idCnsP, true );
    var idIntr = charIDToTypeID( "Intr" );
    var idIntp = charIDToTypeID( "Intp" );
    var idbicubicSharper = stringIDToTypeID( "bicubicSharper" );
    desc764.putEnumerated( idIntr, idIntp, idbicubicSharper );
executeAction( idImgS, desc764, DialogModes.NO );

954 Messages

 • 

15.3K Points

Probably not. There will UXP scripting and this will have shiny new DOM with all features. But they will get rid of Extend script and probably also apple script.