combine file name suffix "save under".

I have 600x600px file named "ABC". I want to save this file in three versions in 1 folder which different folder to the original:

ver1 600x600px name ABC_1 in JPEG

Ver2 300x300px name ABC_2 in PSD

name of 300x300px ver 3 ABC_3 in JPEG format.

I can do this with the command save slot, but can not add the suffix.  I can add the suffix with a script, but I don't know how to create a user interface to choose the file type and the address of the file as we do with Save as. Thanks to advanced using your script.

If all goes well, I understand now.  You want to edit in each compact version.  If so here is what you can do.  You will need to create three scripts that you can then run your action.  They are all based on the same script, but it will be a few minor changes.  The script that I write below a still the user interface dialog box, but I think you want to delete this part (the stretch between the lines "/ / /" and just edit line 6 by putting in the exact path you want to use to save your images.)

This is the first script and the base for others:

#target photoshop

app.displayDialogs = DialogModes.NO;

app.preferences.rulerUnits = Units.PIXELS;

var file = new File();

var saveFolder = new folder ('/ c /'); Exchange for which you want to save.

var docRef;

var jpgOptions = new JPEGSaveOptions();

jpgOptions.quality = 10;

var psdOptions = new PhotoshopSaveOptions();

psdOptions.layers = true;

///////////////////////////////////////////////////////

var Dlg is new window ("dialog", "Images of process");.

dlg.folderGp = dlg.add ('group');

dlg.folderGp.sTxt = dlg.folderGp.add ("statictext', undefined, 'Save file');

dlg.folderGp.btn = dlg.folderGp.add ('button', undefined, saveFolder.fsName);

dlg.folderGp.btn.size = [500,20];

dlg.folderGp.btn.onClick = function() {}

saveFolder = Folder.selectDialog ("select a backup folder")

dlg.folderGp.btn.text = saveFolder.fsName};

dlg.btnGp = dlg.add ('group');

dlg.btnGp.okay = dlg.btnGp.add ('button', undefined, 'Okay');

dlg.btnGp.cancel = dlg.btnGp.add ('button', undefined, 'Cancel');

dlg.btnGp.okay.onClick = function() {}

if(!saveFolder.Exists) {alert (' save selected folder does not exist.)} ")}

else {}

DLG. Close()

runProg()}

}

dlg.btnGp.cancel.onClick = function() {}

DLG. Close()};

DLG. Show();

//////////////////////////////////////////////////////////////

f

anointing runProg () {}

docRef = activeDocument

var fileName = docRef.name.split('.') [0] ;

var docSize = Math.max (docRef.width, docRef.height)

if(DocRef.Width>DocRef.Height) {docRef.resizeImage (600, defined, undefined)}

else {DocRef.ResizeImage (undefined, 600, undefined)}

docRef.saveAs (new file (saveFolder + ' /' + name + '_1.jpg'), jpgOptions);

/*

if(DocRef.Width>DocRef.Height) {docRef.resizeImage (300, defined, undefined)}

else {DocRef.ResizeImage (undefined, 300, undefined)}

docRef.saveAs (new file (saveFolder + ' /' + name + '_2.psd'), psdOptions);

docRef.saveAs (new file (saveFolder + ' /' + name + '_3.jpg'), jpgOptions);

*/

}

for the second script change the ending of the first script to this:

function runProg () {}

docRef = activeDocument

var fileName = docRef.name.split('.') [0] ;

var docSize = Math.max (docRef.width, docRef.height)

if(DocRef.Width>DocRef.Height) {docRef.resizeImage (300, defined, undefined)}

else {DocRef.ResizeImage (undefined, 300, undefined)}

docRef.saveAs (new file (saveFolder + ' /' + name + '_2.psd'), psdOptions);

}

For the last script change the ending to this:

function runProg () {}

docRef = activeDocument

var fileName = docRef.name.split('.') [0] ;

var docSize = Math.max (docRef.width, docRef.height)

if(DocRef.Width>DocRef.Height) {docRef.resizeImage (300, defined, undefined)}

else {DocRef.ResizeImage (undefined, 300, undefined)}

docRef.saveAs (new file (saveFolder + ' /' + name + '_3.jpg'), jpgOptions);

}

Tags: Photoshop

