Append SFW file name in action

Sorry if this has been answered before. I found a lot of similar questions but no answers.
If I record an action that includes Save for Web, I can either leave the name unchanged (and the individual file name will be used when I play the action) or change the name (and that name will be used every time I play the action). But it does not let me append the file name.
For example, I want to create 3 sizes of each image and have each one named filename_sm.jpg, filename_md.jpg and filename_lg.jpg.
Currently, I export each size to a different folder (with the original file name), use NameChanger to append the name, then move the images to their final destination. I thought that, in its 12th incarnation, Photoshop would have a more efficient way of dealing with this issue.

xbytor has provided Scripts that convert Actions to JavaScript named »ActionToJavascript.jsx« and »ActionFileToJavascript.jsx«.
You should be able to find them on this site
http://www.ps-scripts.com/
And you can use »ScriptingListener.plugin« (by moving it into the »Automate«-Folder) to record what you do in Photoshop (not brush-work, though, I’m afraid, basically steps that would also record in an Action) to use in JavaScript later on.
What's missing from the actions is a way to edit them, You can re-record a step but you cannot edit it to fine-tune it.
The way I see it, you can either have it real simple and use Actions or somewhat more involved and use Scripts.
Anyway, you could look over in the Feature Request Forum if the features you do miss have been requested in the past and add your support or create a new request.
I guess it is a bit like with the gears of a car – you can probably get around never using the fourth gear if you never drive on highways, but for certain purposes it might be beneficial to use it after all.
Same with Photoshop Scripts – you can be a proficient and efficient creator/editor of amazing images in Photoshop without using custom Scripts, but certain tasks (which may or may not be relevant to your work) run »smoother« with Scripts.

