Creating a photoshop action to save a batch of images as patterns

I am trying to use Photoshop actions to script about a thousand image files into PAT files. I am running into a problem with actions when it comes to defining a pattern. The program naturally selects the filename as the name of the pattern when doing it manually, but when I do this while recording an action Photoshop logs the filename used in creating the action and then uses that filename for all sripted patterns. Is there a way to alter that setting to select the current file's name instead?

You might want to move this thread to the general photoshop forum if tou want an action.  However your not going to be able to do create the action you want for when you record menu Edit>Define Pattern the "Pattern Name Dialog" will pop up and whatever is used in it will be recorded into the action.
Also Photoshop Scripting DOM does not have a interface for creating and nameing patterns.  However you should bne ale to write a script to do what you want using code generated with Photoshop Scriptlistner Plug-in and modifying the hard coded name to a variable you set with somthing like the active document name.
Before defining the patern you may be able to see if the name is all ready use for a pattern name so you can add something to the name to avoid duplicateing name.
ScriptListner Code difine pattern
// =======================================================
var idMk = charIDToTypeID( "Mk  " );
    var desc14 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref12 = new ActionReference();
        var idPtrn = charIDToTypeID( "Ptrn" );
        ref12.putClass( idPtrn );
    desc14.putReference( idnull, ref12 );
    var idUsng = charIDToTypeID( "Usng" );
        var ref13 = new ActionReference();
        var idPrpr = charIDToTypeID( "Prpr" );
        var idfsel = charIDToTypeID( "fsel" );
        ref13.putProperty( idPrpr, idfsel );
        var idDcmn = charIDToTypeID( "Dcmn" );
        var idOrdn = charIDToTypeID( "Ordn" );
        var idTrgt = charIDToTypeID( "Trgt" );
        ref13.putEnumerated( idDcmn, idOrdn, idTrgt );
    desc14.putReference( idUsng, ref13 );
    var idNm = charIDToTypeID( "Nm  " );
    desc14.putString( idNm, "Pattern 5" );      <------ change "Pattern 5" to be a variable
executeAction( idMk, desc14, DialogModes.NO );

