Now I see I can use:
error = sPSActionDescriptor->PutObject(desc, keyAs, classGrayscaleMode, EPSDescriptor);
if (error) goto returnError;
...
error = sPSActionControl->Play(&result, eventExport, desc, plugInDialogSilent);
if (error) goto returnError;
But that's just breaking my action when I add it. Any suggestions?