Similar Questions

  • I want to change the file name format "save under" so the date and time are first.

    When I select a few emails and then select "Save as" to keep a copy on my computer, the name of the file that is created has the date and time at the end of the file name of the email.
    Sample "save under" file name: "Habitat Follow Up - Bryan ([email protected]) - 2011-11-15 0744.eml.
    Is it possible to change the structure or format of the file name if the date and time of the email are initially the file name?

    Try ImportExportTools and customize the format of the file name in the options.

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • How to change a 'Save as pdf script docs' to include the custom file name suffix

    I am trying to add some efficiencies of larger projects buy reducing the number of steps needed to export to PDF. I want to add a custom chain file name.

    YOU WANT

    From:

    20131006_KK_Brochure_v1.PDF

    TO:

    20131006_KK_Brochure_v1_OUTLINES_PRINT.PDF

    However, I have problems with the code that I modified. The code below is the addition of "_OUTLINES_PRINT" as a prefix, rather than as a suffix.

    function getTargetFile (docName, ext, destFolder) {}

    newName = "_OUTLINES_PRINT"; var

    If (docName.indexOf('.') < 0) {}

    newName = docName + ext;

    } else {}

    var point = docName.lastIndexOf('.');

    newName = docName.substring (0, dot);

    newName += ext;

    }

    Any help would be appreciated.

    Any help would be appreciated.

    change this line

    newName += docName.substring(0, dot);
    

    for this

    newName = docName.substring(0, dot)+newName;
    
  • adding file name suffix and re-registration

    I need a simple script that saves the file opened under a JPEG compression of 80% in the same directory as the original, while adding a suffix at the end of the file name.  For example, if the open file is "image.png", I would it is saved in the form 'image_thumb.jpg '.  I tried to create my own, but I don't have the chops for the script.  Can anyone help?

    Replace the line

    var docPath = Folder ("~/Desktop");

    with

    var docPath = decodeURI (activeDocument.path);

  • Script folder level? How can I use the value of a field as a pdf file name to save as dialog box

    I read somewhere that if you use a script to the folder level, you can do things like save a PDF with a specific file name - possibly based on a domain name.

    How we put in place a folder level script?

    How to run a script from the PDF?

    What code do you use to change the name of the PDF for the content of the text fFieldName field?

    Or is - this really just impossible to do?

    The function must be placed in a .js file in the following folder:

    C:\Program Files (x 86) \Adobe\Acrobat 11.0\Acrobat\JavaScripts

    You can then call it go another level of the folder or the document itself

    script.

  • failure of pre-flight print saved PDF files through the "save under" function because of the current JavaScripts

    How can I disable using JavaScript in a PDF file that is saved with "Save as" option? PDF files print via postscript and distill are without JavaScript. PDF files that contain any JavaScripts fail the printing process before the flight and so we need to know how to disable all the JavaScripts in a PDF file even if Save as function is used to generate a PDF file.

    Thank you

    Peter

    Peter,

    I looked a little more on it, and regardless if you're reviewing post-processing routines or not, it seems that FM now always writes a javascript model when you use the SaveAsPDF routines. The script is actually empty, that is, it identifies the source as coming from FM, and here is the script embedded in the PDF document [he hasn't]:

    //

    FrameMaker

    //

    / * belongs to: Document-level: FrameMaker * /.

    //

    //

    It seems that your options are limited here. You cannot use the SaveAsPDF road and get rid of the script to the end of the FM of things. So you can use AcrobatPro to sanitize the document, create a script that will remove the javascript or talk to your printing provided by supplier to see if they will let the script above spend their pre-flight.

    Alternatively, use the print function to create your postscript and then distilling to create the final print-ready PDF. If you need to create a CMYK & Spot ready color output using the way of printing, then you will need to use GrafikHuset (today a freebie) PubliPDF in postscript output FM CMYK + Spot PDFs. download convert RGB:http://design.grafikhuset.dk/index.php/kontakt/downloads/grafikhuset-publi-pdf and more details available at the: http://www.grafikhuset.net/PubliPDF/

  • How can I change the sort order of the files read in save under and keep the new permanent sort order?

    When I find an image that I want to save, I choose to save the Image under. Navigate to an existing folder, but the items are not ordered by name. I right click on the window save as and choose Arrange by name. The work of sorting and I recorded my element. Later, when I return in the same folder that the elements are not ordered by name. I want that option "arrange by name' to be permanent.

    The same as with a file browser. The bar at the top of the window.
    name, size, date ... click on what you want.

  • Path of the file saved with "save under" Action is fixed?

    I am trying to create an action that will save the file open for a JPG file (quality 9, Matte: None), always in the same folder it comes, as it does when this is done manually. (The preference on save slot in the original folder is enabled).

    What I find is that when the action is saved, the path to the folder at the moment is fixed in action, rendering it useless for other backups of open files in different folders.

    Is it possible to not save a path when recording the Save action under or make variable so who adopts the folder that was chosen was the command was called manually?

    TIA, Joel.

    Photoshop CS5 Mac

    Mac OS X 10.6.4

    MacBook Pro 17 "2.4GHz/4GB/320GB

    Muppet Mark quite succinctly explains the relative merits of AppleScript and JavaScript for Photoshop-automation in this thread:

    http://forums.Adobe.com/thread/755858?TSTART=0

  • I want to use a pre-assigned file name to save a PNG file

    I checked on the report generator for the registration of a screen on the front, and it's more that I need.  How can I take a number that the user has already concluded the vi and use it for a filename to save a bmp of the front panel to a directory?


  • Need to re - register a completed form on in Acrobat Reader and keep the same file name.

    I did collect a form developed for our client in. They need to access and save it several times without making several versions.

    Now that they can open, fill out some fields and "save under" a different file name. They must then go back and edit or add additional information to train at a later date.

    He won't let not the re - save the file with the same file name, only "save under". It is not very practical because they will end up with many versions of the same shape and all earlier versions would be obsolete and useless for them.

    You must disable the preview in Windows Explorer or close Windows Explorer.

  • Why my computer keep copy files whenever I have save under?

    Even on my desktop files keep duplication. How can I stop this.

    That's what "save under", my dear. It allows you to save the same file under a different name.

    If you want to just save without changing the file name, press 'Save' and not ' save under.

  • How to save photos in a new file, name it and get the pictures in this file

    I have photos that have been sent to me in an e-mail. I want to save them and create a new file in Windows Live Photo
    Gallery. I right-click and SAVED AS... then went to MY... and under some PICTURES under photos put my cursor
    to open a NEW CASE. He did open an empty folder and not of uploaded photos.

    What I am doing wrong? I want to save the photos, open a new folder/file, name and save the pictures of
    enamel in the new folder/file. How to achieve this?

    Thank you.
    Gilenya

    Gilenya,

    After you create a new folder, you must go inside this folder to save your photos.  I'll bet that you created the new folder, and then you click OK (or save), which caused the pictures save a level upwards in the folder that you created.
  • Assistant Contact sheet print file names display problem

    In Windows XP, I could select a group of images and print a Board-contact via the Photo Printing Wizard.  File names were centered under the picture and WRAPPED when the name of the file has been long.

    In Windows Vista, it works, EXCEPT that file names are centered and TRUNCATED.  This isn't the desired behavior.  Y at - there a fix, or workaround or alternative solution?  (In addition to copying the files back to a XP machine?)

    Thanks in advance!
    BarbaraC Barbara Crane

    Hello BarbaraC,

    Try the following link to see if it will display full of names of files without truncating them.  I don't think that the result you're looking for in Vista is possible.  Everything I read indicates that Microsoft truncates file names to get under the tile.

    http://www.photo-freeware.NET/contact-sheets.php

    See you soon

  • Save under...

    When I go to save a file... save under... It opens with always save in html format. How can I change that I don't always have to click on the arrow down and save it in format of messages to oulook?

    Thank you.

    Here is an article including a link on how to change the default save as type in Outlook (it's one will move it): http://office.microsoft.com/en-us/help/HP052428051033.aspx.  I'm not sure this will do what you want it to do, but it's all I could find.

    If this does not help, please transfer your question in the Discussion of the Office group at: http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.general&lang=en&cr=US where experts in Outlook will be more than happy to help you with your question.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Lightroom CC adds "-2" before the extension to the import file name with rename

    For some reason, my Nikon D7200 is producing filenames with a underscore ("_DSC0001.nef").  No problem.  What I'm trying to do is to rename the files during import.  I set up a model as follows:

    Rename.jpg

    Instead of getting 'HJRW_20150907_DSC0001 '. NAVE' I get 'HJRW_20150907_DSC0001-2. NAVE.

    I deleted the files from Lightroom and reimported as COPY or MOVE, and get the same thing.  How to remove the Lightroom file name suffix is added?

    Thank you

    -Herschel

    This occurs because a file already exists in your operating system with the same name in the destination folder.

Maybe you are looking for

  • FaceTime Camera does not

    Hello I have an iMac with the El Capitan OS on it. All of a sudden my FaceTime camera stopped working. I can see the other person, but they can't see me because there is a black box with no photo available. Has anyone experience this problem? If so,

  • Formatting of HTML reports

    Hello I use LabVIEW to generate reports using HTML file. These reports contain plots, images, tables and text blocks. Ideally, I would like all in LabVIEW format so I can't do any post processing of the document. I would like to make some parts bold,

  • Overlay on .jpg files

    These days began a red icon overlay on all my .jpg files.  What is this and how do I get rid of him?

  • Windows Media Center will not receive a TV signal

    My Windows Media Center worked very well and I was receiving many channels of television to the present. This morning I had to uninstall my 2009 trend micro software and then install the software of micro trend 2010. All this went well and it had no

  • Fraudelent Bank of emails

    I have recently received a few emails from Bank of America and the American Bank claiming that my online accounts are in jeopordy and click here to correct the situation.  I contacted both banks, and they have reported that there is a massive spam ca