How to change folder name by default when you use save for Web in java script?

Hello everyone, hope you can help me.


Photoshop has a folder name by default of images When you export using slices Save for Web . I need to change this folder name.

How to change folder name by default when you use save for Web in java script?

Thanks in advance!


1325ACD7-9C89-4D20-A6BF-E9EE8B7A1D27.png

QQ20150923-1@2x.png


JJMack Chuck Uebele Nicolas Ribot SuperMerlin

You can try with scriptlistener to record the code. Change to the last line of the NO to ALL dialog boxes, so that the dialog - if you wish. There are two places in the code to save the files: one where is actually saved the file, and the other where the default value is file. I have seen it changed something with it. So, you can simply use the first listing of a path in the code below.

#target photoshop

var idExpr = charIDToTypeID( "Expr" );
    var desc19 = new ActionDescriptor();
    var idUsng = charIDToTypeID( "Usng" );
        var desc20 = new ActionDescriptor();
        var idOp = charIDToTypeID( "Op  " );
        var idSWOp = charIDToTypeID( "SWOp" );
        var idOpSa = charIDToTypeID( "OpSa" );
        desc20.putEnumerated( idOp, idSWOp, idOpSa );
        var idDIDr = charIDToTypeID( "DIDr" );
        desc20.putBoolean( idDIDr, true );
        var idIn = charIDToTypeID( "In  " );
        desc20.putPath( idIn, new File( "C:\\Users\\csuebele\\Pictures\\LR shortcuts" ) );//Here's where it actually saves
        var idFmt = charIDToTypeID( "Fmt " );
        var idIRFm = charIDToTypeID( "IRFm" );
        var idPNtwofour = charIDToTypeID( "PN24" );
        desc20.putEnumerated( idFmt, idIRFm, idPNtwofour );
        var idIntr = charIDToTypeID( "Intr" );
        desc20.putBoolean( idIntr, false );
        var idTrns = charIDToTypeID( "Trns" );
        desc20.putBoolean( idTrns, true );
        var idMtt = charIDToTypeID( "Mtt " );
        desc20.putBoolean( idMtt, true );
        var idEICC = charIDToTypeID( "EICC" );
        desc20.putBoolean( idEICC, false );
        var idMttR = charIDToTypeID( "MttR" );
        desc20.putInteger( idMttR, 255 );
        var idMttG = charIDToTypeID( "MttG" );
        desc20.putInteger( idMttG, 255 );
        var idMttB = charIDToTypeID( "MttB" );
        desc20.putInteger( idMttB, 255 );
        var idSHTM = charIDToTypeID( "SHTM" );
        desc20.putBoolean( idSHTM, false );
        var idSImg = charIDToTypeID( "SImg" );
        desc20.putBoolean( idSImg, true );
        var idSWsl = charIDToTypeID( "SWsl" );
        var idSTsl = charIDToTypeID( "STsl" );
        var idSLAl = charIDToTypeID( "SLAl" );
        desc20.putEnumerated( idSWsl, idSTsl, idSLAl );
        var idSWch = charIDToTypeID( "SWch" );
        var idSTch = charIDToTypeID( "STch" );
        var idCHsR = charIDToTypeID( "CHsR" );
        desc20.putEnumerated( idSWch, idSTch, idCHsR );
        var idSWmd = charIDToTypeID( "SWmd" );
        var idSTmd = charIDToTypeID( "STmd" );
        var idMDCC = charIDToTypeID( "MDCC" );
        desc20.putEnumerated( idSWmd, idSTmd, idMDCC );
        var idohXH = charIDToTypeID( "ohXH" );
        desc20.putBoolean( idohXH, false );
        var idohIC = charIDToTypeID( "ohIC" );
        desc20.putBoolean( idohIC, true );
        var idohAA = charIDToTypeID( "ohAA" );
        desc20.putBoolean( idohAA, true );
        var idohQA = charIDToTypeID( "ohQA" );
        desc20.putBoolean( idohQA, true );
        var idohCA = charIDToTypeID( "ohCA" );
        desc20.putBoolean( idohCA, false );
        var idohIZ = charIDToTypeID( "ohIZ" );
        desc20.putBoolean( idohIZ, true );
        var idohTC = charIDToTypeID( "ohTC" );
        var idSToc = charIDToTypeID( "SToc" );
        var idOCzerothree = charIDToTypeID( "OC03" );
        desc20.putEnumerated( idohTC, idSToc, idOCzerothree );
        var idohAC = charIDToTypeID( "ohAC" );
        var idSToc = charIDToTypeID( "SToc" );
        var idOCzerothree = charIDToTypeID( "OC03" );
        desc20.putEnumerated( idohAC, idSToc, idOCzerothree );
        var idohIn = charIDToTypeID( "ohIn" );
        desc20.putInteger( idohIn, -1 );
        var idohLE = charIDToTypeID( "ohLE" );
        var idSTle = charIDToTypeID( "STle" );
        var idLEzerothree = charIDToTypeID( "LE03" );
        desc20.putEnumerated( idohLE, idSTle, idLEzerothree );
        var idohEn = charIDToTypeID( "ohEn" );
        var idSTen = charIDToTypeID( "STen" );
        var idENzerozero = charIDToTypeID( "EN00" );
        desc20.putEnumerated( idohEn, idSTen, idENzerozero );
        var idolCS = charIDToTypeID( "olCS" );
        desc20.putBoolean( idolCS, false );
        var idolEC = charIDToTypeID( "olEC" );
        var idSTst = charIDToTypeID( "STst" );
        var idSTzerozero = charIDToTypeID( "ST00" );
        desc20.putEnumerated( idolEC, idSTst, idSTzerozero );
        var idolWH = charIDToTypeID( "olWH" );
        var idSTwh = charIDToTypeID( "STwh" );
        var idWHzeroone = charIDToTypeID( "WH01" );
        desc20.putEnumerated( idolWH, idSTwh, idWHzeroone );
        var idolSV = charIDToTypeID( "olSV" );
        var idSTsp = charIDToTypeID( "STsp" );
        var idSPzerofour = charIDToTypeID( "SP04" );
        desc20.putEnumerated( idolSV, idSTsp, idSPzerofour );
        var idolSH = charIDToTypeID( "olSH" );
        var idSTsp = charIDToTypeID( "STsp" );
        var idSPzerofour = charIDToTypeID( "SP04" );
        desc20.putEnumerated( idolSH, idSTsp, idSPzerofour );
        var idolNC = charIDToTypeID( "olNC" );
            var list4 = new ActionList();
                var desc21 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerozero = charIDToTypeID( "NC00" );
                desc21.putEnumerated( idncTp, idSTnc, idNCzerozero );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc21 );
                var desc22 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNConenine = charIDToTypeID( "NC19" );
                desc22.putEnumerated( idncTp, idSTnc, idNConenine );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc22 );
                var desc23 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwoeight = charIDToTypeID( "NC28" );
                desc23.putEnumerated( idncTp, idSTnc, idNCtwoeight );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc23 );
                var desc24 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc24.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc24 );
                var desc25 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc25.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc25 );
                var desc26 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc26.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc26 );
        desc20.putList( idolNC, list4 );
        var idobIA = charIDToTypeID( "obIA" );
        desc20.putBoolean( idobIA, false );
        var idobIP = charIDToTypeID( "obIP" );
        desc20.putString( idobIP, """""" );
        var idobCS = charIDToTypeID( "obCS" );
        var idSTcs = charIDToTypeID( "STcs" );
        var idCSzeroone = charIDToTypeID( "CS01" );
        desc20.putEnumerated( idobCS, idSTcs, idCSzeroone );
        var idovNC = charIDToTypeID( "ovNC" );
            var list5 = new ActionList();
                var desc27 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzeroone = charIDToTypeID( "NC01" );
                desc27.putEnumerated( idncTp, idSTnc, idNCzeroone );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc27 );
                var desc28 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwozero = charIDToTypeID( "NC20" );
                desc28.putEnumerated( idncTp, idSTnc, idNCtwozero );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc28 );
                var desc29 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerotwo = charIDToTypeID( "NC02" );
                desc29.putEnumerated( idncTp, idSTnc, idNCzerotwo );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc29 );
                var desc30 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNConenine = charIDToTypeID( "NC19" );
                desc30.putEnumerated( idncTp, idSTnc, idNConenine );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc30 );
                var desc31 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerosix = charIDToTypeID( "NC06" );
                desc31.putEnumerated( idncTp, idSTnc, idNCzerosix );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc31 );
                var desc32 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc32.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc32 );
                var desc33 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc33.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc33 );
                var desc34 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc34.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc34 );
                var desc35 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwotwo = charIDToTypeID( "NC22" );
                desc35.putEnumerated( idncTp, idSTnc, idNCtwotwo );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc35 );
        desc20.putList( idovNC, list5 );
        var idovCM = charIDToTypeID( "ovCM" );
        desc20.putBoolean( idovCM, false );
        var idovCW = charIDToTypeID( "ovCW" );
        desc20.putBoolean( idovCW, true );
        var idovCU = charIDToTypeID( "ovCU" );
        desc20.putBoolean( idovCU, true );
        var idovSF = charIDToTypeID( "ovSF" );
        desc20.putBoolean( idovSF, true );
        var idovCB = charIDToTypeID( "ovCB" );
        desc20.putBoolean( idovCB, true );
        var idovSN = charIDToTypeID( "ovSN" );
        desc20.putString( idovSN, """c:\photos""" );//Here's where the default folder is suppose to go.
    var idSaveForWeb = stringIDToTypeID( "SaveForWeb" );
    desc19.putObject( idUsng, idSaveForWeb, desc20 );
