Thanks for link to Stack Flow .Net C# code
However this code (adjusted for actual file names ) creates error as follows;
Win 32 Exception was Caught
The specified executable is not a valid application for this OS platform.
So cannot in .NET C# treat .Jsx as Script or Exe - so how can I execute the JavaScript .Jsx file?
Stephen
Finally found a working Solution for .NET C# to use .JavaScript .JSX files.
Add Reference from COM object for Photoshop
Add to top of Code page;
using Photoshop;
Code required is;
string cFile = HttpContext.Current.Server.MapPath("~/Test Action.jsx");
Photoshop.ApplicationClass app = new Photoshop.ApplicationClass();
string[] aArguments= new string[0]; // as no Parameters
app.DoJavaScriptFile(cFile,aArguments,1) ; // not sure why it is 1 as final parameter could not find documentation on options.
app.Quit();
Thanks for contributions.
Hope this solution helps, somebody else.
Stephen