Similar Messages

  • Photoshop Action - Multiple Save As

    Hi all.
    I am trying to make an Action to save out multiple versions of a file, that can be applied to numerous different files, all in different destinations.
    How can I edit and remove the "IN" parameter in the Save As steps of the actions?
    I have tried the "insert menu item" but even when clicking on SAVE AS it only records it as SAVE (with copy).
    I see there is a default SAVE AS PHOTOSHOP PDF in the Production set of actions, but it has differet settings to what I need.
    Any help is appreciated

    Hi all,
    The problems detailed first is a problem I am also experiencing and it maybe a case that I am asking too much but I really don't think so - Here is the issue:-
    I create the product information pages for my website (www.formyoffice.co.uk) and each product has an HD image, a std image, a section link image, and a thumbnail image, and these are sized to square images in pixels to the following sizes HD=750, STD=350, Section=150, Thumb=75 pixels.  I am hoping to set up an automated process that once I have finished modifying the image given from whoever (suppliers/manufacturer/customer/showroom photo) and I have saved this HD image, will then run a batch and adjust this image to the required size AND save this image for use.  I have completed an "Action" process and this works well but have an issue with the filename that the new image is then saved as and this is making this automated process pointless.  So if my original image was called, for example "OSCO-Test-HD-1.jpg" my process required an action to deleted ".jpg" and then re-save with addition "-350" for STD, "-tna" for Section, and "-tnb" for thumb but the problem is that the filname will not update to the actual file it is looking at and keeps modifying the filename so new file "Wibble-Test-HD-1" will get changed to the following "OSCO-Test-HD-1-350.jpg", "OSCO-Test-HD-1-tna.jpg", and "OSCO-Test-HD-1-tnb.jpg" instead of saving 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 filename does update itself but I can not get the action to use the current original file that it will modify to create these other images, it jsut keeps using the filename used when creating the Macro action process and then updates this.  Any help will be greatly appreciated and I think this will help Tigo88 as I think this is the same issue.
    Richard Kings
      ForMyOffice

  • Make photoshop action that saves file with specific filename

    Is there a way to make a photoshop action that does a SaveForWeb, but adds text to the original filename when saving?
    For example, if I open a file called "coverPage," and I want the action to do SaveForWeb as a JPEG, can I have it save  as "coverPageWEBVERSION"?
    Thanks for your time and help

    No this is one thing you will need scripting for.
    They really should have introduced some modification to the Save dialog that allows file naming additions or modifications triggerable within actions. But they never did.
    As a workaround, Bridge is a good tool for renaming, because naming convensions can be SAVED and quickly applied to groups of files. Not often known fact  - On a mac there are also OS scripts that can do the same thing. There is a script called 'rename items' hidden away somewhere. This is accessable by Control or right clicking on a group of files, and going through the 'automate' submenu

  • Need to create template to delete sections (in a batch of images, if possible)

    I was given a batch of photos (all the same size) that need notches punched into each side. The result are notches with deleted space on both sides.
    Since there is a stack of them to do--and the notches need to be precise--I was trying to figure out; 1) How should the template look? Specifically, should the area to be punched out be black or white? What color should the area to remain be, etc.? 2) Once the template is set up what is the process to punch out the area to be deleted? 3) Is there a way to automate the process with a batch command?
    Would appreciate knowing the steps required or if you know of a tutorial (free) on the procedure.
    [CS5 Photoshop]

    White is opaque and black is transparent. Once you made your selection you can save the selection to a new document. The new document will then contain the alpha mask and a layer that matches it. An action could then load the new document and load the selection then close the new doument.
    Anyway I am sure you will find multiple ways to do this.

  • HT2493 New files created in Photoshop have no icons (i.e., the image created in Photoshop)

    When I created images today in Photoshop and saved the files, no icon would display. When I went to the get info for the file, it did not seem possible to add an image as the icon--no type of icon at all appeared at the top of the get info panel.

    i opened a fine in PSCS 13.1.2.I edited it a bit, converted a layer to a SO and used liquify on that layer.
    I saved it as a tiff. Did not try it as a psd.
    PSCS5 opened the tiff without complaint, including the SO+liquified layer. When i clicked on the liquify at bottom of the SO layer to try to edit it I got the notice "CANNOT FIND THE FILE", or something like that.
    So, I guess pscs5 is already done for.
    vince

  • Can I create action to Save As...  and change only one character of the original file name?

    I'm working on a group of  files(25-28) at a time. I have to save each one as a photoshop .raw file and change the first character of the file name. the rest of the file name must remain the same. I then close the original file with no changes. I tried to create an action for this. The only problem is that the next file overwrote the file I used to create the action.  Is it possible to creat an action to save as... and keep the file name of the new file but chage the first character to the same one used in the recording?

    Good day!
    I think what you are describing is not possible with Actions.
    Scripting would be an option, but more convenient might be simply saving the files with unchanged names and then edit the names of  the whole bunch in Bridge in one go (Tools > Batch Rename).
    Regards,
    Pfaffenbichler

  • Save as in Photoshop Action

    hi guys,
    when i create whatever action and then choose "Save As" and "Close" the Save As route will be always the same and fixed path. If i open a different image from a different folder and apply the Action the image will be saved in that Previous Folder.
    How can avoid that? How can i have an Action to Save As in the Folder where i open the image? In case that i cannot do that, is there any way to re-record the save as route?
    Thanks for any info!,
    S

    If you're trying to automate operations through the action (e.g., through File - Automate - Batch), there are "Override Action Open Commands" and "Override Action Save As Commands" settings to accomplish this.
    But if you're just trying to make a way for you to hit a key or something and save a copy in the current folder, maybe you'll want to look into using a Script instead of an Action.
    Arc Fixer (Lee) put up some good information that may be related to what you're trying to do in this thread.  Note his "probably won't" comment in his last post.
    http://forums.adobe.com/thread/916736
    -Noel

  • Batch Photoshop actions?

    Is it possible, somehow, to run a batch of images from Aperture with a PhotoShop action? I use this feature a lot in Bridge and hoping something similar is available in Aperture.

    If you have the images outside Aperture's Library then would be pretty easy.
    You can select the images in Aperture, right click on one and then "show in finder". You can make a Photoshop action as a droplet on the desktop where you can drop the images now selected in the finder.
    To finish it you could have the action to save every image to a hot folder that will automaticaly re-import the retouched images back to Aperture.
    To find how to make a hot folder to import to Aperture, have a look at this:
    http://www.automator.us/aperture/example-04.html

  • Creating actions to save files

    Hello all,
    I want to have an action that takes the input file and creates a JPEG for web and places it in the same folder that the input file is located.  Is this possible? Normally, when creating an action to Save for Web, it will save the file in a single specific location, but I need to have it save to whatever folder the original file is in, no matter where that file is.
    Secondly, is it possible to make the action add text to the end of the filename?  I would like it to add the text "-web" to the end of the file.
    I hope that's clear, let me know.  Thanks for your time, everyone.

    This is where a script comes in.
    This should do it...
    #target photoshop
    function main(){
    if(documents.length){
    var newName = decodeURI(activeDocument.name).match(/(.*)\.[^\.]+$/)[1];
    newName = newName +"-web.jpg";
    var saveFile = File(decodeURI(activeDocument.path) +"/"+ newName);
    if(saveFile.exists){
    var result = Window.confirm("This File Exits!\nWould You Like It Overwritten?", true, "File Exists");
    if(!result) return;
    saveFile.remove();
    SaveForWeb(saveFile,80); //Change quality to suit
    main();
    function SaveForWeb(saveFile,jpegQuality) {
    var sfwOptions = new ExportOptionsSaveForWeb();
       sfwOptions.format = SaveDocumentType.JPEG;
       sfwOptions.includeProfile = false;
       sfwOptions.interlaced = 0;
       sfwOptions.optimized = true;
       sfwOptions.quality = jpegQuality; //0-100
    activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);

  • Retrieving Automate Batch processes I created in Photoshop CC before updating to Photoshop CC 2014

    I used Photoshop CC this afternoon and created a couple of batch processes. This evening I had to update CC and the result was that when I opened Photoshop CC 2014 the two batch processes I created were not there. Is there a way to import them and from where?

    Moving the discussion to Photoshop General Discussion.
    Thanks,
    Atul Saini

  • A photoshop action to access external doc and create this???

    Photoshop action
    If i have a graphic created, say for example, a square, I would like to create a script that
    would read an external document that contains information like the following:
    "123 Vernon Street"
    "345 Exile Court
    "3456 Yogurt Lane"
    "44344 Respite Ave"
    "21267 Gugenhiem Road"
    and then takes that information and puts in onto the graphic in a formatted way (positioned
    onto the graphic centered, for example).
    The external document may have between 25 - 100 different addresses. The graphic will only
    be able to hold a certain amount of addresses (x), so after the graphic is filled with that
    number(x), another graphic would need to be created for the remaining addresses, and so on.
    How does one accomplish this?

    Well, that’s certainly beyond Actions’ scope but can be done with JavaScript – do You have any experience with JavaScript?
    Apart from that it may, if the text is not to be edited in a Photoshop-specific way and pdf-output is OK, be easier to make a multipage document in Indesign for something like this.

  • Install actions created in Photoshop Elements 10

    Hello everyone! I just got Photoshop Elements 10 for Christmas. I was trying to install photoshop actions that have already been created into my Photoshop Elements 10, I did read the instructions on how but It doesnt seem that I'm finding enought information on how to install it. Does anyone know how to do this? I need some help! Thanks!!

    Texas Chicks, as above (Erin has a whole ebook on actions in PSE),
    http://thepioneerwoman.com/photography/2010/03/pioneer-woman-actions-for-photoshop-element s/
    http://www.elementsvillage.com/forums/showthread.php?t=51319
    some actions from
    http://www.panosfx.com/
    and a simple google for "actions for photoshop elements" will bring up dozens of others.

  • Creating Action to Save a Copy at Ill 8?

    Illustrator v8 is the magic version for nearly all current 3D applications in the world. Anytime I want to import a vector spline into a 3D app, it'll always want it as a v8 Illustrator file.
    I'm trying to create an Action that'll automatically save a copy of my current open document to v8. But Actions doesn't seem to record any of Options panels when saving a file.
    Any ideas how to do this?

    Nope. Seems like the Action recorded the location and name of the dummy file I saved when recording the Action.
    Anytime I play the Action, it saves a copy to that same folder with the same name.

  • My brushes won't work with actions in Photoshop such as Save the Dress, Ying-Yang, or Foundation

    When I try to use my brushes with actions in Photoshop, such as Save the Dress, Ying-Yang, or Foundation, they won't work.  I've tried resetting the brushes, changing the opacity, restarting the program, and unlocking the layers.  It was working perfectly, but suddenly just stopped.  When I click on the image, it doesn't do anything.  There is also a small black box next to the action the I am using in the history box.  When my brushes were working, that box would show in white where I used the brushes on my pictures, but now it doesn't register anything that I try to do. 

    christyh61213853 wrote:
    Have u gotten an answer from anyone on ur situation with the brushes? I am unable to use my brushes as well and I can't figure it out also...
    You would do better starting a new thread, rather than bump a thread from 2012.  Some of those posters might not have used this forum for years, and a lot has changed regards both Photoshop and operating systems since 2012
    You need to give specific information about _your_ problem.
    What version of Photoshop?
    What operating system?
    Which brushes, and if not standard, where did you get them from, or did you make them?
    What is happening, and what have you tried so far to fix it?

  • Does photoshop elements enable save for web for a batch of photos?

    does photoshop elements enable save for web or ready for web for a batch of photos ?

    Hi Patonabike,
    You can batch save images as jpeg, png, tiff etc. using Process Multiple Files. This feature will even allow you to batch resize them (as long as they are the same orientation and aspect ratio). However, the resulting images may be larger than what you would get if you individually did 'Save for Web' because 'Save for Web' removes the photo's exif data (and Process Multiple Files won't).
    With that said, it depends how you are editing your images and the results you are looking for, if you just want to rescale them or batch edit them - this is one way.
    Hope it helps!
    Clarice

Maybe you are looking for

  • ICloud Drive Sync Problems on Mac OS X Yosemite

    Hello all, I have been having issues with my iCloud drive for many months with slow syncing and documents being outdated. Typically a restart would solve the problem but it seems that it has gotten worse lately. Especially after purchasing the 20GB p

  • Can't install Flash Player on my Air Mac

    I follow all the instructions but each time after the screen windows indicate it has loaded, but when I click on Finish, it takes me right back to Install Flash Player window and the app is NOT loaded.

  • Cleaning up failed 11i instance on WINDOWS

    Hi, I am looking for a cleaning up failed 11i instance on windows. I can only find for LINUX O/S. Any document id would be appreciated. Actually we have got VIS on one of our servers, and i want to clone from prod to this server. so i wanted to clean

  • Html 2

    how would I add font to the below "kodor"? how would it look typed out? KoDor If any post helps or solves your problem, please click the "Solved" or "Helpful"     buttons on top of that post. Thank you for helping the boards!

  • Sensitive information in heap dumbs

    Hi, is it possible to extract sensitive information out of a heap dumb which was created because of an OutOfMemoryError? Say I stored username and password for a database connection, a heap dumb was created, can someone who has access to the dumb rec