C# Running Actions Command Play Currently Unavailable
I have a C# project that I am attempting to Open Photoshop 2019, Run Auto Crop and Straighten on a Canon Raw Image, and save the output image as a TIFF. I have a Action to perform those tasks. Running the action in Photoshop works 100% of the time.
When attempting to run the action in a Visual Studio 2019 C# windows app. I am referencing Photoshop.DLL object library. When I run "DoAction", I receive a
System.Runtime.InteropServices.COMException
'General Photoshop error occurred. This functionality may not be available in this version of Photoshop.
- The command "Play" is not currently available.'
StackTrace " at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)\r\n at Photoshop._Application.DoAction(String Action, String From) .... etc etc.
I some success getting furhter in the process with Photoshop 2020 Type Library but it still wouldnt get through the Actions.
Any ideas what is causing this and any solutions? I would like to use 2020 if possible.
