2 Replies Latest reply on Jun 6, 2010 5:23 PM by hipgrrl

    Change file name on save

    hipgrrl

      Hi all- I am new to scripting, and have come across a problem I am not able to figure out using conventional methods.

       

      Part of my post processing calls for the crop and straighten filter. My action runs crop & straighten, closes the original file then after a couple more steps saves the resulting cropped  image as an uncompressed tiff. The problem is when the cropped file is created, Photoshop adds " copy" to the file name.

       

      Is there any scripting way to remove " copy" from the file name during the save as tiff?

       

      Any help would be greatly appreciated.

        • 1. Re: Change file name on save
          Michael L Hale Level 5

          You should be able to change the name to anything you like including removing the word copy from the name. If you will post the save part of your script I will show you how to change it.

          • 2. Re: Change file name on save
            hipgrrl Level 1

            Thanks for the response.

             

            I am currently not using scripting at all in my workflow so originally the steps of my action were as follows:

             

            crop & straighten

            select previous document

            close current document without saving

            place gif image into image (watermark)

            flatten

            save as uncompressed tiff to c:/highres

            image size 72 DPI

            fit image 900 px 900 px

            save as jpeg to c:/lores

            close

             

            The workaround way I came up with to get around having copy in the  file name is to do:

             

            crop & straighten

            select all

            cut

            close current document without saving

            paste

            select transparency channel

            crop

            place gif image into image  (watermark)

            flatten

            save as uncompressed tiff to c:/highres

            image size 72 dpi

            fit image 900 px 900 px

            save as jpeg to c:/lores

            close

             

            I would like to keep the action as it is in the first version and not have to use the workaround I came up with, so I can just add a script at the end to save the image and remove the word copy from the file name.