Similar Messages

  • Date appended to file name

    Hi
    I want to append date to my attachement name, to achieve this I went to scheduling and scheduled my report and gave attachment name as my_file_%y%m%d as specified by Tim in his blog (http://blogs.oracle.com/xmlpublisher/2009/12/dynamic_delivery_file_naming.html), but it is just giving the characters as they are instead of year month date appended to file name, my output is excel and our environment is standalone BIP.
    Anyone help me on this.
    Edited by: user8937215 on Sep 2, 2010 7:04 AM

    Please check if the thread Re: Can I append date to the file name using Bursting helps

  • Appending a file name to a file in photoshop

    I have a work flow that takes a bunch of files and sets them up in a certain way. I then have an action that goes through and sets the files up for a delivery to a client. I do not want to run multiple actions and would like to have them save into one folder with the correctly appended file name. This obviously cant be done in an action, and a batch means that I have to create five different actions and sit there five different times to create the batch delivery. I would like one action that calls a script that saves the file with the appropriate file name.
    Here is what I have.
    Working file.psd
    Runs an action. Flattens file in a certain way
    saves a file out names "filename"_Large.tiff
    resizes the image to 5x7
    saves file out named "filename".tiff
    flattens file
    saves file out named "filename".jpg
    creates a few different layers
    saves file out named "filename"_ghost.tiff
    flattens file
    saves file out named"filename"_ghost.jpg
    I have the action that runs all of this flawlessly, but I have to save them to different folders and on the next job I will have to update all teh file locations. I would like to just specify a folder location in my batch and have a script append the appropriate filename where need be.
    which would be
    _large
    _ghost
    any help would be awesome. IF not i will continue to just run them manually. into different folders, rename, and update the folder locations and saves each time.

    c.pfaffenbichler wrote:
    I would like one action that calls a script that saves the file with the appropriate file name.
    So why don’t you ask for help over in the Photoshop Scripting Forum?
    thanks buddy, really helpful to be snarky... dont worry on the internet you are super cool!!!
    a 5x7 is a 5x7 right 5x7 millimeters, centimeters, feet, inches, yards... what does it matter, I am not looking for you to write the action it is written. If you could read what I wrote and understand the words I was using, you would have seen that. But no you wanted to show up and be incredibly helpful. I bet I could look through  your recent replies and they are all exactly like this... nothing helpful just, im going to show up on threads and give absolutely zero advice that is useful.
    I was only asking for a script that could be written that i coudl call within an action to do a save as with an appended name....
    thanks buddy!

  • Creating a spool file with date/time appended to file name

    In Oracle Sql*Plus, I want to spool out a file, with the date-time stamp as part of the file name. Any idea how to do this?
    Here's what I have right now:
    SQL>
    set serveroutput on size 200000;
    rem
    rem $OFSA is a UNIX alias so sql plus is talking to UNIX
    rem
    spool $OFSA/logs/OFSAP/common_coa_id.log;
    prompt 'Enter date in mmddyyyy format, without quotes';
    exec upd_common_coa_id_driver ('&date_mmddyyyy');
    spool off;
    As an example, I'd like to have a file with this name: common_coa_id083002.log
    Thanks.

    In SQL*Plus this is what you can do to get the current date/time as part of the spool file:
    ============================================================================================
    SQL> column tm new_value file_time noprint
    SQL> select to_char(sysdate, 'YYYYMMDD') tm from dual ;
    1 row selected.
    SQL> prompt &file_time
    20020816
    SQL> spool C:\Temp\logfile_id&file_time..log
    . /* put your code here */
    . /* it will go to a file called C:\Temp\logfile_id20020816.log */
    SQL> spool off
    SQL>

  • Can I append the file name from a Foreach Loop Container Enumerator into a SQL Server Statement?

    I would like to pass back via an Email the name of the file that was successfully FTP'ed to a remote server. And I was hoping to do this via an Execute SQL Task with the following SQL Statement...but I just don't know if it will append the Foreach Loop Container
    variable enumerator to the appended Email message that I am building in SQL Server or if I can and how I can...
    I sort of get the feeling that I can try and do this via Dynamic SQL...I just don't know if by building dynamic SQL if my Foreach Loop Container enumerator variable will be appended to my Email Message via the SQL Server UPDATE 
    @[User::FTPFHFileName]
    Or do I add a Data Flow Task and an OLE DB Command and pass the Foreach Loop Container enumerator variable to a Stored Procedure referenced in the OLE DB Command via a "?"
    Thanks for your review and am hopeful for a reply.

    Hello,
    It seems that the issue had been solved and thanks for your sharing. It will be very beneficial for other community members who have similar questions.
    I’d like to mark this issue as "Answered". Please also feel free to unmark the issue, with any new findings or concerns you may have.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Exporting as jpeg with use artboards adds to file name

    When I export from Illustrator CS5 with "Use Artboards" checked it adds a "-01" to the end of my file name before the extention. I'm assuming that its because its artboard #1 or something. It happens with the all or the range button checked. It doesnt show the -01 when you are saving the file name. This is pretty annoying because I have to go back and re name the files when this happens. Any advice? Thanks!

    Same problem, Gex.
    Been trying to get this resolved for months with no joy. I have recently produced over 250 brand logos for a large multi national, all of which have to supplied in various formats and file types including .jpg. I too use only one artboard and since I don't want the logos cropped tight to the image, I check "use artboard" with the result that I get logoname-01.jpg on every file.
    It may not seem to be too much of a sweat to then delete the offending -01 from the resulting file name, but when you have to do this repeatedly it is extremely tiresome... and so unnecessary!! I too do not want, or need, to append the file name with anything at all.
    I really am at a loss to know why, if i have one artboard (AND ONLY ONE) it has to have a number at all. With 2 or more artboards, sure, it may be useful to identify each, but with 1... that is it, that is all there is. The only one. One of one. No more, no less. Very little chance of confusion i would have thought!
    So, Adobe can we have a radio button (or preference) along the lines of: "add pasteboard number" or "remove pasteboard number" or perhaps a more enlightened soul at Adobe can respond with a workaround (unlikely, it is Adobe after all!).

  • File Name Stamper

    Hello All,
    I am using: http://acrobatusers.com/assets/uploads/actions/File_Name_Stamper.pdf
    It works great for one file. But for multiple files, a popup dialog box keeps showing up. Our small non-profit organization is processing 1000+ files and pressing the enter key is cumbersome.
    The actual JavaScript code is below. Is there a way to disable the popup dialog box?
    Many thanks...
    //   File Name Stamper Action Script
    //   by Thom Parker, WindJack Solutions, Inc.
    //      www.windjack.com, www.pdfscripting.com
    //   for Adobe Systems Inc. www.adobe.com
    //       NOTE: Only for use in an Action Script
    //       Requires:  Acrobat 10 or later
    //   Stamps the PDF file Name/Title/Date onto a PDF
    //   A popup dialog for entering stamping parameters
    //   is displayed for each PDF processed by the Action
    //   Parameters include Position, Text Size, Font, Text Color
    //   The stamp is created watermark
    //   Version 1.2 - 11/5/2020
    //Acrobat JavaScript Dialog
    //Created by DialogDesigner from WindJack Solutions
    //<CodeAbove>
    var aFontNames = [
    "Helvetica",
    "Times",
    "Courier",
    var aDateFmts = [
                "mm/dd/yyyy",
                "yyyy-mm-dd",
                "mmmm d, yyyy",
                "ddd mmm d, yyyy",
                "dddd mmmm d, yyyy"
    function SetLabelText(dialog, dlg)
         var strLab = "";
         var oRslt = dialog.store();
         strLab = oRslt["FlNm"]?dlg.strDocFileName:dlg.strDocTitle;
         if(oRslt["HDat"])
            var path = new Array();
             strLab += " - " + ( (dlg.GetListSel(oRslt["DFmt"],path))?path.reverse():"").toString();
         dialog.load({"DcSt":strLab});
    //</CodeAbove>
    if(typeof(global.FileNameStamp) == "undefined")
    global.FileNameStamp =
        result:"cancel",
        DoDialog: function(){return app.execDialog(this);},
        strLabSource:"FlNm",
        strDocStamp:"",
        bUseDate:false,
        strDateFormat:"",
        strFontName:["Helvetica"],
        strFontSize:"12",
        strFontColor:"000000",
        strHorzPos:"PosR",
        nMarginX:"0.5",
        strVertPos:"PosT",
        nMarginY:"0.5",
        strPgRangeSel:"rAll",
        strStrtPg:"",
        strEndPg:"",
        GetRadioSel:function(oRslts,aCtrls){
          for(var strRtn=aCtrls[0];aCtrls.length>0;strRtn=aCtrls.pop()){
            if(oRslts[strRtn] == true)
              return strRtn;
          return "";
        SetListSel:function(list,path){if(path.length == 0) return;
        eval("list[\""+ ((typeof path.join != "function")?path:path.join("\"][\"")) + "\"] = 1")},
        GetListSel:function(oLstRslts,path){
           for(var item in oLstRslts){
              if( ((typeof oLstRslts[item]=="number")&&(oLstRslts[item]>0))
                 || this.GetListSel(oLstRslts[item],path) )
               {path.push(item);return true;}
           return false;
        bHidden:true,
        nNumPages:1,
        nCurPage:0,
        strDocTitle:"My Title",
        strDocFileName:"mytestdoc.pdf",
        SetTheLabel:SetLabelText,
        initialize: function(dialog)
            var listDFmt = new Object();
            this.SetListSel(listDFmt, this.strDateFormat);
            var listFont =
                "Helvetica": -1,
            this.SetListSel(listFont, this.strFontName);
            var dlgInit =
                "Font": listFont,
                "FtSz": this.strFontSize,
                "FtCl": this.strFontColor,
                "MrgH": this.nMarginX,
                "MrgV": this.nMarginY,
                    "DcSt": this.strDocStamp,
                    "HDat": this.bUseDate,
                    "tFPg": this.strStrtPg,
                    "tTPg": this.strEndPg,
            dlgInit[this.strLabSource] = true;
            dlgInit[this.strHorzPos] = true;
            dlgInit[this.strVertPos] = true;
            dlgInit[this.strPgRangeSel] = true;
            dialog.load(dlgInit);
            dialog.enable(
                    "tTPg": false,
                    "tFPg": false,
                    "DFmt": false,
            if( (this.strStrtPg == "")|| isNaN(this.strStrtPg) || (Number(this.strStrtPg) > this.nNumPages) )
               if(this.bHidden)
                   this.strStrtPg = "1";
               else
                   this.strStrtPg = (this.nCurPage+1).toString();
            if((this.strEndPg == "") || isNaN(this.strEndPg) || (Number(this.strEndPg) > this.nNumPages) )
               this.strEndPg = this.nNumPages.toString();
            var flist = {};
            for(var i=0;i<aFontNames.length;i++)
            for(var nm in font)
               flist[font[nm]] = -1;
            flist[this.strFontName] = 1;
            var dlist = {};
            var oDt = new Date();
            for(var i=0;i<aDateFmts.length;i++)
               dlist[util.printd(aDateFmts[i],oDt)] = (i==0)?1:-1;
            var exInit ={"tFPg": this.strStrtPg,"tTPg":this.strEndPg, "sOfN":"of (" + this.nNumPages+")",
                                 "DcSt":(this.strLabSource == "FlNm")?this.strDocFileName:this.strDocTitle,
                                 "TopL":"Working on File: " + this.strDocFileName, "Font":flist, "DFmt":dlist };
            if(this.bHidden && this.strPgRangeSel == "rCur")
                  this.strPgRangeSel = "rAll";
                  exInit["rCur"] = false;
                  exInit[this.strPgRangeSel] = true;
            dialog.load(exInit);
            var exInit = {"ExPg":this.strPgRangeSel =="rFro", "MrgH":this.strHorzPos!="PosC", "MrgV":this.strVertPos!="PosM",
                                    "tFPg":this.strPgRangeSel =="rFro", "tTPg":this.strPgRangeSel == "rFro", "rCur":!this.bHidden,
                                    "DcSt":(this.strLabSource == "Titl"), "DFmt":this.bUseDate};
            dialog.enable(exInit);
            this.SetTheLabel(dialog,this);
        validate: function(dialog)
            var oRslt = dialog.store();
            if(isNaN(oRslt["FtSz"]) || (Number(oRslt["FtSz"]) < 0))
                 app.alert("Font Size must be a positive number");
                 return false;
            var rg = /([\dabcdef]{2})([\dabcdef]{2})([\dabcdef]{2})/i;
            if(!rg.test(oRslt["FtCl"]))
                 app.alert("The Font Color must be a series of 3 pairs of Hexadecimal numbers,"
                               + " where each pair represents one 8 bit color component, Red Green Blue\n"
                               + "For Example:\n   Black = 000000,  Red = FF0000, Green = 00FF00, Blue = 0000FF");
                 return false;
            if(isNaN(oRslt["MrgH"]) || (Number(oRslt["MrgH"]) < 0))
                 app.alert("The Horizontal Margin must be a positive number");
                 return false;
            if(isNaN(oRslt["MrgV"]) || (Number(oRslt["MrgV"]) < 0))
                 app.alert("The Vertical Margin must be a positive number");
                 return false;
            return true;
        commit: function(dialog)
            var oRslt = dialog.store();
            this.strLabSource = this.GetRadioSel(oRslt,["FlNm","Titl"]);
            this.strDocStamp = oRslt["DcSt"];
            this.bUseDate = oRslt["HDat"];
            var path = new Array();
            this.strDateFormat = (this.GetListSel(oRslt["DFmt"],path))?path.reverse():"";
            var path = new Array();
            this.strFontName = (this.GetListSel(oRslt["Font"],path))?path.reverse():"";
            this.strFontSize = oRslt["FtSz"];
            this.strFontColor = oRslt["FtCl"];
            this.strHorzPos = this.GetRadioSel(oRslt,["PosL","PosC","PosR"]);
            this.nMarginX = oRslt["MrgH"];
            this.strVertPos = this.GetRadioSel(oRslt,["PosT","PosM","PosB"]);
            this.nMarginY = oRslt["MrgV"];
            this.strPgRangeSel = this.GetRadioSel(oRslt,["rAll","rCur","rFro"]);
            this.strStrtPg = oRslt["tFPg"];
            this.strEndPg = oRslt["tTPg"];
        "But1": function(dialog)
            dialog.end("Abrt");
        "tTPg": function(dialog)
            var x;
        "rFro": function(dialog)
            dialog.enable({tFPg:true, tTPg:true, "ExPg":true});
        "rCur": function(dialog)
            dialog.enable({tFPg:false, tTPg:false,"ExPg":false});
        "rAll": function(dialog)
            dialog.enable({tFPg:false, tTPg:false, "ExPg":false});
        "PosB": function(dialog)
            dialog.enable({"MrgV":true});
        "PosM": function(dialog)
            dialog.enable({"MrgV":false});
        "PosT": function(dialog)
            dialog.enable({"MrgV":true});
        "PosR": function(dialog)
            dialog.enable({"MrgH":true});
        "PosC": function(dialog)
            dialog.enable({"MrgH":false});
        "PosL": function(dialog)
            dialog.enable({"MrgH":true});
        "DFmt": function(dialog)
            this.SetTheLabel(dialog,this);
        "HDat": function(dialog)
            this.SetTheLabel(dialog,this);
            dialog.enable({"DFmt":dialog.store()["HDat"]});
        "DcSt": function(dialog)
            var oRslt = dialog.store();
            if(oRslt["Titl"])
              this.strDocTitle = oRslt["DcSt"];
        "Titl": function(dialog)
            this.SetTheLabel(dialog,this);
            dialog.enable({"DcSt":true});
        "FlNm": function(dialog)
            this.SetTheLabel(dialog,this);
            dialog.enable({"DcSt":false});
        description:
            name: "File Name Stamper",
            elements:
                    type: "view",
                    elements:
                            type: "view",
                            char_height: 10,
                            elements:
                                    type: "static_text",
                                    item_id: "TopL",
                                    name: "Put Dialog Controls Here",
                                    char_width: 15,
                                    alignment: "align_fill",
                                    font: "palette",
                                    bold: true,
                                    type: "cluster",
                                    item_id: "cls1",
                                    name: "Label Options",
                                    elements:
                                            type: "view",
                                            align_children: "align_row",
                                            alignment: "align_fill",
                                            elements:
                                                    type: "radio",
                                                    item_id: "FlNm",
                                                    group_id: "FUse",
                                                    name: "Use File Name",
                                                    variable_Name: "strLabSource",
                                                    type: "radio",
                                                    item_id: "Titl",
                                                    group_id: "FUse",
                                                    name: "Use Document Title (or custom)",
                                                    type: "edit_text",
                                                    item_id: "DcSt",
                                                    variable_Name: "strDocStamp",
                                                    width: 200,
                                                    height: 23,
                                                    alignment: "align_fill",
                                            type: "view",
                                            align_children: "align_row",
                                            elements:
                                                    type: "check_box",
                                                    item_id: "HDat",
                                                    name: "Include Date",
                                                    variable_Name: "bUseDate",
                                                    type: "static_text",
                                                    item_id: "sta2",
                                                    name: "Format",
                                                    type: "popup",
                                                    item_id: "DFmt",
                                                    variable_Name: "strDateFormat",
                                                    width: 180,
                                                    height: 23,
                                                    char_width: 8,
                                            type: "view",
                                            align_children: "align_row",
                                            alignment: "align_fill",
                                            elements:
                                                    type: "static_text",
                                                    item_id: "sta1",
                                                    name: "Font:",
                                                    type: "popup",
                                                    item_id: "Font",
                                                    variable_Name: "strFontName",
                                                    width: 111,
                                                    height: 23,
                                                    char_width: 8,
                                                    type: "static_text",
                                                    item_id: "sta0",
                                                    name: "Font Size:",
                                                    alignment: "align_right",
                                                    font: "dialog",
                                                    type: "edit_text",
                                                    item_id: "FtSz",
                                                    variable_Name: "strFontSize",
                                                    width: 29,
                                                    height: 23,
                                                    type: "static_text",
                                                    item_id: "sta3",
                                                    name: "Color(8bit Hex RGB):",
                                                    alignment: "align_right",
                                                    font: "dialog",
                                                    type: "edit_text",
                                                    item_id: "FtCl",
                                                    variable_Name: "strFontColor",
                                                    width: 80,
                                                    height: 23,
                                                    char_width: 8,
                                    type: "cluster",
                                    item_id: "cls1",
                                    name: "Position",
                                    width: 188,
                                    height: 80,
                                    char_width: 8,
                                    char_height: 8,
                                    elements:
                                            type: "view",
                                            align_children: "align_top",
                                            elements:
                                                    type: "radio",
                                                    item_id: "PosL",
                                                    group_id: "PosH",
                                                    name: "Left",
                                                    variable_Name: "strHorzPos",
                                                    type: "radio",
                                                    item_id: "PosC",
                                                    group_id: "PosH",
                                                    name: "Center",
                                                    type: "radio",
                                                    item_id: "PosR",
                                                    group_id: "PosH",
                                                    name: "Right ",
                                                    type: "static_text",
                                                    item_id: "sta2",
                                                    name: " Margin (inches):",
                                                    type: "edit_text",
                                                    item_id: "MrgH",
                                                    variable_Name: "nMarginX",
                                                    char_width: 8,
                                            type: "view",
                                            align_children: "align_top",
                                            elements:
                                                    type: "radio",
                                                    item_id: "PosT",
                                                    group_id: "PosV",
                                                    name: "Top ",
                                                    variable_Name: "strVertPos",
                                                    type: "radio",
                                                    item_id: "PosM",
                                                    group_id: "PosV",
                                                    name: "Middle",
                                                    type: "radio",
                                                    item_id: "PosB",
                                                    group_id: "PosV",
                                                    name: "Bottom",
                                                    type: "static_text",
                                                    item_id: "sta2",
                                                    name: "Margin (inches):",
                                                    type: "edit_text",
                                                    item_id: "MrgV",
                                                    variable_Name: "nMarginY",
                                                    char_width: 8,
                                    type: "cluster",
                                    item_id: "cls3",
                                    name: "Page range",
                                    align_children: "align_row",
                                    elements:
                                            type: "radio",
                                            item_id: "rAll",
                                            group_id: "GRP1",
                                            name: "All",
                                            variable_Name: "strPgRangeSel",
                                            height: 20,
                                            type: "radio",
                                            item_id: "rCur",
                                            group_id: "GRP1",
                                            name: "Current (Applies only to Open Document)",
                                            height: 20,
                                            type: "radio",
                                            item_id: "rFro",
                                            group_id: "GRP1",
                                            name: "From:",
                                            width: 12,
                                            height: 24,
                                            type: "edit_text",
                                            item_id: "tFPg",
                                            variable_Name: "strStrtPg",
                                            height: 24,
                                            char_width: 6,
                                            type: "static_text",
                                            item_id: "sta1",
                                            name: "To:",
                                            height: 24,
                                            type: "edit_text",
                                            item_id: "tTPg",
                                            variable_Name: "strEndPg",
                                            height: 24,
                                            char_width: 6,
                                            type: "static_text",
                                            item_id: "sOfN",
                                            name: "of (N)          ",
                                            height: 24,
                            type: "view",
                            align_children: "align_row",
                            alignment: "align_fill",
                            elements:
                                    type: "ok_cancel",
                                    ok_name: "Apply",
                                    cancel_name: "Skip",
                                    type: "button",
                                    item_id: "But1",
                                    name: "Abort Process",
                                    type: "gap",
                                    item_id: "gap1",
                                    width: 210,
                                    height: 10,
                                    type: "static_text",
                                    item_id: "sta1",
                                    name: "version 1.2  11/5/2010",
                                    alignment: "align_right",
    var oDoc = event.target;
    if(typeof(oDoc.xfa) == "undefined")
        global.FileNameStamp.bHidden = oDoc.hidden;
        global.FileNameStamp.nNumPages = oDoc.numPages;
        if(!oDoc.hidden)
           global.FileNameStamp.nCurPage = oDoc.pageNum;
        global.FileNameStamp.strDocTitle = oDoc.info.title;
        global.FileNameStamp.strDocFileName = oDoc.documentFileName;
        var cRtn = global.FileNameStamp.DoDialog();
        if("ok" == cRtn)
            // Setup starting parameters
            var nPgStart, nPgEnd;
            var nTextSize = Number(global.FileNameStamp.strFontSize);
            var strLabel = global.FileNameStamp.strDocStamp.replace(/\n/g,"\r");
            // Get Font Color
            rgCol = /([\dabcdef]{2})([\dabcdef]{2})([\dabcdef]{2})/i;
            rgCol.test(global.FileNameStamp.strFontColor);
            var aFontCol = ["RGB", parseInt(RegExp.$1,16)/255,
                            parseInt(RegExp.$2,16)/255, parseInt(RegExp.$3,16)/255];
            switch(global.FileNameStamp.strPgRangeSel)
              case "rAll":
                nPgStart = 0;
                nPgEnd = oDoc.numPages -1;
                break;
              case "rCur":
                nPgEnd = nPgStart = oDoc.hidden?0:oDoc.pageNum;
                break;
              case "rFro":
                nPgStart = Number(global.FileNameStamp.strStrtPg)-1;
                if(nPgStart > (oDoc.numPages -1))
                  nPgStart = oDoc.numPages -1;
                nPgEnd = Number(global.FileNameStamp.strEndPg)-1;
                if(nPgEnd > (oDoc.numPages -1))
                  nPgEnd = oDoc.numPages -1;
                break;
               var nTextAlign,nHAlign,nVAlign;
               var nHMarg, nVMarg;
               var nMargX = Number(global.FileNameStamp.nMarginX) * 72;
               switch(global.FileNameStamp.strHorzPos)
                  case"PosL":
                    nTextAlign = app.constants.align.left; // Left Aligned Text
                    nHAlign = app.constants.align.left;
                    nHMarg = nMargX;
                    break;
                  case"PosC":
                    nTextAlign = app.constants.align.center;
                    nHAlign = app.constants.align.center;
                    nHMarg = 0;
                    break;
                  case"PosR":
                    nTextAlign = app.constants.align.right;
                    nHAlign = app.constants.align.right;
                    nHMarg = -nMargX;
                    break;
               var nMargY = Number(global.FileNameStamp.nMarginY) * 72;
               switch(global.FileNameStamp.strVertPos)
                  case"PosT":
                    nVAlign = app.constants.align.top;
                    nVMarg = -nMargY;
                    break;
                  case"PosM":
                    nVAlign = app.constants.align.center;
                    nVMarg = 0;
                    break;
                  case"PosB":
                    nVAlign = app.constants.align.bottom;
                    nVMarg = nMargY;
                    break;
             // Find and rename watermark;
             var aGs = oDoc.getOCGs();
             for(var i=0;aGs && (i<aGs.length);i++)
                if(aGs[i].name == "Watermark");
                   aGs[i].name = "Old_Watermark";
             try{
              //  Create watermark
              oDoc.addWatermarkFromText({cText:strLabel, nTextAlign:nTextAlign, cFont:global.FileNameStamp.strFontName,
                    nFontSize:nTextSize, aColor:aFontCol, nStart:nPgStart, nEnd:nPgEnd,
                    nHorizAlign:nHAlign, nHorizValue:nHMarg,
                    nVertAlign:nVAlign, nVertValue:nVMarg});
             }catch(e){
                app.alert("Error applying Label:\n" + e);
             // Find and rename watermark;
             var aGs = oDoc.getOCGs();
             for(var i=0;aGs && (i<aGs.length);i++)
                if(aGs[i].name == "Watermark");
                   aGs[i].name = "DocumentLabel";
                   break;
        else if(cRtn == "Abrt")
          event.rc = false;
    else
       if(3 == app.alert(oDoc.documentFileName + ": is a LiveCycle Form, which cannot be labeled\n\n Do you want to continue processing files? (Pressing No will Abort the file processing)",1,2))
         event.rc = false;

    There are a number of simpler ways to do this. Thom's Action is great, but sounds like it might be overkill for this. Text can be added a numer of ways, including a form field, text annotation, layer (aka Watermark, as with Thom's script), and stamp. It can also then be flattened so it gets converted to regular page contents, preventing the user from interacting with it and perhaps changing it. Which you choose depends on you needs. If you provide a bit more description, I could suggest a simpler script you can use.
    Also, please clarify exactly what you want included. Do you want just the file name (example.pdf), the file name without the extension (example), or the complete path (c:\dir1\dir2\example.pdf)?

  • How to add file name to path

    Hi,
    I use this sentence:
    set temp to path to home folder from user domain
    which give me the name of the home folder of the current user. But how in Apple script I can append a file name to that to get something like:
    "Macintosh HD:Users:user:temp_file"
    Thanks

    Hi,
    Now it is working just well.
    I kept 2 variables: one with the POSIX file path for my do shell script and another one (using the provided tip here) for the Applescript function.
    The only problem I had left was that teh file was writen in, maybe, UTF8 so I added to the open for access a "as text" at the end to make the file as straith text file.
    I always found languages like Applescript a little bit hard to learn. Strangely, I have less difficulty with Cocoa!
    Thanks for avery one here!

  • Action hard codes custom file name

    I recorded an action to crop and save for web. I have done this 1000's of times over the years, but in CS6 it is hardcoding a Custom File Name, and in the wrong format too boot.
    I am saving as JPG only and accepting the default name, which should leave me with an action that has no custom name, yet it does, and the custom name is of an HTML file name.
    So, when I run my action, it names every single file the same name, and never creates a jpg.
    This is a new bug in CS6. It wasn't here before.
    I can't figure out how to get around it????
    Kirk

    Figured out a way to work around this, but it is irritating. Instead of my action doing this:
    Flatten
    Crop (user interaction)
    Save For Web
    Close (without saving)
    I have to do this:
    Flatten
    Save as JPG (in same directory where I want the Web file to go)
    Crop (user interaction)
    Save For Web (Over top last saved file)
    Close (without saving)
    For some reason, when I use the save as JPG, it doesn't custom code the file name and when I save for web in the same place it also doesn't custom code the file name.
    I never had to do this before in all the years of using this type of action, and I use it ALOT!
    I have found that it sometimes does not hardcode the file name, but there seems to be no rhyme or reason.
    Kirk
    Photoshop CS6 on Windows7-64, haven't tested this on my MBP

  • Append date to exporting file name in SQL reporting service

    When exporting a report to another format, say excel,PDF; the file name is always set to the report name. Our client has a requirement where whenever a user exports a report to pdf, the timestamp of when the data of the report was made should be appended in the filename. Is there a way to do this in Reporting Services as well as report builder?
    example : Report name : Testreport
    Exported file should be : Testreport-November-22-20076.pdf
    please help me in this
    Thanks
    suku

    Hi,
    I know it's been while since this question was posted. I am replying so that it'll be useful for other people when they come across this same situation.
    If you have access to SQL Server Agent to create jobs then this idea will be helpful -
    1. Connect to your Report Server from SSMS.
    2. Note the ItemID for your report by executing this query
    select *
    from ReportServer..Catalog
    where Path like '%NameofyourReport%'
    3. Create a job in here with the name say "AppendDatetoxyzreport" and add a step in it with the code
    UPDATE [Catalog]
    SET [Path] = '/PathofyourrerportfromReportServer/ReportName_' + CONVERT(VARCHAR(8), GETDATE(), 112),
    [Name] = '/ReportName_' + CONVERT(VARCHAR(8), GETDATE(), 112)
    WHERE ItemID ='<ItemID>'
    4. Create another job with a name like "RemoveDatexyzreport" and add a step in it with the code
    UPDATE [Catalog]
    SET [Path] = 'PathofyoureportinReportserver/ReportName',
    [Name] = 'ReportName''
    WHERE ItemID = '<ItemID>'
    5. Now set your AppendDatetoxyzreport job schedule to execute first, then the Report's subscription and then the RemoveDatexyzreport.
    By doing this the first job changes the name to include present date, then you get you report and the next job sets it back to its previous name.

  • CS5 exporting TIF from EPS appends artboard name to the file name

    We have recently upgraded to CS5 from CS3. We routinely create EPS files, then export them to TIF's for final use. Previously I used the CROP MARKS tool to set the specific visual size of the art. Without the crop marks, when exporting to a TIF the exported file clips to the edges of the bounding box. In the event I have vertical lines at the outside limits of the drawings they stand the possibilitiy of getting "clipped" or dropped off when the resulting TIF is printed or placed in another document.  I understand the ARTBOARDS have replaced the crop marks setting.  If I create an art board, rename it as MYTAK4 ARTBOARD and then export from the EPS to a TIF, having the radio button "artboard" checked, the resultant TIF file becomes FILENAME_MYTAK4_ARTBOARD.tif.  With the hundreds of files that we create and continually revise, it is important that the any files we revise, maintain the same file name, not another file with same base name, with an appended artboard name tacked on before the TIF extension.  The only solution I have arrived at is to RENAME the file once the TIF is exported to remove the unwanted artboard portion of the name. Anyone have a better solution?

    Hi,
    We just released this tool: FERRY (http://ferry.thedamarmada.com). It does exactly what you want and a little bit more.
    I think it's worth it a try.
    It comes with a free demo that will export 5 layers.
    Take a look and let us know if it's what you need.
    It could be easily tweaked.
    Jordi

  • File name for append processing mode with time stamp

    Hi Experts
    we are doing file to file scenario using the processing mode as Append.
    the requirement for us to append the files and we need to have new file name with time stamp added to the appended file.but in the processing mode of the file adapter either we can append or add time stamp. thatz the problem I am facing now.
    we are doing file based processing not message based ,micheal blog regarding the dynamic file name is for message based not for file based.
    Please provide your valuable comments.
    Thanks
    Faheem

    Hi mohamed,
                      I suggest you to map the target source structure to the required filename u want, like for example ur filename is input26062008.txt means to the target structure u perform the following mapping
    constant (input) concat with currentdate function --> concat with constant .txt --> map this concat to target. So u will get the filename u expected with the time.
    Then in the communication channel u select the mode as append. Now ur requirement will get solve i think so. plz try.
    Regards,
    Murugavel

  • Appending in file and supplying file name at run time using File Adapter

    Hi,
    Can we use File Adapter to write in a file in append mode. i.e. a BPEL process opening a file appending some text and closing the file each time it called.
    Another query is can we create the file at run time with the supplied file name?

    In order to append to a file, we can use Append="true" in the interaction spec for the File/Ftp adapter.
    <jca:operation
    FileType="ascii"
    PhysicalDirectory="/home/adapter/output"
    FileNamingConvention="OutputFile.txt"
    NumberMessages="1"
    Append="true"
    >
    Filename we can specify in wsdl...

  • Officejet Pro 8600 Plus, not appending number in sequence to base file name when saving PDF.

    Officejet Pro 8600 Plus (new today - everything else working great), Vista 32-bit, HP desktop.
    After scanning documents and creating a PDF file (Save to file on my computer w/USB connection), using HP Scan, it does not append numbers in sequence to base file name.  HP Scan (Under Advanced Settings/Destinations) reads that it will do this (when you over over the base name field).  Perhaps I have to enable something.  Do you know how I can do this?  Thank you.

    I'm not really sure what's going on.  The install might not have written right.  Try uninstalling and installing from a fresh download.  Let me know what happens.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • ITunes appends incrementing number to file name

    Hi,
    I noticed that with some of my mp3 files iTunes 6 keeps on creating copies of them, appends an incrementing number to the file name and adds the new file to my iTunes library, which means I end up with multiple copies of the same song in my library.
    So if I have got a file called "03 All I Need.mp3" iTunes will create
    03 All I Need 1.mp3
    03 All I Need 2.mp3
    03 All I Need 3.mp3
    etc...
    Perhaps it could be related to the fact that I have got two computers accessing the same mp3 folder via a network?
    I really can't explain to myself why iTunes would be doing this, but it is terribly annoying, as I end up with the same song over and over again in my iTunes library.
    Does anybody know how I can prevent iTunes from doing that?
    Thanks heaps!

    Hi,
    Please take a look to the attached VI. I hope that I understood what you really want.
    I've replaced the Vi: Format into string with Number to Decimal String plus a Concatenate String. 
    Now, this is working for me, I don't get a space anymore.  If something is wrong, please let me know.
    Regards,
    Paul
    Attachments:
    temp_back.vi ‏11 KB

Maybe you are looking for

  • Can I charge my iphone4s in the cpu with the usb cable?

    I've been trying to charge my phone at my work with the USB cable and the cpu but I can't. are there any settings on this since when ever I get home and charge my phone there is no other problems.

  • Error in Custom Adapter

    Hi ALL, i have developed one custom adapter and its was working fine now we have change some code according to new requirement. now the thnig is this adapter is capable for sending the data once but when its again going to send data its giving me err

  • ESS MSS CBS Failed - Broken DCs */cfg

    Hi,       I am at the last stage of the import process for ESS MSS and its dependent SCs into our NWDI environment. All the imports are successful however, when I check the status of all the DCs under ESS and MSS components I see that all the ones DC

  • Prime 2.0 to 2.1 installation

    I am currently trying to upgrade Prime 2.0 to 2.1, following the instructions in the release notes.  Having some issues uploading the 2.1 patch to the Virtual controller.  Seems to be a syntax error/fat finger;  Does anyone have any tips or tricks to

  • HELP! JMF2.1.1e  installation Hell

    Hi I hope you can help, I've been at this for close to 4hours now with no joy. I'm using Win2000 service pack4, which is running Sun Studio 4 CE, Java Run Time Enviro 1.4.2_03, JVM 1.4.2_03-b02, and Java Plugin 1.4.2_03. I can't get JMF2.1.1e to work