I found a solution, the older (depricated as of 3.0) CSXSInterface worked!
import com.adobe.csxs.core.CSXSInterface; import com.adobe.csxs.types.SyncRequestResult; // jsx script contains fw.getDocumentDOM().setDocumentImageSize() var result:SyncRequestResult = CSXSInterface.getInstance().evalScript("jsxFunction"); // This has a value trace("Returned a value:" + result.data.success);
This looks like a CSInterface bug, since the problem doesn't happen with CSXSInterface.
I have the same problem here.
I'm trying to use the evalScript, but CSInterface.instance, and CSXSInterface.getInstance(), and CSXSInterface.instance always give me a Error #1009.
This is the line that generates the error:
CSInterface.instance.evalScript("alert('x', 'y', false)");
I'm using the CSXSLibrary-3.0-sdk-4.5-public.swc from http://download.macromedia.com/pub/developer/creativesuite/extension-builder/cssdk-free-2. 0.zip.
My Photoshop is CS6 version: 13.0 x64.
Any help will be appreciated!
Thanks a lot!
Found the solution!
I was using the wrong SDK.
Flex 5.6.0 instead Extension Builder 3.4.