Save the JPG copy in specific path

Hello

I want to link an action to a button so that when I click, it records the PSD that I work on, but also saves a JPG copy as low full resolution (to share via dropbox) to a specific folder.

Since I was a huge amount of subfolders where are placed the SDP, I would need to reflect the folder structure exactly in the dropbox folder.

So initially, I found a script that I think can be used to save - here:

https://forums.Adobe.com/thread/594393

the code would be:

var doc = app.activeDocument;  var Path = doc.path;  var Name = doc.name.replace (/ \.) [ ^\.] +$/, '');   Var suffix = "";  var saveFile = file (path + "/" + name + suffix '.jpg');  SaveJPEG (saveFile, 1);    function SaveJPEG (saveFile, jpegQuality) {jpgSaveOptions = new JPEGSaveOptions();  jpgSaveOptions.embedColorProfile = true;  jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;  jpgSaveOptions.matte = MatteType.NONE;  jpgSaveOptions.quality = jpegQuality;  activeDocument.saveAs (saveFile, jpgSaveOptions, true, Extension.LOWERCASE);  }

But now I'm on the path problem.

its kind of like the PSD file: E:\Project\Fullstorage\folder1\subfolder1\file.psd

While the JPG must be registered in something as D:\Dropbox\Project\Fullstorage\folder1\subfolder1\file.jpg

My string of scripts for editing skills are not that good yet, someone at - it a suggestion on how to do it?

Thank you!
M

Try