executeAction( idExpr, desc19, DialogModes.ALL );

Tags: Photoshop

Similar Questions

  • Is it possible to preset on high JPEG when you use "save for Web". » ?

    Hello

    I use photoshop elements 10. When I'm ready to save the image under "SAVE for WEB" can I preset it 'JPEG HIGH' cos right now it will pop up in "GIF".

    When I use the PSE2, I am able to launch as JPEG HIGH. Now, I have to click the popdown menu to select 'JPEG high '.

    You need to right click the icon of the PSE Bureau and choose "Run as Administrator".

    Then, open an EPS file, use save for Web, and change all the settings to what you prefer. Hold down the Alt key and the 'Done' button will change to a button "Remember." Click it, and then save your image. The settings will be saved and you don't have to rerun PSE as an administrator.

    Ken

  • When you use "Save for Web" with slices, it puts the images exported to a/images folder. Can I turn that off?

    I don't want to create a new folder/images every time I export images. I just want to export directly into the folder I specified.

    Is it possible to change this? I could not find a way.

    Thank you!

    In the save for Web dialog go to the dropdown menu, click change output settings and under saving files, uncheck the Set of Images in the folder

  • How to choose the display by default when you use two screens on my Mac Pro?

    How to choose the display by default when you use two screens on my Mac Pro?

    The default view when you have several is made that you drag the little icon in the menu bar in this pane:

    .

  • 1217nfw MFP how to change network name and password when you buy a new routers

    I have a 1217nfw MFP.  It was working fine without thread.  Then my router has stopped working properly.  I bought a new router and easily set up my computer, the iPad and the iPhone to work with her.  But I don't know how to change the printer set up so that he will see and connect to the new router (i.e., change the network name and the password that the printer uses to connect).  Someone knows how to do this without having to uninstall and reinstall the printer as if it was fresh out of the box?  Thanks for your help.

    Thanks a lot for your help.  The choice to click on my laptop were not quite the same as stated in the article, but the article got to the right spot and I was able to figure out the rest.  So now my laptop is wireless printing.  MacBook Air my wife still does not work, but I'll play with it after the holiday weekend.  Do you know of an article that allows to change the name of the router and the password when it is a Mac?  Whatever it is, thank you very much for your quick response and help.

  • Where and how to change the name that appears when you post comments

    When I post a comment on MSN my name and PYSEUONYM appear I can't find where to change it

    MSN uses information / name of your e-mail address.

    So the change you access your profile on your email account / hotmail - outlook.com that never allows you to sign in using MSN.

  • Have multiple e-mail accounts. How to make an account by default when you use send to mail recipient?

    We have several email accounts. How to make one of the accounts the default sender address when we send a document to the recipient of the message? Or how can I change the order of the Thunderbird email accounts that they appear?

    There is an extension that allows you to rearrange the order of the accounts in the easy folderpane. It is manually sort folders.

    To do a particular server out by default, go to account settings > mail outgoing (SMTP), select the one to be the default and click set as default.

  • How can I disable the mouse pad when you use a mouse plug-and-play?

    How can I disable the mouse pad when you use a mouse plug-and-play? I tried to disable the driver, and nothing works.

    Hello

    Check with support of the manufacturer system, documentation online or forums that there is probably
    Shortcut keys that enable and disable the touchpad functions.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad entered)
    and some come with a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    The similar procedure on XP, Windows 7 and Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How can I stop and then resume when you use the magnetic Lasso tool?

    CS4 on Mac. I have some fairly complicated selections to make and the magnetic lasso tool seems a good choice. However: How can I stop and then resume when in use? For example, I would like to zoom, start by dragging along the edge, then stop, move the image to a different area of it is in the middle of my screen, then pick up again where I left.

    Hi MarieMeyer,

    You can press the SPACEBAR shortcut to activate the hand tool temporarily once you are finished with the selection on a part of the image.

    Then, move the image with the key space key and let it continue with the selection by using the magnetic lasso tool.

    You can use the SHIFT key to add to the selection by using the magnetic lasso tool.

    Kind regards

    Claes

  • How to make the menu letters more when you use Lightroom 4?

    How to make the menu letters more when you use Lightroom 4?

    Hey Lenovo W510,.

    The police of interface only option in Lightroom of sizing is in the preferences > Interface > panels > Font Size (Small/Large)

    The configuration in grand and then restarting Lightroom will increase the fonts you see in the signs that describe the functions of LR.

    If you're on Mac or Windows you might also decrease your screen/display resolution that will make everything look bigger on your screen.

    Hope this helps,

    Kind regards

    Pete

  • Why always, I received management is not available when you use maps for the iPhone 6 and I live in the Qatar?

    Why I always get direction is not available when you use maps for the iPhone 6 more?

    Currently I live in the Qatar.

    Hi Alison, Sameh

    The reason why you see directions is not available, it's that for cards of Apple, turn-by-turn directions is not a feature that is available in the Qatar. You can search for places and satellite imagery
    Take a look at the link below for more details on what features are available in the Qatar.

    iOS 9 feature availability
    http://www.Apple.com/iOS/feature-availability/

    Nice day

  • Questions about privacy and security when you use Safari for Windows

    I have Itunes + Quick Time Player installed to download music and some time ago I had the opportunity to download Safari for Windows.  I used it a few times, just out of curiosity, and I noticed that it is much faster than IE7, so I plan to use it regularly, but before that, I have a few questions:

    -someone at - it tested (or uses) Safari for Windows, and what are your results?

    -What is save to use as Firefox or Opera, both recommended as alternative by our experts at the HijackThis forum?

    -the programs that I installed (Online Armor firewall, AVG 8.0 suite, MBAM with protection in real time enabled RogueRemover Pro with immune protection enabled, WinPatrol, SpywareBlaster) offer the same protection when you use Safari for browsing?

    Thanks a lot already for your answers, Advisor or thoughts on this issue.

    Mona.

    Inspiron 1501

    Win XP - SP3

    Message edited by mona7865 on 08/07/2008 06:19

  • Need to reset the button by default when you use the structure of the event?

    When you use the buttons with a mechanical action "releasing lock" to only trigger the same structure with the same 'value has changed', the button does not jump upwards as you would expect.  I can get to behave as I want by adding a "default reset" invoke the node, but this seems somewhat exaggerated.  Is there an easier way to get the button to jump to the top after pressing on?

    The button will reset once it is read by the code. This means that the terminal is inside the structure of the event. If you move outside the terminal, it would read only the beginning of the race and then never and it will not be reset.

    If the terminal is learn the structure of the event, it is read by the code (even if it is not connected to anything) and it reset as soon as the event has a chance to run.

  • How to reference the names of columns, if you use select *.

    Hello

    How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.

    Even if I could get the column names in the other variables. I am new to CF so question may be stupid.

    getting column names: -.

    < cfquery datasource = "RTW_ORA" name = "cn" >
    SELECT COLUMN_NAME
    OF ALL_COL_COMMENTS
    WHERE TABLE_NAME = ' #meas #
    < / cfquery >

    obtain data: -.

    < cfquery datasource = "RTW_ORA" name = "cd" >
    SELECT *.
    To #meas #.
    < / cfquery >

    How do all the output data?

    Any help would be much appreciated!

    Thank you

    Tushar Saxena

    How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.

    Even if I could get the column names in the other variables. I am new to CF so question may be stupid. getting column names: -.


    SELECT COLUMN_NAME
    OF ALL_COL_COMMENTS
    WHERE TABLE_NAME = ' #meas #

    obtain data: -.


    SELECT *.
    To #meas #.

    How do all the output data?

    Your question is not stupid. You can use the concept of a query requestand their properties cfquery attributes name and result.


    SELECT *.
    To #meas #.






    column names: #column_names #.

    number of columns: #no_of_columns #.



    SELECT #column_names #.
    FROM the cd



    A SQL query: #resQoQ.sql #.

    Query:


       
       
    #column #: #cd [column] [currentrow] #.
       


    T/t:


       
    #column #: #QoQ [column] [currentrow] #.
       


  • Try not to save artboard when you export or using save for web and devices

    Hello

    I use AI CS5 and I'm recording a logo located on a 8.5 x 11 artboard.  When I try to export or 'save for web and devices', I get plan all work to be saved - not only the logo as I want.  I never had this problem in CS3 and just start with CS5, so I don't know if there is something new that I have to be put out just to save the logo rather than the entire page of 8.5 x 11.

    Any help is appreciated,

    Kristie

    The option named "Clip for work plan" and that you find in the menu object > Slice or in the dialog Web save for

Maybe you are looking for