Anyone able to use these Photoshop only events?
Hi,
I'm referring to these ones:
- com.adobe.PhotoshopWorkspaceSet
- com.adobe.PhotoshopWorkspaceGet
- com.adobe.PhotoshopWorkspaceAware
- com.adobe.PhotoshopWorkspaceData
- com.adobe.PhotoshopWorkspaceRequest
- com.adobe.PhotoshopQueryDockingState
Has someone been able to find a way to use them?
I've naively tried:
var csInterface = new CSInterface();
var event = new CSEvent();
event.type = "com.adobe.PhotoshopWorkspaceSet";
event.scope = "APPLICATION";
event.appId = csInterface.getApplicationID(); // "PHXS"
event.extensionId = csInterface.getExtensionID()
csInterface.dispatchEvent(event);
var PhotoshopCallback = function(evt) {
console.log("Fired!", evt);
}
csInterface.addEventListener("com.adobe.PhotoshopWorkspaceSet", PhotoshopCallback);
but I'm not sure whether I'm supposed to only dispatch the Event in order to make something happen (like the com.adobe.PhotoshopLoseFocus, returning focus from the panel back to PS), or the addEventListener is needed too.
Hints? 😉
Thanks,
Davide Barranca
---
