Create a photoshop action to save a batch of images as models

I try to use Photoshop actions to the script on the image of a thousand in PAT files files. I'm running a problem with actions when it comes to defining a model. The program naturally selects the file name as the name of the template, when do it manually, but when I do this while recording a Photoshop action saves the file name used in the creation of the action and then uses this file for all models of sripted name. Is it possible to change this setting to select the name of the current file instead?

http://i.imgur.com/VVfo9.png

That should be all you need...

createPattern();function createPattern() {    var desc6 = new ActionDescriptor();        var ref3 = new ActionReference();        ref3.putClass( charIDToTypeID('Ptrn') );    desc6.putReference( charIDToTypeID('null'), ref3 );        var ref4 = new ActionReference();        ref4.putProperty( charIDToTypeID('Prpr'), charIDToTypeID('fsel') );        ref4.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );    desc6.putReference( charIDToTypeID('Usng'), ref4 );    desc6.putString( charIDToTypeID('Nm  '), app.activeDocument.name.replace(/\.[^\.]+$/, '') );    executeAction( charIDToTypeID('Mk  '), desc6, DialogModes.NO );};

Tags: Photoshop

Similar Questions

  • Photoshop action - multiple save as

    Hi all.

    I'm doing an Action to save on multiple versions of a file, which can be applied to many different files all in different destinations.

    How can I edit and delete the 'IN' setting in the steps save as actions?

    I tried the "Insert" menu, but even when we click on SAVE AS he recorded only as SAVE (with the copy).

    I see there is a SAVE AS PHOTOSHOP PDF in the Production defined in the default actions, but it has graduations of differet to what I need.

    Any help is appreciated

    Hi all

    The detailed problems is first of all a problem I encounter also and it maybe a case that I am asking too much, but I really don't think - here's the question: -.

    I create the product pages of information for my site (www.formyoffice.co.uk) and each product has an HD picture, a picture of STD, an article link image and a thumbnail image, and these are sized squares images in pixels for the following sizes HD = 750, STD = 350, Section = 150, inch = 75 pixels.  I'm hoping to implement an automated process which, once I'm done to change the image of him that (suppliers/manufacturer/client/showroom photo) and I could save this HD image, then run a lot and adjust the image to the required size AND save this image for use.  I just finished a process of 'Action' and that works well, but have a problem with the file name that the new image is then saved under and it's making this useless automated process.  So if my original image was called, for example "OSCO-Test-HD - 1.jpg" my process held an action to deleted ".jpg" and then re - save with addition of ' "-350 for STDS,"-tna "section, and"-tnb "for thumb but the problem is that the filname will not update the real file it looks and continues to change the file name for the new file" Wibble-Test-HD-1 "arise the following"OSCO-Test-HD-1 - 350.jpg"" "» , "OSCO-Test-HD-1 - tna.jpg" and "OSCO-Test-HD-1 - tnb.jpg" instead of the economy as the correct extensions "Wibble-Test-HD-1-350", "Wibble-Test-HD-1-tna" and "Wibble-Test-HD-1-tnb".»

    Am I asking too much here?  The file name does not update but I can't the action to use the original file current that will alter it to create these other images he keeps just by using the file name used when creating the Macro action process and then this updates.  Any help will be greatly appreciated and I think this will help Tigo88 I think it's the same problem.

    Richard Kings

    ForMyOffice

  • Photoshop action to save pictures with background

    Hello

    I have a lot of images, and I want the patch follow these steps for each image:

    1. I want to create a new document with 2700 * 2050px size, canvas size.

    2. I want to fill the paper with pattern to make a background.

    3. then I need to place every single image on the canvas.

    4. then I need to save the image in JPG format and close the file without saving the changes.

    I tried to create and action one make an image I want, the problem is that when I select automate and select the source folder, it takes the first image first and do as I want, while the rest of the images, it takes the image and save it as jpg without creating a new file with fill pattern!

    Can anyone help please?

    Final happen how it should look like:

    FinalResult.jpg

    To use as a background texture:

    ipad_texture_landscape.jpg

    Original images:

    Who-Hid-the-Eid-Lamb-print2_Page_01.jpg

    Your model must have a Photoshop background.  You know, the one that not support transparency of the layer locked down dose.  The one and only background layer.  Without this layer your model is not cpmpatable with my scripts.  Notice the rule 2 of the rules on the four models. My Script has generated this message because there is no background layer in your model.

    1. Models of photo collage for the desired print size - width and height of the size and DPI print resolution.
    2. Photo collage templates must have a background layer in Photoshop. The content of this layer can be anything.
    3. Photo collage templates must have alpha channels named "Picture 1", "Picture 2"... "Picture n".
    4. Photo collage templates layers above the background layers must provide transparent areas to reveal the images which will be placed below them.

    Convert the bottom layer in your background model.  menu layer > new > layer background

    Its the only necessary layer for your model.

  • Save a batch of images to multiple jpg formats

    I'm used to be able to use Dr. Brown's Image Processor Pro to take a lot .psd or .tiff to images and save them in several resolutions on various media. For example, I could take 10 .psd files and save a copy of each of 12 with no resize jpg quality and at the same time save another copy to quality resized 8 to 600px. Now with PS CC; Bridge CC, etc. Dr. Brown will not work and the image in Bridge processor option will only allow me the option to save in a quality of jpg and then another type of file, a total the .psd or the .tiff.

    Is there a way I can find my jpg several economic option.

    Any thoughts would be appreciated.

    Ben

    Download the latest version here: ps-scripts-browse/Image Processor Pro / Beta v3_2 on SourceForge.net

    Russell Brown was written by Xbytor and this is his site. It is now the script updated.

  • Run the Photoshop Action of the bridge on the raw files without creating a folder JPG

    I created a Photoshop Action that resizes and compresses an image (at 800 pixels at 24% quality). I want to run that Action of bridge on a selection of raw files. I have to do this, the bridge, select the images and select "tools-Photoshop-Image Processor". "In the window options 'Processor of Image', I put the folder to save the images processed, check the ' Action run" check box and select the Action but I have to check one of the 'file Type' (I check '"Save as JPG' with ' quality: 1" ") (it will run only if a"file Type"is selected), then click on 'run '. It then performs the Action on each image and I get the desired resolution file reduced and reduced the size of the file. The problem is that there also creates a JPG subfolder and creates another set of files also to the reduced resolution but the file sizes are larger than the game created by the Action.

    How can I run the Action without creating the subfolder containing the extra set of files whose size size JPG?

    I use v4.0.5.11 Bridge CS5, Photoshop CS5 v12.0.4x32 and Windows XP Pro SP3.

    Thanks to anyone who can help me.

    Batch processing, see options for the dialog box:

    Delete the file Open Options Dialogs (prevents the dialog box camera raw of opening)

    Delete (optional) color profile warnings

    Under Destination set to None (the files are backed up to where the files specified in the save for web (export) step and close step on the farm in action.)

  • Question put in place an Action to save files in CS4

    I am putting in place an action to save a batch of files I created using the variables (as shown in this video: http://bit.ly/MnWqdF), but I come up against what seems to be the kind of a stupid question. I'll go into the Actions window and check the current file to save. AI in form and then stop recording. Sounds simple enough, but when I put this action to execute a package on my dataset it saves all files without an extension. I missed another step where I put the file format that the action is supposed to record with? I'm confused. I tried this using a few different file formats and they all have the same come.

    It's what looks like my output:

    confuze.PNG

    and my simple action:

    why.PNG

    Any help would be greatly appreciated!

    When you save your action, not to over write the existing file, give it a new name fresh.

    your action should look like "saveasdatasets", mentioning the name of file, instead of "saveas2" where he shows that the folder

  • We can create Script or action with item 11? If this isn't as I believe, item 12 will get this option or did in photoshop?

    I d like to use the Script function, one creating my own script or action.

    I think that this function is not possible in element 11 so the question would be is in the 12 element or just photoshop CC?

    Thank you

    Bertrand

    You can create your own scripts in a couple of different ways.

    (actions are easier to record than writing scripts, but we need full version of photoshop such as photoshop cs6 or cc2014 to record the actions)

    Java script is the most common, as it is works on mac and windows.

    (not to be confused with the manuscript of java for browsers, internet and such)

    You can write your own or it is possible that someone else has already written one.

    As far as stocks go, by far the easiest way is to use the full version of photoshop to record an action.

    (PES 11 can load and game record in photoshop actions, but was not built in the action recorder)

    It is probably much easier to find an already made to a script action.

    What kind of script or action did you have in mind?

  • Action or plugin for batch converting PDFs into psd - Photoshop cs5 (or cs4) files

    Action or plugin for batch converting PDFs into psd - Photoshop cs5 (or cs4) files

    TIA

    This script should work: processor PDF

    (the one at the bottom of the page)

    c http://www.PS-scripts.com/BB/viewtopic.php?f=10&t=1882&sid=a87e6a1cbc6fec5b38abbfc402e624a

    MTSTUNER

  • PhotoShop 'Actions' and single name PDF

    Batch conversion of resizing and cropping of files PDF, Photoshop fails to appoint uniquely results with the name of the original file of documents. It replaces the output several times with the same file name. I can avoid this problem by having numbered file adobe instead. but I always lose the name of the original file. It looks like a bug.

    Even 'action' will correctly properly called JPEG & TIFF files (but not PDFs.)

    The work to seem to not use photoshop 'Actions' to PDF batch convert. use Actions that once the files have been converted to TIFF or any other format.

    You do a Save As in yourself, Action and replace this step and add something in the batch dialog box to create the name of the output file that is different from the name of document? You need to do if the file input and output files are one and same.

  • Auto Filename numbering in Photoshop Actions

    Hello

    I created a photshop actions that perform various tasks. At the end of the action, I want to save the file in jpeg format. I want to apply this action to several files and save them automatically in a sequential manner. (1.jpg, 2.jpg,...) How then?

    you perform an action help file / batch. In the lower part of the dialog window precilsely, you can define the name: old name or defined name, numbering with the letter or the encryption algorithms, extensions etc. See example (sorry, I'm under a German version of Photoshop)

  • Photoshop actions + Relinking image

    Hi all!

    I'm trying to optimize the way in which my colleagues and I add labels of our bottles. I have created a 3D tag and wrapped around our bottles. My next step in the process was to create actions that once played, all that was left for us to do was select the files that we want to apply our texture and save the files. The only problem I have encountered is that when the script gets to point d - link the smart object, it calls a dialog open as smart object, where we then have the opportunity to harvest to: Crop Bounding Box, media box, etc.

    What I would like is for this step to be fully automated, where once we choose the image we want to replace this dialog automatically chooses Crop to: Media Box, close and then fills the rest of the procedure of the action. I currently have this step by using the "Insert Menu Item' > 'Layer' > 'Intelligent objects' >"Recreate a link to the file"I tried setting up using"Action Record"but then he would always choose the same image to replace, I obviously don't want.

    That's what my script looks like if it helps someone.

    Thanks in advance!

    Greg Eyton-Jones

    What you show, it is an action, but you are referring to it as a script.  Photoshop scripts are different Photoshop actions. Scripts are programs. They are programmed in a scripting language, and unlike actions can use logic.  However, I don't know if what you want to do can be programmed in a Photoshop script.  I have not programmed in this area in lieu of a linked smart object.  Watching your action, it seems that you have inserted the element menu to create a link to the file.  This will be an interactive action step as you wrote.  I'm not familiar with this menu item.   Saving item menu differently when used in an action, then when it is inserted as a menu item.  When used they are not interactive step. Step can be hard coded to a particular file, however.   A script may be able to put in a file selection dialog to allow you to select the file you want to link. Once you select the script file may be able to recreate it a link to the file in a non-interactive manner.    If you change your action and uncheck the menu item from insert reissue so it does not get played and record a step when you using the menu item Insert the item.  When you have completed step if name path file etc settings get saved in step. Probably you can code a Photoshop script that will work the way you want the process works.

  • Repeat the action and save the file

    Hello

    I'm having a fever and is trying to accomplish something that seems very simple not knowing anything about scripting.

    I made an action that applies to some simple effects (blur, threshold and high pass). I want to do is to repeat the action of n times and save an additional for each repetition png so I find myself with a sequence of files numbered from the action more applied (as in this example, Photoshop Cs5 filters Animation on Vimeo).

    After som Googling, I ended up using AppleScript and was able to repeat the action for as many times as I want, but I'm completely stuck on the file save game. That's what I have right now:

    Any help is greatly appreciated!

    say application 'Adobe Photoshop CC 2015.5'

         set Starting point to current document

         set theFilePath to path of the file of current document

    Repeat with n from 1 to 10

    set myFile to theFilePath & ': output: image ' & { n channel } & ".png"

    do "CrazyAction" of "Default Actions"

    { Save document in file myFile as PNG with options { }classPNG save options interwoven:fake} :

    end Repeat

    end say

    In case someone comes up with the solution I also have another related question: How can I make sure that the output file names will have a padding of the number? Ideally, I'd end up with image2.png and so on, rather than image1.png image001.png, image002.png.

    Thanks in advance!

    One of the things you can do with javascript you can not do with applescript is to use the scriptlistener plugin. This plugin is put into the photoshop plug-ins folder, and when he's here (you don't want to leave it there all the time) it will record about everything you do, kind of like an action, but it generates the code in a file on your desktop. I used it for recording an action to save the png and running. The parts of the code are in the functions in the script. So I just created a folder name of base, a base file name and a counter of departure. The script will then execute your action and save a png image in this folder and change the name of the base by the counter file increases by one each time. You must put in the name of your action and the name of the action as defined in the script.

    #target photoshop
    var fileName = 'myFile-';
    var folderPath = new Folder (Folder.desktop +'/action test/')//create whatever path you want here. Make sure the folder exists!
    var doc = activeDocument;
    var counter = 1//counter for changing the filename
    
    for (var i=0;i<4;i++){//Change number 4 to whatever number you want it to repeat + 1
        runMyAction ("twirl", "Chuck");//put in action name and action set name. This line can be duplicated for different actions.
        savePNG ()
        counter++
        }
    
    function runMyAction(myAction, myActionSet){
        var idPly = charIDToTypeID( "Ply " );
            var desc25 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref8 = new ActionReference();
                var idActn = charIDToTypeID( "Actn" );
                ref8.putName( idActn, myAction );//changed to a variable
                var idASet = charIDToTypeID( "ASet" );
                ref8.putName( idASet, myActionSet );//Changed to a variable
            desc25.putReference( idnull, ref8 );
        executeAction( idPly, desc25, DialogModes.NO );
        }
    
    function savePNG(){
        var idsave = charIDToTypeID( "save" );
            var desc28 = new ActionDescriptor();
            var idAs = charIDToTypeID( "As  " );
                var desc29 = new ActionDescriptor();
                var idPGIT = charIDToTypeID( "PGIT" );
                var idPGIT = charIDToTypeID( "PGIT" );
                var idPGIN = charIDToTypeID( "PGIN" );
                desc29.putEnumerated( idPGIT, idPGIT, idPGIN );
                var idPNGf = charIDToTypeID( "PNGf" );
                var idPNGf = charIDToTypeID( "PNGf" );
                var idPGAd = charIDToTypeID( "PGAd" );
                desc29.putEnumerated( idPNGf, idPNGf, idPGAd );
                var idCmpr = charIDToTypeID( "Cmpr" );
                desc29.putInteger( idCmpr, 9 );
            var idPNGF = charIDToTypeID( "PNGF" );
            desc28.putObject( idAs, idPNGF, desc29 );
            var idIn = charIDToTypeID( "In  " );
            desc28.putPath( idIn, new File( folderPath + '/'+ fileName + counter+ ".png" ) );//set folder path and name
            var idDocI = charIDToTypeID( "DocI" );
            desc28.putInteger( idDocI, 200 );
            var idCpy = charIDToTypeID( "Cpy " );
            desc28.putBoolean( idCpy, true );
            var idsaveStage = stringIDToTypeID( "saveStage" );
            var idsaveStageType = stringIDToTypeID( "saveStageType" );
            var idsaveBegin = stringIDToTypeID( "saveBegin" );
            desc28.putEnumerated( idsaveStage, idsaveStageType, idsaveBegin );
        executeAction( idsave, desc28, DialogModes.NO );
        }
    
  • Photoshop action on DNG files

    I made a simple Photoshop Action that

    1 open a DNG file

    2 apply some settings to a 3rd party plugin (nothing to do with the problem I describe)

    3 save the file as a PSD

    When I run this action on a batch file DNG, Photoshop applies the SAME settings on each DNG file before steps 2 and 3 - these settings since the DNG file that was used to record the action are used.

    I wanted that each file in order to have its own individual settings preserved but is not the case.

    Is it always going to be the case during the recording of actions on DNG files or is there a way to prevent this?

    All advice appreciated.

    You should not need to use a step in your action if your using file > Automate > batch

  • unique file name Photoshop action

    I want to do the following:

    Create an action recording something on the desktop. The problem is, it will not change the name of the file, so when I have several images I want to save to the desktop, the action will replace, because the name of the file is fixed. I want to know, how to create a simple action that does not overwrite the files if they already exist.

    I just want a simple and fast was to save something to JPEG on the desktop. I don't like his name. I want than Photoshop to add something like "-1", "-2" in the name of the file if it already exists in the folder. ""

    I think this needs a script.

    Photoshop scripts

  • Action to "Save as...". "personal optimized setting

    Hi guys,.

    I'm just learning how to create an Action. I would like to make a new Action to make a batch "save under...". "a large group of PDF, but using my own personal optimized settings. How can I do? Here is a sample of PDF optimized in the Action palette but there is no access to my personal settings.

    Photo 1: my optimized PDF Export settings.

    http://postimg.org/image/u0bwq44yz/

    TWO photo: Action Palette, no access to my export settings preferred.

    http://postimg.org/image/panrj4pgh/

    Any help or ideas?

    Best,
    S

    You can use the backup tool:

Maybe you are looking for

  • How to get the creation Date of the site recorded for the footer output (printing to PDF)?

    If you go to Page Setup in Firefox, the option for the footer is the date and/or time of output. I don't want today's date that its print, but would rather than the Date of the creation of this web session saved as it is important to display this inf

  • Automatic email good capitalization

    In Mail, is it possible to adjust AutoCorrect to capitalize the FIRST letter of a name or a name? Sometimes I make a mistake when I type quickly and the first two letters get capitalized instead of just the first one. Thank you STeve

  • Your experience with Toshiba NB550D and Ubuntu

    Helloanyone of you has experience with the portable NB550D and running Ubuntu 11.04 (as you have problems with it)? Thank you Post edited by: ryuuko

  • Update dc7800p

    Hi - I bought a used minitour dc7800p work. It is about 4 years old and has wiped (software, files, etc.). It has Vista 32 bit installed and no wireless adapter. My questions are: I guess it would be good to upgrade the OS to Windows 7 (ultimate?) an

  • Use loop - unpredictable queue rate

    Hi all I develop the structure of producer-consumer on RT, and I have a strange problem. I get data from the FPGA producer loop and send queue loop of consumer. Then they must cross flow network host. Due to the fact that consumers stay at the produc