var jpgpath = String (thestring) replace ("/ m/STORAGE of PROJECT","" / D/DROPBOX/LR PROJECT "');

Regarding the creation of a folder if it does not exist:

If (Folder(/*insert_folder_path*/).exists == false) {new folder (/ * insert file path * /) .create ()};

under the direction

Tags: Photoshop

Similar Questions

  • Where Photoshop Touch saves the jpg files?

    For the life of me, I can't find where Photoshop Touch saves the jpgs from the main intro page (the only place I found same save files).

    I have a Tablet first TF201 transformer with all latest updates. I also installed 32 GB SD micro card as well as the 64 GB internal memory that has my TF201.

    Then, when I go not to save the project (export?) a picture, Touch says "record in camera roll", which is fine; but

    (a) it is not in my rolls of standard camera (whether on the internal memory of the TF201 (DCIM and sub folders)

    (b) is not in the film of my microphone (also a DCIM) SD card directly.

    I tried to open and visualize every possible place he could be stored - editing, images, etc. Searched through the app Gallery and PQR app, can not find them.

    Where the devil Photoshop Touch saves local jpgs after that you worked on a picture?

    And while I'm at it, why is there not a dialog to actually choose where you want to save the files? The only options are "Save to Camera Roll" (not an option in fact) and a menu drop-down list to choose the png or jpeg format. Would be nice to see a) select the desired directory, b) choose format picture as options.

    This is a great app, but it lacks a lot of basic stuff.

    Mark

    I think I'm a narrowing down the problem. On the first transformer TF201, the 'Images' folder is a system folder, and I can not rename, can not delete files, or copy and past inside via Astro or the file manager of Asus. Then of course, Photoshop Touch cannot do that either. For this reason, it seems that Photoshop Touch is actually useless for me, unless I can save files to another location. I was not able to change the status of the folder/mnt/sdcard/Pictures at all.

    I would really like to see a Photoshop Touch option to set your directory where you want to save the images. It's very frustrating, as it is now. I did experiment with the program for the part of last night, but not be able to save the images (they don't even email) outside of Photoshop Touch, it is pretty useless.

    This is obviously an Asus / transformer premium / Ice Cream Sandwich problem, but it is also question of Photoshop Touch because PS Touch is very limited in the save file arena.

    EDIT: I had the same problem with the folder music of the TF201 after I did the upgrade of the ICS (could not write to the folder, could not remove the folder or its content), but I fixed it by renaming the folder (as I do) to Music2 and created a new folder called Music.

    Just tried with the pictures TF201 folder. Her renamed Pictures2, then created a new folder called images. And now save files.

    So. The problem is built of Asus of ICS and how he ugpraded. A factory reset complete will apparently to solve this problem, but I have a lot of time invested to set up my first and do a thorough cleaning and reset for an enforcement problems, even if it's a $10 app, but... it raises a few concerns more with the Photoshop Touch application

    (a) he really, really need a strengthened file save system. Not only we should be able to choose where to save, but also the size and jpg quality settings. I want also to additional options on the top of jpeg and png - TIF, come PSD to mind.

    (b) I'm worried they don't have any warning in PS touch that she could not write the internal storage of the TF201 file.

    Mark

  • Unable to save the file in a specific location

    I created a C:\Users\Projects\Writing projects folder to save my writing projects in. I tried to put a Word file in this folder and I was told that I don't have administrator rights to save a file in this location. I must have administrator rights, because it is my PC, and I have only set up an account with which I set install programs, remove any software, create folders, etc etc, so what happens? He told me that I could save the file under 'my documents '. I don't want to post here, because a load of other detritus accumulates in this folder, and these are files of project specific I want to keep separate (I'm a writer).

    Hmmm, I just did exactly that on my computer with Word 2007 and Home Premium from Windows 7 64 and had no problem at all.  If you have the professional version or complete edition, you can run in a part of the increased security, maybe.  You can still create these folders as subfolders of the My Documents folder and isolate what you put there like that.  Another thing you could try would be to create a LIBRARY that points to the C:\Users\Projects\Writing project that you created.  This might be more likely to succeed.

    One thing I just noticed that is not in your post is your user ID.  You create these records in C:\Users\yourID\Projects\Writing projects.  That's what I was doing.

    Good luck.

  • (webutil) How to save the file in a specific way?

    Hello

    I have this part of the code
    Arglist := OLE2.Create_Arglist;
      OLE2.Add_Arg(Arglist,'c:\Export.xls');
      OLE2.Invoke(workbook, 'SaveAs', Arglist);
      OLE2.Destroy_Arglist(Arglist);
      -- release workbook
      OLE2.Release_Obj(workbook);
      OLE2.Release_Obj(workbooks);
      OLE2.Release_Obj(application);
    who saves the excel C:\Export.xls file. I tried to open a file save dialog box, with
    BEGIN
               
      file_name_cl := CLIENT_GET_FILE_NAME('C:\Export', 'ExportExcel.xls', 'XLS Files (.xls)|*.xls|', NULL, SAVE_FILE, TRUE);
      file_name_cl := SUBSTR(file_name_cl,1,LENGTH(file_name_cl));
      --
      IF file_name_cl IS NULL THEN
         MESSAGE('INSIDE EXCEPTION STATEMENT');
         RAISE user_cancel;
      END IF;
    {code]
    
    But the file isn't saved. Why?
    
    So here is all the code
    PROCEDURE export_din_datablock (p_block varchar2) is

    REQUEST OLE2. OBJ_TYPE;
    WORKBOOKS OLE2. OBJ_TYPE;
    WORKBOOK OLE2. OBJ_TYPE;
    SPREADSHEETS OLE2. OBJ_TYPE;
    WORKSHEET OLE2. OBJ_TYPE;
    Arglist OLE2. LIST_TYPE;
    CELL OLE2. OBJ_TYPE;
    J INTEGER;
    INTEGER K;
    file_name_cl VARCHAR2 (32767).
    USER_CANCEL EXCEPTION;
    Workfont OLE2. OBJ_TYPE;
    WorkInterior OLE2. OBJ_TYPE;
    m_item varchar2 (40);
    m_tot_columns number: = 0;
    LC$ target Varchar2 (256): = "text.xls";
    LC$ Fic Varchar2 (256);

    -Inner Proc.
    Procedure put_cell (number of no_lig,
    Number of Col_num,
    put_value varchar2,
    FONT_NAME varchar2 default null,
    font_size directory by default null,
    font_style varchar2 default null, - we can use pune "BOLD" pentru "BOLD", "ITALIC" pentru italics, etc.
    font_color directory by default null) is
    Begin
    Arglist: = OLE2.create_arglist;
    OLE2.add_arg (arglist, row_num);
    OLE2.add_arg (arglist, col_num);
    cell: = OLE2.get_obj_property (Worksheet, 'Cells', Arglist);
    OLE2.destroy_arglist (arglist);
    OLE2.set_property (Cell, 'Value', put_value);

    Workfont: = OLE2.get_obj_property (cell, 'Make');
    WorkInterior: = OLE2.get_obj_property (cell, 'Interior');
    If font_name is not null then
    OLE2.set_property (Workfont, 'Name', FONT_NAME);
    End if;
    If font_size is not null then
    OLE2.set_property (Workfont, 'Size', font_size);
    End if;
    If font_style is not null then
    OLE2.set_property (Workfont, font_style, 1);
    End if;
    If font_color is not null then
    OLE2.set_property (Workfont, font_color 'ColorIndex');
    End if;
    OLE2.release_obj (workfont);
    OLE2.release_obj (workinterior);
    OLE2.release_obj (cell);
    End;


    BEGIN

    file_name_cl: = CLIENT_GET_FILE_NAME ('C:\Export', 'ExportExcel.xls', ' file XLS (.xls) | * .xls |', NULL, SAVE_FILE, TRUE);
    file_name_cl: = SUBSTR (file_name_cl, 1, LENGTH (file_name_cl));
    --
    IF file_name_cl IS NULL THEN
    MESSAGE ("INSIDE THE EXCEPTION STATEMENT");
    RAISE user_cancel;
    END IF;

    APPLICATION: = OLE2. CREATE_OBJ ('Excel.Application');
    OLE2. SET_PROPERTY (application, 'Visible', true);

    WORKBOOKS: = OLE2. GET_OBJ_PROPERTY (APPLICATION, 'NOTEBOOKS');
    WORKBOOK: = OLE2. INVOKE_OBJ (WORKBOOKS, "ADD");
    WORKSHEETS: = OLE2. GET_OBJ_PROPERTY (WORKBOOK, 'WORKSHEETS');
    WORKSHEET: = OLE2. INVOKE_OBJ (SPREADSHEETS, "ADD");
    OLE2.set_property (spreadsheet, 'Name', 'leaf-ul meu');

    GO_BLOCK (p_block);
    PREMIER_ENREGISTREMENT;
    -prima linie dedicated numelui sunt; pe linia incep 2.
    J: = 2;
    K: = 1;
    LOOP
    m_item: = get_block_property (p_block, first_item);
    K: = 1;
    Loop
    exit in M_ITEM IS NULL;
    If not id_null (find_item (p_block |'.)) ' || m_item)) then
    -daca point-urile sunt type specificat (+ eventual alte conditii), atunci to export data din ele
    If get_item_property (p_block |'.) ' || m_item, item_type) IN ('ELEMENT of TEXT', 'VIEW ARTICLES', 'LIST', 'CHECKBOX')
    and get_item_property (p_block |'.) ' || m_item, visible) = "TRUE" then
    If j = 2 then
    -preiau dinamic name if sunt afisez pe linia 1, cu "BOLD"
    put_cell (1, k, get_item_property (p_block |'.)) ' || m_item, column_name), null, null, 'FAT');
    end if;
    If not name_in (p_block |'.) ' || m_item) is NULL then
    -data afisez
    put_cell (j, k, name_in (p_block |'.)) ' || m_item));
    End If;
    K: = k + 1;
    end if;
    end if;
    -merg urmatoarea inregistrare
    m_item: = get_item_property (p_block |'.) ' || m_item, NEXTITEM);
    END LOOP;
    J: = J + 1;
    When the output: system.last_record = "TRUE";
    NEXT_RECORD;
    END LOOP;
    OLE2. Release_Obj (Worksheet);
    OLE2. Release_Obj (Worksheets);
    -Save the created Excel file
    Arglist: = OLE2. Create_Arglist;
    OLE2. Add_Arg (arglist, 'c:\export.xls');
    OLE2. Invoke (Binder, 'SaveAs', Arglist);
    OLE2. Destroy_Arglist (arglist);
    -Release of workbook
    OLE2. Release_Obj (Workbook);
    OLE2. Release_Obj (Workbooks);
    OLE2. Release_Obj (application);
    MESSAGE ("Export cu success!'");
    END;
    Please help.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Roger

    Not to be confused... YOU read my previous POST.

    Also answer me...
    How do you want to save the file?
    1. replace or add to the file in the folder?
    2. create a new file in the folder?

    If you answer is first, change your code in a more dynamic way

    -Save the opened Excel file
    rglist: = OLE2. Create_Arglist;
    OLE2. Add_Arg (arglist, file_name_cl);
    OLE2. Invoke (Binder, 'SaveAs', Arglist);
    OLE2. Destroy_Arglist (arglist);

    So then you can give it

    -Save the created Excel file
    rglist: = OLE2. Create_Arglist;
    OLE2. Add_Arg(arglist,'c:\export\newexcelexport.xls');
    OLE2. Invoke (Binder, 'SaveAs', Arglist);
    OLE2. Destroy_Arglist (arglist);
    Your file will be saved in the "C:\export\" a folder with the name newexcelexport

  • Save the jpg to email

    After the installation of W7, I can copy is no longer .jpg to mail to my desktop or other folders. Does anyone have a solution? Here are pictures of my grandchildren-very important!

    After the installation of W7, I can copy is no longer .jpg to mail to my desktop or other folders. Does anyone have a solution? Here are pictures of my grandchildren-very important!

    ==================================
    You run Windows Live Mail?

    Try the following steps...

    Select (highlight) the message containing attachments...

    Reach... File / save attachments...

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • 'Camera Raw' slow to save the jpg files

    Once, I apply my presets on raw images in camera raw, I click to save all the photos as jpg. Initially the economy is 1.5 to 4 seconds per picture. After the backup for some computer time slows down and it takes about 10 seconds to save an image.

    It took more than 10 hours to save 4000 raw than jpg images.  Any ideas how to solve this problem?

    Technical specification:

    Photoshop CS6 x 64

    Windows 7

    ACPI x 64 based PC

    Intel i7 3.40 GHz

    SATA AHCI controller

    NVIDIA GeForce GTX 560 Ti

    SAMSUNG 840 Pro 256GB SSD

    Maybe there's a better place for the question.

    http://forums.Adobe.com/community/CameraRaw

  • How to save the work to a specific size in Adobe Illustrator CC?

    Hey,.

    If I create an art of channel for someone. I used the template provided to YouTube and open in Illustrator. The problem is once I'm done with the art, I deleted the template and there is there a Council of great art and it is in the way, I don't want to influence the size and dimensions of the art of channel. I just need to be 2560px 1440px wide, is it possible that I can save it exactly like that? Please be descriptive, please be quick! Please read and respond to.

    The problem is once I'm done with the art, I deleted the template and there is there a Council of great art and it is in the way, I don't want to influence the size and dimensions of the art of channel. I just need to be 2560px 1440px wide, is it possible that I can save it exactly like that?

    Not sure what you mean by "it is in the way."

    The size of the artboard is not necessarily an impact on the "size of art." (There are some scenarios of workflow where the size of the artboard is recognized and used, but most of the time it's just a 'passive' limit).

    If your art is 2560px 1440px X, and you want the artboard to match, double-click the tool of work plan and choose "Fit the Bounds work" at the top of the presets menu.

  • Is it possible to save the adjusted image virtual copy and throw away the original?

    I made a virtual copy of an image which I then adjusted in LR to the way I want to keep it. Now, I wonder if there is a way to easily apply these adjustments to the original, so I can then throw the virtual copy, or do I save the virtual copy and delete the original? I have just need two images, one that is not a custodian. I don't want to delete the original if the virtual copy depends on its existence.

    I want to keep the images up to that I want and I'm working to erase those images that I never use. According to what is the best way to handle the above situation will allow me to make a few essential to my catalog household.

    TIA,

    Ken

    You must copy the changes to the original, and then destroy the virtual copy. The other way ' round will not work.

    In the grid, do a right click on the virtual tour you are interested in. In submenus 'Develop settings' and "Metadata Presets", you can choose "copy...". ». What to do in each of them, right click on the original and make the two corresponding blocks.

    HAL

    Edit: darn... Ian got there faster and with a better solution.

  • How to save a chart for a specific length of time

    Dear all,

    I use a sensor of magnetic field on a mine detector. Let's say the minedetector scans the area for 10 sec. I need your help on the following

    (1) how to back up the chart of waveform for the sec ten integer. All I know is that I came across an example where I can save the graph at a specific time as a jpg. But this example is also in a graph. for the chart, I suppose we must change the table in a certain way.

    (2) if I record the magnetic field value obtained in each sample in a table, can I save it as an excel file. How to do that.

    Best regards

    Whenever I am asked to reproduce the data in the chart, I use Excel. In other words, your #2. The cards are widgets floating along on the screen. Once they are gone, they are gone. You can save the chart on jpg whenever the table is full, then follow up later, but why? The data is the data, not the chart.

    To save an Excel spreadsheet, the easiest method is to simply write the data to a text file and have LabVIEW save the file as a *.csv file. This file can be opened directly in Excel and then mapped out.

    The other method would be to have the LabVIEW to record directly to an Excel spreadsheet. There are many examples of this on the forum.

  • "Save image under" has changed, without memory of the choice of folder, save the file invisible name, options does not help.

    General options "always ask me where to save files. I seem to get the other option - save the file in (a specific directory) option is selected. Perhaps there is an automatic update of Firefox? The problem started there around the time that Qt Creator, I installed a few days.

    The fixed! Uninstalled windows 7/24 update and restarted. One may wonder what is happening to the Mircosoft to shoot their software in the foot like that?

  • Save the work Via script

    Hello

    I need to save the current work in Photoshop path as soon as the last anchor point is closed by automatically in the tiff document. Need help to save all the paths that I created in a document. While I can use it for subsequent selections. Please tell me the solution as soon as possible.

    Thank you

    VINET.

    I think that once you create a work path you want to be able to use then all you need to do is rename the work path to be kept with a name you know. If you want to do it more than one in a document, you need to find a way to generate unique names for each change of name avoid the path with duplicate names.

    This action handler code can work for you.

    fubction {RenameWorkPath (name)}

    // =======================================================

    var idslct = charIDToTypeID ("TPCV");

    var desc44 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref16 = new ActionReference();

    var idPath = charIDToTypeID ('Path');

    var idWrPt = charIDToTypeID ("WrPt");

    ref16.putProperty (idPath, idWrPt);

    desc44.putReference (idnull, ref16);

    var idMk = charIDToTypeID ("Mk");

    var desc48 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref18 = new ActionReference();

    var idPath = charIDToTypeID ('Path');

    ref18.putClass (idPath);

    desc48.putReference (idnull, ref18);

    var idFrom = charIDToTypeID ("from");

    ref19 var = new ActionReference();

    var idPath = charIDToTypeID ('Path');

    var idWrPt = charIDToTypeID ("WrPt");

    ref19.putProperty (idPath, idWrPt);

    desc48.putReference (idFrom, ref19);

    var idNm = charIDToTypeID ("Nm");

    desc48.putString (idNm, name);

    executeAction (idMk, desc48, DialogModes.NO);

    }

  • Nikon D800 taken with Sandisk extreme raw files more 32 GB SDHC card was corrupted. Able to preview in the library of Lightroom4.4, but not able to import or transfer the files from the card to the computer. Any ideas on how to save the library in Lig win

    Hi, I shot a few photos December 31 night mode RAW Nikon D800 and extreme as well as Sandisk card SDHC 32 GB. Looks like the card got some errors of memory so not able to transfer the files from the card to the computer. However, I am able to view the photos through Lightroom ver 4.4 library, but when I tried to import them, it gives me an error message indicating this file cannot be read.

    Is it possible to save the photos to the "library window" in lightroom overcoming the card read errors?

    Thanks in advance

    If you see the photos in the library module, the photos are already imported. If I there are thumbnails in the import dialog box, that means the jpg display embedded in the Raws are ok, although the raw data itself is corrupted.

    You may be able to save the jpgs shipped with this: Instant RAW JPEG

  • How to save a document created in a path preset on hard drive?

    I do loadtesting for Indesign server.

    I have a created a Document with a custom installation (10 pages etc.). For this, I opened a page layout and I the DocRef to my just created document.

    Now I want to save the document to a predefined path (which I can hard code in my code) on my system (lets say in the folder my documents).

    Can what command I use to do this?

    After a few tries, I was able to save the file under the code snippet using:

    Save the doc

    WideString filePath("D:\\TestFiles\\sampleFile1.indd");

    IdFichier dataSourceFile = FileUtils::PMStringToSysFile (filePath);

    IdFichier * dataSourceFile1 = & dataSourceFile;

    InterfacePtr docFileHandler (Utils()-> QueryDocFileHandler (result));

    If (! docFileHandler) {}

    break;

    }

    If (docFileHandler-> CanSave (DocRef))

    {

    docFileHandler-> SaveAs (docRef, dataSourceFile1);

    Error code = ErrorUtils::PMGetGlobalErrorCode();

    ASSERT_MSG (a == kSuccess, "IDocFileHandler::Save failed");

    If (a! = kSuccess) {}

    break;

    }

  • script to open eps and save in jpg format

    Hello

    I need a script to open an eps file or have 100 dpi, rgb with the longest side of 500 px.

    This would save the jpg as a amximum with the same name + .jpg

    then close the eps file without saving it.

    I tried TSE create an action to do this but I can not understand how to create the jpg file with its longest side to 500 pixels.

    Jean

    When you save your action use Fit Image to resize the document. Enter 500 in width and height, in this way, the longer side will be 500. Image adjustment will keep the ratio of the image.

  • My photoshop only save the file to copy. What should do? I need JPEG or JPG

    My photoshop only save the file to copy. What should do? I need JPEG or JPG

    You have probably some layers other than just a background, or you have certain paths or additional channels. Make sure you flatten the image and delete all channels and additional paths.

Maybe you are looking for