4 Replies Latest reply on May 5, 2010 7:09 AM by Paul Riggott

    Adding Metadata to JPEG, EPS, PSD, TIFF


      Hi all,


      I would like to know how if is possible to a read and write metadata (basically Caption and Kewords fields) to a different kind of files (EPS with JPEG compression, TIFF, JPEG, PSD...) WITHOUT opening them in Photoshop.

      I need to manage all from Scripting, usually AS or AppleScript Studio.

      At the moment I do this opening them, writing them and resaving them but I would like to know if a more faster and professional way exists.

      I know exiftool but I would like to use Adobe routine or products.



        • 1. Re: Adding Metadata to JPEG, EPS, PSD, TIFF
          Paul Riggott Level 6

          You can do this with javaScript in Bridge, as an example see..


          • 2. Re: Adding Metadata to JPEG, EPS, PSD, TIFF
            capste Level 1

            Hi Paul,


            this means that I can instruct from my app Bridge to inject Metadata to my files




            I need to manually launch Javascript from Bridge on selected images?


            Sorry for the question but I don't now JavaScript.

            What I need is a library/routine to call that inject (reading or writing) metadata to different kind of images (EPS, TIFF, JPEG, PSD) without "opening" them visually in Photoshop.



            • 3. Re: Adding Metadata to JPEG, EPS, PSD, TIFF
              Muppet Mark-QAl63s Level 4

              Stefano, I would have thought that 'exiftool' was the best solution for you by far. Never done it but if I recall correctly the developer allows for this to be included in your AppleScript Studio app? The problems that you are going to encounter with the Bridge option are No Access to the Application directly from AppleScript, Bridge is ONLY scriptable via Adobe's ExtendScript/JavaScript. Adobe's other Applications allow AppleScript to perform JavaScript so the ONLY way to communicate with Bridge is via one of these and the BridgeTalk messaging system. Although Bridge will alter the metadata without actually opening the file you will end up launching 2 App's if they are NOT already running. If you don't already know JavaScript then the learning curve for what's involved in this process is considerably more than that of the 'exiftool' man pages. Plus I would expect the performance of calling the shell from your app would blow the Adobe route out of the water… BTMO

              • 4. Re: Adding Metadata to JPEG, EPS, PSD, TIFF
                Paul Riggott Level 6

                Mark has covered most of the details. It all depends if you want the same metadata to be added to a particular type of file or custum metadata for each file. It may be possible to use Cron to schedule a run of a script. This may require a hot folder where the new documents are to be placed so that the metadata it updated and files moved to somewhere else. If it is the same data, Exiftool would be the best approach.