2 Replies Latest reply on May 6, 2015 6:52 AM by nph12

    Script that add metadata so it appears in the picture

    nph12

      Hello

      I adds metadata to all my the pictures I have taken. Is it possible to create a script that makes a text layer and writes metadata so it appears in the picture?


      How to make a script for photoshop? I have not tried it before.

        • 1. Re: Script that add metadata so it appears in the picture
          Tom Ruark Adobe Employee

          Look for Dr. Brown's Caption Maker

           

          Scripts Archive

           

          It still works on CC 2014! You will probably have to manually move it to your CC 2014 (or other version)

          • 2. Re: Script that add metadata so it appears in the picture
            nph12 Level 1

            I like to build my own script (this is the first!). How do I can the script on all my pictures? And how do I add two layers to my script - headline and decription?

             

            var headline

            var description

             

             

            docRef = activeDocument;

            var myLayerRef = docRef.artLayers.add();

             

            textColor = new SolidColor

            textColor.rgb.red = 255

            textColor.rgb.green = 255

            textColor.rgb.blue = 255

            myLayerRef.kind = LayerKind.TEXT;

            myLayerRef.textItem.size = 72;

            myLayerRef.textItem.font = "Arial";

            myLayerRef.textItem.color = textColor;

             

            myLayerRef.name = "Headline";

            myLayerRef.textItem.position = Array(0.75, 18)

             

            headline = docRef.info.headline

            myLayerRef.textItem.contents = headline;