11 Replies Latest reply on Sep 7, 2017 9:36 AM by JJMack

    Action script does not working

    andrejt72626160

      Hello.

      i made new action: It goes like this: set file info to current document (i set the file info and copyright info and save it in adobe\xmp\metadata templates before). So the action add meta data from xmp file (i choose keep original data, but append matching properties from template) and save it. Action works fine, but when i wanna do it automatic in script events manager i got nothing. I set action setting when a new document is made or when i save a document or open, but nothing works. If i save a document in jpg it has no updated copyright data.

       

      any advice?

        • 1. Re: Action script does not working
          JJMack Most Valuable Participant

          andrejt72626160  wrote

           

          Hello.

          So the action add meta data from xmp file (i choose keep original data, but append matching properties from template) and save it. Action works fine

          How do you do that logic in an action? Can you post the Action and template.  Upload them to a file sharing site and post a link to them.  I would think if you want to update metadata information that is not present you would need to script that to process the metadata that is there so you know what metadata needs to be added or updated.   That something like that could not be done in a straight action that some scripting would be needed.  I have only used metadata templates in the Bridge  to batch add metadata to image collections.  When I use metadata information in Photoshop I have always used Photoshop scripting in actions or a straight script.  The Script Event Manager can trigger scripts as well ad action as event handlers.

          • 2. Re: Action script does not working
            andrejt72626160 Level 1

            I did it exactly like in this video.

             

            • 3. Re: Action script does not working
              JJMack Most Valuable Participant

              I know File Info cam import metada from templates and see ther notes soe it look like what yot say your do is posible.

               

              Specify how you want to import the data:

              Clear Existing Properties And Replace With Template Properties

              Replaces all metadata in the file with the metadata in the XMP file.

              Keep Original Metadata, But Replace Matching Properties From Template

              Replaces only metadata that has different properties in the template.

              Keep Original Metadata, But Append Matching Properties From Template

              (Default) Applies the template metadata only where no metadata value or property currently exists in the file.

              • 4. Re: Action script does not working
                JJMack Most Valuable Participant

                Can you show a screen capture of your script event managers event handlers set up events.  I only add garbage to file info field if it not there the even manager runs my script on open document and new document events. I have not a problem. Each version of Photoshop has it own event manager. You need to set each version up.  I only use these events in CC 2015.5 and CC 2017 to get around Adob's new bug in scripting.

                 

                Is every image you edit your to place your copyright on????

                Capture.jpg

                • 6. Re: Action script does not working
                  andrejt72626160 Level 1

                  Now if I open a document i dont have copyright sign on it, when export pictire i get copyright sign on it but in file I exported i dont have info.

                  Untitled-1.jpg

                   

                  Capture.JPG

                  • 7. Re: Action script does not working
                    JJMack Most Valuable Participant

                    You should not need the export and save events and if you use export Save for web by default that will strip metadata. you need to make sure you use save for web options to preserve metadata like copyright info.

                    • 8. Re: Action script does not working
                      andrejt72626160 Level 1

                      Sorry but i realy dont get it. Even if i save it via save as, my image does not have copyright info in it, but in PS i have a sign, so if i save it again the copyright info is baked in.

                      • 9. Re: Action script does not working
                        JJMack Most Valuable Participant

                        All I can tell you is I do not have your problem on my windows 10 system with PS CC 2017.  I do not think you want the sanad data in all your file thar seems to be set in your template.  I set up a template on my machine created an action to apply it ans setup the script enevt manager ro run is one new documenf ant open docyment.  I do not test open document nut new document doe get copyrigher. as you can see here.

                        Capture.jpg 

                        • 10. Re: Action script does not working
                          andrejt72626160 Level 1

                          Thank you for your help. If I open a document my script worked fine if i make new document or if i save picture, my script doesnt work. Mystery.

                          • 11. Re: Action script does not working
                            JJMack Most Valuable Participant

                            You should not need the save event how could a document be save that was not first open or made from a new dicument.   The only thing I tested was creating new document the action was alway triggered and added the copyright. 

                             

                            Why is Open events working for you where new document events are not.  If what you state is actually happening you should be able to open a files you saved without your copright and your copyright should be added by the open document event.  Can you do that?