У меня есть эта функция в моем JS файле ...
function get_HexForegroundColor()
{
var chosenFunction = 'pickHexForegroundColor()';
csInterface.evalScript(chosenFunction, function(result)
{
hexForegroundColor = result;
// etc...
});
};
, который получает значение из этого Функция в JSX файле.
function pickHexForegroundColor()
{
var decimal_Color = app.foregroundColor.rgb.hexValue;
var hexadecimal_Color = decimal_Color.toString(16);
return [hexadecimal_Color];
};
По некоторым причинам я хочу передать a переменную из JS *От 1022 * до JSX . В моем случае, как я могу это сделать?
Спасибо за ваше время !!!