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

add metadata via photoshop

Contributor ,
Mar 09, 2016 Mar 09, 2016

I have this script to currently use while about to save an image however I would like to remove the save as and just simply make a script that when run adds the metadata.

function saveAS() {

if(!documents.length) return;

activeDocument.info.captionWriter = "Editted_by_Test";

if(activeDocument.layers.length > 1){

var desc2 = new ActionDescriptor();

var desc3 = new ActionDescriptor();

desc3.putBoolean( stringIDToTypeID('maximizeCompatibility'), true );

desc2.putObject( charIDToTypeID('As  '), charIDToTypeID('Pht3'), desc3 );

try{executeAction( charIDToTypeID('save'), desc2, DialogModes.ALL );}catch(e){}

}else{

try{executeAction( charIDToTypeID('save'), undefined, DialogModes.ALL );}catch(e){}

}

};

#target photoshop

Many Thanks

Matt

TOPICS
Actions and scripting
490
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

correct answers 1 Correct answer

Community Expert , Mar 09, 2016 Mar 09, 2016

Would the line

  1. activeDocument.info.captionWriter = "Editted_by_Test"

suffice?

Translate
Adobe
Community Expert ,
Mar 09, 2016 Mar 09, 2016

Would the line

  1. activeDocument.info.captionWriter = "Editted_by_Test"

suffice?

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
Contributor ,
Mar 09, 2016 Mar 09, 2016
LATEST

You know I swore I tried that. But yes that does suffice!

Many Thanks

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