Skip to main content
Handycam
Known Participant
August 25, 2010
Answered

Create an Action which saves images to same directory?

  • August 25, 2010
  • 4 replies
  • 32486 views

I have several folders of  TIFF images.  I need to process them individually, then save them as JPG in the same folder the original TIF was in.

I  created an action with provides several of the final steps I need, including the "Save As".  I clicked the "modal" option for the "save as" step, so I can edit the name as need be before saving.

My problem is the action "remembers" the directory path in which the action was created (i.e. the first folder).  When I run the action on images I've opened from other folders, it defaults to the first folder.  So I need to navigate to the current folder every time.  This is a pain.

How can I just have the action open the save as dialog to the same directory as the currently open image?

    Correct answer Darkroomdevil

    I have found this also works ...

     

    Duplicate the file, then record an action using File > Save (Not SAVE AS!!!)

    Stop the action you are done - put whatever steps you want before and after the action

    Make sure the Toggle Dialog is on in the action for the Save step.

     

    When you use Save As it will target the recorded folder, when you use Save it targets the current folder unless the toggle dialog is set to off and then it targets the folder used to create the action.  When you look at the steps in the action the detail looks the same ... 😉

     

    4 replies

    Darkroomdevil
    DarkroomdevilCorrect answer
    Inspiring
    July 16, 2020

    I have found this also works ...

     

    Duplicate the file, then record an action using File > Save (Not SAVE AS!!!)

    Stop the action you are done - put whatever steps you want before and after the action

    Make sure the Toggle Dialog is on in the action for the Save step.

     

    When you use Save As it will target the recorded folder, when you use Save it targets the current folder unless the toggle dialog is set to off and then it targets the folder used to create the action.  When you look at the steps in the action the detail looks the same ... 😉

     

    Participating Frequently
    September 29, 2023

    Thanks so much Darkroomdevil - I had been tearing my hair out over this! 🤯 Doing as you suggested and toggling the Save step worked for me!  🤩

    joshuala101
    Participant
    January 13, 2020

    Figured it out 🙂 Been bugging me for ever on this.  I Always need to save a psd (rgb) then a Tiff for print CMYK in same folder and always have an issue of it not saving the tiff in the folder always remembering the folder I created the action with.  Here is my fix: 

     

    ***Create a temp folder on your server (see the end its not the same as other fixs, to some it up you will delete this folder after you create the action)

    In photoshop creat an action - Save file (save as psd with layers):Flatten image:Change to CMYK: file save as Tiff - Save as copy - Save to Temp folder you created on server or where ever you saved it: History state back2 or 3 (so you have your layers again to make further edits if needed): can save again as psd but not needed.  STOP ACTION: Make sure action is prompted to show options on second save. 

     

    DELETE TEMP Folder - Doing this we make it default back to last save folder - PResto!


    Run ACtion 

     

    Participant
    March 3, 2025

    Thank you!
    I couldn't figure out how to create Temp folder, so I saved the file to the USB flash drive and pulled it out. If you use USB a lot, I think you can change the Letter of the drive to Z for example, create action and then get back to default letter.

    Halo Photography Ltd
    Known Participant
    April 27, 2019

    The best answer that I've found is to set the action to save, to say, a folder on your desktop called "Edit" and then move all of the  images you create in the edits folder out, to where they are to be stored when you've finished the set. Only efficient for working on big sets of photos. If I'm just doing one or two then better to save as in the default path folder.

    Participating Frequently
    September 25, 2021

    This is a pain. I too just want it to save in current folder.

     

    Stephen Marsh
    Community Expert
    Community Expert
    September 26, 2021

    @Nodnarbius 

     

    Nothing has really changed in the 10+ years since this topic was created regarding actions and your request, so off the top of my head your options are:

     

    1) A custom script

     

    2) Download and install the Image Processor Pro script and record it into an action, as this does allow saving into the source folder or a subfolder of the source.

    August 25, 2010

    You could use File.Automate>Batch

    .

    Set the source folder to the folder with your images.

    Set the destination folder to any folder (does not matter in this case)

    Check the Override Action "Save As" Commands box.

    Under Play, choose your action with the save step.

    With the enable dialog checked in the save step in your action,

    using batch should open the Save As dialog in the source folder.

    If you would rather open all your images first, instead of one at a time,  you can set

    the source to opened files.

    If you do it this way, it's probably a good idea only have the images that you want to

    process open. (i.e. images from the same folder)

    MTSTUNER

    Handycam
    HandycamAuthor
    Known Participant
    August 25, 2010

    Yes, I knew of those ways. But I was trying to create a portable action

    wherein anyone could simply run it on an opened file to prompt for saving,

    BUT default to the directory the opened file was in (rather than the one in

    which the action was created.

    August 25, 2010

    Well it would have helped if you had said that in the first place.

    You might be able to do something like that with scripts.

    http://forums.adobe.com/community/photoshop/photoshop_scripting

    MTSTUNER