Simple Flash Panel fails in Windows, not on Mac.

Discussion of actual or possible Bugs, Anomalies and Documentation Errors

Moderators: Tom, Kukurykus

kpt

Simple Flash Panel fails in Windows, not on Mac.

Post by kpt »

Here's an interesting bug:

I've created a very simple Flash panel:
Code: Select all<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeig\
ht="600">
        <mx:Script>
                <![CDATA[
                        import com.adobe.csxs.core.CSXSInterface;

                        public function runEnlarge():void {
                                CSXSInterface.instance.evalScript("enlarge133");
                        }
                ]]>
                </mx:Script>
        <mx:Button x="25" y="26" label="Enlarge" click="runEnlarge()"/>

</mx:Application>

And this is the Javascript with the same name:
Code: Select all
enlarge133 = function() {
  try {
    var layer = app.activeDocument.activeLayer;
    layer.resize(133.33333, 133.33333, AnchorPosition.MIDDLECENTER);
  } catch (e) {
    alert(e);
  }
};

I've zipped up these files in http://irstafoto.se/upload/PS/SimpleTest.zip if anyone wants to try.
The two files should be placed in Adobe Photoshop CS5/Plug-ins/Panels/ folder.

Now, here's the case where it goes all wrong, but only in Windows (for me, at least).

Opening the following file: http://irstafoto.se/upload/PS/enlargetest.psd which looks like this:



Open the Panel with Window > Extensions > SimpleTest, and click on the Enlarge button. This gives:



It works if the smart object is rasterized to an ordinary layer.

Has anyone experienced this?

I have tried resetting Photoshop (ctrl+shift+alt while starting up) and also tested the .jsx file through normal scripting (works fine), so there's something funny going on with the Flash panel here.

I'd be happy to post this somewhere else if someone can advice me.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

ambren
Posts: 1
Joined: Tue Jan 08, 2019 10:46 am

Simple Flash Panel fails in Windows, not on Mac.

Post by ambren »

Steps to Reproduce:
Save the following to a jsx file, open the file in ESTK, and hit the Run button.

#target photoshop
"]]>";
$.writeln("done");

Actual Result:

ESTK locks up requiring a restart.

Expected Result:

https://www.shutterstock.com/image-vect ... 4eUag-1-51