AM converter doesn't work
Closed this issue · 2 comments
yhslai commented
I have the following script:
$.evalFile("C:\\Users\\rainc\\AppData\\Roaming\\Adobe\\UXP\\PluginsStorage\\PHSP\\22\\Developer\\2bcdb900\\PluginData\\alchemist-AM-Hack.jsx");
var s2t = stringIDToTypeID;
(d = new ActionDescriptor()).putInteger(p = s2t('eyeDropperSampleSheet'), 0);
(r = new ActionReference()).putClass(s2t('eyedropperTool'));
(d1 = new ActionDescriptor()).putReference(s2t('target'), r);
d1.putObject(s2t('to'), s2t('target'), d);
_executeAction(s2t('set'), d1, DialogModes.NO);
When I run it, Alchemist captures:
const batchPlay = require("photoshop").action.batchPlay;
const result = await batchPlay(
[
{
"_obj": "invokeCommand",
"commandID": -719,
"kcanDispatchWhileModal": true,
"_isCommand": false,
"_options": {
"dialogOptions": "dontDisplay"
}
}
],{
"synchronousExecution": false,
"modalBehavior": "fail"
});
and
const batchPlay = require("photoshop").action.batchPlay;
const result = await batchPlay(
[
{
"_obj": "AdobeScriptAutomation Scripts",
"javaScript": {
"_path": "C:\\Program Files\\Adobe\\Adobe Photoshop 2021\\Presets\\Scripts\\little_photoshop\\test.jsx",
"_kind": "local"
},
"javaScriptName": "============== TEST ================",
"_isCommand": true,
"_options": {
"dialogOptions": "dontDisplay"
}
}
],{
"synchronousExecution": false,
"modalBehavior": "fail"
});
and... that's it. No actual descriptor of this action. The AM converter tab looks like:
I've downgraded to 22.3.1
.
jardicc commented
Based on my information it worked with Alchemist version 1.2.1
The problem is that the Universal listener was removed so the feature work only in specific versions. I might possibly to remove it in next version of Alchemist. So an older one will be required since also older PS is required.
jardicc commented
AM Converter is no longer supported since the underlying feature was removed from Photoshop.
Please use this instead: https://github.com/adobe-uxp/ps-es-to-uxp