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

  • 1
  • Problem
  • Updated 10 months ago
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?
Photo of Leo Revzin

Leo Revzin

  • 6 Posts
  • 0 Reply Likes

Posted 10 months ago

  • 1
Photo of Jaroslav Bereza

Jaroslav Bereza

  • 952 Posts
  • 254 Reply Likes
Could you record action manager code with script listener? It could capture this option.
Photo of Leo Revzin

Leo Revzin

  • 6 Posts
  • 0 Reply Likes
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 );
Photo of Jaroslav Bereza

Jaroslav Bereza

  • 952 Posts
  • 254 Reply Likes
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.