How do I batch the file name (without extention) into the keyword in the metadata

I am trying to use a keyword into sets of images, each of the images on the set contains in the file name what I want for keyword and an extension.
Example,
File names:   
WD111_main
WD111_01
WD111_02
I want all of them to have on the metadata just WD111.
help?!?!

You will need to do this with a text field and a Javascript that executes on open.

Similar Messages

  • How to route the file, base on the file name without touching file content?

    Hi All,
    can you please provide me solution how to route the file based on file name with out touching file content.
    Business criteria :
    > One source directory having zip files with different file names
    > File adapter have to pick the zip files and have to route it to different email addresses based on fist 5 characters of file name.
    please provide possible solutions to route the zip files to target.
    Regards,
    Sreeramulu Konjeti.

    You can use Standard context object FILENAME.
    in receiver determination Put a condition based on standard context object FileNAME
    In the receiver determination, in the condition channel, use the Technical context object 'FileName' for file adapter.
    Follow the below path:
    Goto Receiver Detrmination --> Condition --> Left Operand f1 Help --> select first option 'Context Object' --> 1 List will be popped up --> Select FileName for File adapter from that list
    It will route the file based on filename.
    You can use CP for contains pattern (u2248) in condition
    FileNAME u2248  ABCFI*

  • How do I put the file name and path into either the header or the footer?

    I need to keep track of pdf documents as their names or locations sometimes change.  I need to show both file name and path, preferably in the header.  I would also like it to refresh automatically when I change, say, the file name, but that's not as essential as the basic function of showing the file name and path.

    You will need to do this with a text field and a Javascript that executes on open.

  • Aperture: After changed the file name in Finder Aperture can't load the referenced file anymore

    After I've changed the file name/format in Finder Aperture can't load/relink to the referenced file anymore. For some reasons I don't like to reimport the file.

    As you told, the command "Locate Referenced File" doesn't work, if the filename doen't match exactly. And the filenames should keep their new names.
    "Locate Referenced File" will be able to reconnect one file at a time, if you direct Aperture to the matching file in the Loate Referenced File dialog, but it will not be able to recognise the other matching referenced files and to reconnect them all at once with the "Reconnect All" button.
    It will be a lot of work to reconnect the one by one.  Usually it is much easier to rename the original master files using Metadata > Batch change in Aperture than to try to do that in the Finder.

  • How to use javascript to "save as" using form data in the file name

    I want to be able to use a button to "save as" and have it automatically pick up and use certain data from the fields in the file name. without having to manually type in the file name.
    Name: john doe
    Date: 1-25-13
    file name would be  (john doe 1-25-13)

    You will need two parts for this. A folder level script (which you place in a .js file under the JavaScripts folder of Acrobat), and a script embedded in the file itself (probably attached to a button).
    The folder-level script will look like this:
    var mySaveAs = app.trustedFunction( function(oDoc,cPath) {
        app.beginPriv();
        try {
            oDoc.saveAs(cPath);
        } catch(e){
            app.alert("Error During Save");
        app.endPriv();
    The doc-level script can look something like this (of course, you might need to adjust the names of the fields used):
    var filePath = this.path.replace(this.documentFileName, "");
    var newFileName = this.getField("name").valueAsString + " " + this.getField("date").valueAsString + ".pdf";
    mySaveAs(this, filePath+newFileName);
    You should be aware that several characters are not allowed in the file name, including comma's, forward- and back-slashes, line-breaks and excalmation marks, so if you try to use them the script would fail. It is possible to create a more advanced version of this script that will automatically remove such characters from the file-name, or alert the user if they used them.

  • How can I add form field value to the file name in save as dialog box

    I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
    A little background on the forms I want to use:  My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example.  I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server.  We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box.  The main office employees will decide into which server file the pdf should be saved.
    I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
    One little note:  We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
    Me and a lot of trees in this will really apprecitate any help you can give with this!  :-)

    You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
    Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
    myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
         app.beginPriv();
              var myTrustedRetn = app.browseForDoc( oArgs );
         app.endPriv();
         return myTrustedRetn;
    myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
         app.beginPriv();
              var myTrustedRetn = doc.saveAs( oArgs );
         app.endPriv();
         return myTrustedRetn;
    The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
    Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
    var fileName = this.getField("Roller Coaster").valueAsString;
    try {
         var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
         try {
              myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
         catch(e) {
              console.println("Save not allowed, perhaps readonly.");
    catch(e) {
    console.println("User cancelled Save As dialog box");
    Good Luck!

  • How to keep the file name

    Hello,
    I have one problem, trying to achieve a scenario file(sender)-xi-file(receiver). The file name that i send to XI have the following name fileXXXXYYYY.txt, my problem is when I use the file receiver adapter, I got the problem, I want to keep the name that has the file in the incoming system, but in the receiver adapter I dont know what to write in the file name schema to keep such name, and its a mandatory field...
    Do you have any idea how to achieve that?
    Thanks,
    Luis

    Hi All,
    Basically my requirement to get Filename in idoc segments in order to validate the posting at month end.
    Its an File to idoc scenario- GL Posting.
    Please check attached UDF and it gives error. Kindly help. Thanks

  • MessageFileUpload how to retrive the file name?

    Hi there guys,
    maybe it's a stupid question but i cannot find the answer :_( any of you knows how to retrive the file name i am going to upload from the messageFIleUpload item?
    Thank You, Pier Paolo.
    Edit: Found in another post!! eeheh LAZY ME!! :_)
    Message was edited by:
    PandreoL

    Nice to know that you found the solution. You could have as well used the javadoc for the same.
    --Shiv                                                                                                                                                                                                                   

  • How do I get the file name to print up closer to a horizontal photo?

    Kind of a nit-picking question, but here goes anyway:
    I use Lightroom's Print module to create contact sheets (three rows by three columns). I check the "Photo Info" check box and select "Filename" to have the file names printed with each photo. When the photo is shot vertically, the file name prints at the lower edge of the photo, as you would expect. However, when the photo is shot horizontally, the file name still prints down in the same place where it would print if the photo were vertical. That can be confusing because if the next photo down on the sheet is vertical, a file name can end up being much closer to the vertical photo below it--to which it is completely unrelated--than to the horizontal photo above it, to which it actually refers.
    Is there any way to get Lightroom to print file names closer to horizontal photos?

    Thanks to both of you for your speedy responses. Making all the shots horizontal or vertical (i. e., unchecking the "Rotate to Fit" box on the right) is not what I want. Increasing the vertical spacing is a possibility, but that'll make the vertical shots smaller. There's a program called "ImageBuddy" which does exactly what I want LIghtroom to do in this instance: print the filenames of only the horizontal shots higher and therefore closer to the photos to which they refer. It's quite cheap, but I'd rather not use Lightroom for everything else and ImageBuddy just for contact sheets, so if anybody knows of a way to do what I want to do within Lightroom, please do clue me in.

  • Is there a way to have compressor create files without have the settings name as part of the file name?

    It's very annoying to have to delete half of the file name each time.  Is there a way to just have it pop out as whatever you want to title it and the file extension?

    In Compressor 3 - Create a custom destination, where you want to save the compressed files.
    Once it is created, click on the custom destination and look in the Inspector - you will see the Output Filename Template for the destination. Delete the "- Setting Name" so that it just says "Source Media Name".
    Now apply this destination to your clips to be compressed.
    In Compressor 4, I believe the default is just the file name, but you can modify it in the same way by using the inspector for your custom destination when you create a custom destination.
    MtD

  • How to get the File name that File Adapter is giong to write to a directory

    Hi,
    I am really stuck at one pint while working with File Adapter/FTP Adapter.
    My requirement is I need to read a message from the Queue and write it to a directory as a physical file using a File/FTP adapter and the name that adapter will give to the file at runtime need to find and inset into the database for audit.
    Is any body could help me to know the file name at run time that generated by the adapter?
    Thanks,
    --Khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    I got the answer, I am posint this reply here that someone get the answer for this.
    I have tested like this...
    Create an empty BPEL process
    Create two File Adapters (one for Read, one fro Write) operations.
    Create a variable of type OutboundHeader_msg ( this message is chosen from the fileAdapterOutboundHeader.wsdl).
    Create a receive active and link it to the read operation then create a variable. Make sure this is the first activity so you check the create instance checkbox.
    Create invoke activity and link it to write adapter link.
    Place the assign activity in between the receive and invoke.
    In the assign activity create a copy operation and give your own name to the file name element inside the variable you created above.
    Now double click on invoke activity go to the adapter tab and choose the above variable as the Input Header Variable.
    This will generate the your own named file in the output file directory.
    Thanks,
    Khaleel

  • How to alter 'add to file names' script?

    I'm working on some stuff that I need to get done today, and it dawned on me that I could save a lot of time if I had a certain script perform a simple task for me. Unfortunately I haven't been able to get one to work right. I just want to be able to add the same thing onto the end of a file name... For instance, 01.jpg would become 01x.jpg, 02.jpg becomes 02x.jpg and so on. The basic 'Add to File Names' script will almost work, but it adds to the front of the name, not the back. Does anyone know how I could alter the lines in that script to get it to do what I want?
    Thanks for any help,
    Dave

    01. Under 'Alternative 01:', the line ...
    No error checking for folders is included. Such is an exercise for the student.
    ... should have been ...
    --No error checking for folders is included. Such is an exercise for the student.
    02. The error message ...
    "System Events got an Error: NSCannotCreateScriptCommandError".
    Hmmm, those replying are using MacOS X 10.4.x, and you are using MacOS X 10.2.x. Others, with Macs running MacOS X 10.2.x and using AppleScript code from MacOS X 10.3.x and later, do at times experience 'NSCannotCreateScriptCommandError' error messages.
    In the code below, 'System Events' was replaced with 'Finder'. Some additional editing was performed, where required.
    Alternative 01:
    property tAddition : "x" -- The charcter or string to append to the files' name.
    tell application "Finder"
    set tSelection to selection
    --No error checking for folders is included. Such is an exercise for the student.
    repeat with i in tSelection -- Cycle through the provided files.
    set {displayed_name, name_Extension} to {displayed name of (i as alias), name extension of (i as alias)}
    if ((displayed_name ends with name_Extension) and ((count name_Extension) > 0)) then
    -- Handle file names which include a name extension.
    set (name of i) to ((get (characters 1 through ((count displayed_name) - (count name_Extension) - 1) of displayed_name) as string) & tAddition & "." & name_Extension)
    else
    set (name of i) to (displayed_name & tAddition) -- Handle file names without a name extension.
    end if
    end repeat
    end tell
    Save the AppleScript code as a script.
    Move file (or a copy or alias of the file) to the '~/Library/Scripts/' folder.
    Select files to be processed, in 'Finder'.
    Select the script, via the 'Script menu'.
    Alternative 02:
    property tAddition : "x" -- The charcter or string to append to the files' name.
    on run {} -- User double-click on the applet.
    display dialog "Drag file(s) onto applet for processing."
    end run
    on open selected_Items -- User dragged items onto applet.
    my handleitems(selectedItems) -- Processed items dragged onto applet.
    end open
    on handleitems(localItems)
    -- No error checking for folders is included. Such is an exercise for the student.
    tell application "Finder"
    repeat with i in local_Items -- Cycle through the provided files.
    set {displayed_name, name_Extension} to {displayed name of i, name extension of i}
    if ((displayed_name ends with name_Extension) and ((count name_Extension) > 0)) then
    -- Handle file names which include a name extension.
    set (name of i) to ((get (characters 1 through ((count displayed_name) - (count name_Extension) - 1) of displayed_name) as string) & tAddition & "." & name_Extension)
    else
    set (name of i) to (displayed_name & tAddition) -- Handle file names without a name extension.
    end if
    end repeat
    end tell
    end handle_items
    Save the AppleScript code as an applet (application).
    Drag files to be processed, onto the applet, in 'Finder'.

  • How do i sort by (file) name

    How do i sort by file name for an album?  I organize the photos from all different sources.. by filename.. and when i import them i just want them in the right order.  This has to be one of the most basic functions and why was it eliminated from iPhoto?
    Now all i get is "keep sorted by date" check box... (which does not work, some are still not in order)
    Apple:  this minimalist crap is getting old.. THIS IS A desktop PC..not an ipad or iphone.  Put some meat in the menus and stop worrying so much about everything being pretty and streamlined. 
    C'mon!!!.. wasted time

    Now all i get is "keep sorted by date" check box... (which does not work, some are still not in order)
    "Keep sorted by date" can only be toggled on and off for regular albums, not for smart albums.

  • When I save a PDF report the file name is xdo instead of "report name.pdf"

    Hi,
    I started a new project with BI Publisher integrated with OBIEE, I builded a set of reports that are working properly (these are the first reports on this OBIEE/BIP server)
    Accessing Oracle BI Cataloge I can run the reports and change the output format to pdf.
    when I press the right mouse button and select "save as" a dialog box appears.
    On the "File name" field, the default name that BIP writes is "xdo" I would like it to be the "name of the report.pdf".
    It seems that if I create a new report the file name is correct but if I change the name of the report then BIP always selects XDO as the default file name.
    Is there any place where I can configure the default name.

    Thanks for the quick reply.  I figured out how to get the desired results by using tagging.  For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option.  Hit ok, tag is added to the toolbar.  Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet.  Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.

  • How to put // infront of file name in SAP SFTP receiver adapater

    Hello,
    How can we put double forward slashes(//) in front of the file name in receiver SAP SFTP adapter? The receiving SFTP server is based on mainframe with VMS  and for some reason the receiver system wants to have // in front of the file name.
    I tried with all options of put // in the directory or part of the file name parameters in the channel,but I get following error.
    Transmitting the message to endpoint <local> using connection SFTP_http://sap.com/xi/XI/SFTP failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: 4: Putting ./'//TESTFILENAME' failed.
    please let me know,if there is a work around for this requirement.
    thank you,
    Sri

    Usually filename schema will not allow you to put special characters. Please refer this link for restricts. Filename - Wikipedia, the free encyclopedia
    You may also try Run Operating System Command option to execute Unix script to add '//'
    Could you please let me know the file type ?

Maybe you are looking for

  • HELP! Started as freezing and now won't start!

    Just to start, I have a Satellite P500 (P500-ST6822 to be specific). Specs:  System Manufacturer/Model Number: TOSHIBA/Satellite P500-ST6822 OS: Windows 7 Professional 64-bit  CPU: Intel Core 2 Duo CPU P8700 2.53GHz  Memory: 6144MB RAM  Graphics Card

  • Load cube 0COOM_C02

    Hi experts, I'm using cube 0COOM_C02, and I'm trying to define the mechanism to load it. I'm not using any DSO, and the IS I want to load are: - 0CO_OM_CCA_1 - 0CO_OM_CCA_9 - 0CO_OM_OPA_1 - 0CO_OM_OPA_2 - 0CO_OM_WBS_1 - 0CO_OM_WBS_2 I wonu2019t be lo

  • Send error messages in DatabaseMail when SQL Job fails/succeeds

    Hi , I have setup a profile and account for sending mail using DatabaseMail. I have a SQL JOB. If the job fails, I receive an Email. Till this point, everything works fine. This is what the email looks like : JOB RUN: 'GenerateJVForLabourAndOverheads

  • Dyanamic sampling and statistics collection

    HI all, im a newbie and i have a question. please correct me if im wrong too. The documentation I studied specifies that Dyanmic sampling collects the statistics of the objects. im not sure during query execution or while an auto job. i also read tha

  • How to replace LOV popup with a search screen that opens within same window

    Hi, We have a requirement to get rid of LOV popups from our custom OA pages. They need to be replaced by search pages that open within the same window. For example, we are creating an employee assignment to a department. We first find the employee (c