Well part of my workflow has me creating the drawing in Illustrator then exporting it to Photoshop to do all the raster things. These are architectural drawings (before they get to Illustrator they are born as CAD drawings.) I'm generating "pretty" display drawings. There is a lot of them so a lot of the "actions" on the files are repetitive and consistent. I've already got scripts for both the Illustrator and Photoshop side (that include exporting now). I'd like to invoke the Photoshop script from the Illustrator one, rather than having to manually run it from Photoshop.
The reason that the BridgeTalk "eval()" solution isn't ideal, is that these are fairly "large" scripts. Preparing them to be escaped so they could be "eval()"'d is just a bit of a nuissance to me. Not the end of the world mind you, just a nuissance.
Does a simple File.execute() work if the Ps script is in the correct location? The othe way to avoid bridgtalk is use AppleScript or VB to use app do script in both…?
Yeah in the end I'm considering to just create the whole "workflow" in VBS . I prefer js so much more. Having not touched AS since the 7.0 (maybe 7.5) days, you can understand my reservation on digging into that again. At least I'm already on a Windows wks for the CAD process, if I can automate *everything* in VBS for PS and AI I'll be happy.
Why not send a small message through BridgeTalk ? I just got this from the scriptListener. As you can see it has a path you can use.
var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
var desc1628 = new ActionDescriptor();
var idjsCt = charIDToTypeID( "jsCt" );
desc1628.putPath( idjsCt, new File( "D:\\SCRIPT 2\\whatever.jsx" ) );
var idjsMs = charIDToTypeID( "jsMs" );
desc1628.putString( idjsMs, "undefined" );
executeAction( idAdobeScriptAutomationScripts, desc1628, DialogModes.NO );