Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
10

script relink bypass raw converter

New Here ,
Nov 30, 2023 Nov 30, 2023
I have tried to make a script that relinks to the raw file.
It actually works very well, but it opens the raw converter every time.
Since the whole thing must be run as a batch, I would like to avoid having to press enter key 100 times.
Someone who can help with a way to script through the raw converter without adjusting already adjustments.
TOPICS
Actions and scripting , Windows
380
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Nov 30, 2023 Nov 30, 2023
LATEST

This is the code im running:

var activeDoc = app.activeDocument;
var filepath = new File(activeDoc.fullName);
var bottomLayer = activeDoc.layers[0];
createSmartObject();
function createSmartObject() {
    var idnewPlacedLayer = stringIDToTypeID( 'newPlacedLayer' );
    executeAction(idnewPlacedLayer, undefined, DialogModes.NO);
}
function relinkSO(path) {
    var desc = new ActionDescriptor();
    desc.putPath(charIDToTypeID('null'), new File(path));
    executeAction(stringIDToTypeID('placedLayerRelinkToFile'), desc, DialogModes.NO);
} // end of relinkSO()

// Relink active layer(smart object) with a provided file path
relinkSO(filepath);
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines