Skip to main content
bellevue scott
Inspiring
Nov 19, 2026 1:21 AM UTC
Question

How do I create an action that saves to the source folder?

I know this has been asked before, but after reading several threads and watching a couple of youtube videos, it’s still not answered. Or I don’t understand it. 

I want to create a droplet that reduces a file to 1500 pixels wide and then does a “save as”. I can do that, but I can only select a directory where the file always goes. I can’t tell PS to save the file in the source directory. That’s what I want. I want to save the file in the same directory as the source file. 

Scenario: We do fine art scanning. Once we are finished editing and ready to dropbox files to the client, we do the following to a file: 

  1. Flatten the TIF file
  2. Save
  3. Use File → Automate→ Fit Image: Set file width and height to 1500 pixels so the file gets reduced to 1500 pixels on the long side. 
  4. Save as → Save as JPG and append the file name with -web, ie. scanfile-web.jpg
  5. Close original file without saving. 

The action looks like this: 

 

The problem is that when I go to make a droplet, there is no option for Source Folder. If I want to create a droplet that appends a file name with -web.jpg and saves as a jpg, I can ONLY select a specific folder. There is no way to tell PS to use the source folder. If I say “save and close”, then there’s no way to append the file name. Same with the None option. 

 

How can I accomplish this seemingly simple and yet somehow impossible task? Note that I want to accomplish this with a droplet. I don’t want to have to into menus every time. It’s too time consuming to do all day long. 

 

Thanks! 

 

 

    3 replies

    Stephen Marsh
    Community Expert
    Community Expert
    Nov 19, 2026 11:02 AM UTC

    This script is generic and will probably serve you better. It will interactivly save the open image to the current folder via the standard save dialog, while automatically saving unsaved files to the desktop.

     

    https://community.adobe.com/t5/photoshop-ecosystem-discussions/save-as-isn-t-saving-to-original-folder-even-after-resetting-default-preferences/m-p/13120058

     

    Translate
    Stephen Marsh
    Community Expert
    Community Expert
    Nov 19, 2026 9:27 AM UTC

    An action by itself cannot do this as it either records the full absolute file system path and or additional filename. There is a hack around this, but the last time that I tried it no longer worked.

     

    As ​@CORCTON34033231 mentioned, a droplet or batch command using an appropriate action is probably going to be easiest.

     

    The other option is a script, which would be my preferred approach. The following example is for JPEG, it would need changing for other formats.

     

    https://community.adobe.com/t5/photoshop-ecosystem-ideas/saving-jpegs-via-an-action/idc-p/15002989

     

     

    Translate
    CORCTON34033231
    Community Expert
    Community Expert
    Nov 19, 2026 2:58 AM UTC

    Hi, you are very close — the combination you need is in your second screenshot: Destination: Save and Close + Override Action "Save As" Commands, with your File Naming already set the way you have it.

     

    In File > Automate > Create Droplet:

    1. Choose your Set and Action (keep the Save As JPEG step in the action — the Override option needs a Save As step in the action to work, otherwise the droplet won't save the file).

    2. Under Destination, choose Save and Close. Adobe's help says this "saves the files in their current location" — that is, the source folder of each dropped file.

    3. Tick Override Action "Save As" Commands. Without this, Photoshop saves to the folder recorded in the action's Save As step; with it, files are saved to the original folder when Save and Close is the destination, and can follow the naming rules in the File Naming section.

    4. In File Naming, keep: Document Name + "-web" + extension, as in your screenshot. That creates scanfile-web.jpg next to the original, rather than overwriting it.

     

    So there is no "Source Folder" destination to pick — Save and Close is the source-folder option, and Override is what stops the recorded Save As folder from taking over.

     

    References (Adobe Help, checked today):

    https://helpx.adobe.com/photoshop/desktop/automate-tasks/process-a-batch-of-files/batch-and-droplet-processing-options.html

    https://helpx.adobe.com/photoshop/desktop/automate-tasks/process-a-batch-of-files/create-a-droplet-from-an-action.html

     

    One caution: test it on a copy first — with Save and Close, a file that keeps its original name would overwrite the original, but with your "-web" naming it saves as a separate file.

    Translate