The name of the file as IPTC, but without the extension. (Currently using script of dam)

Hello

My apologies if this isn't the right forum to ask this question:

I am currently using the name of the script file of title with CS4 Bridge - DAM http://www.damuseful.com/pages/PimpMyBridge.html - to get the name of the file in the IPTC title script. This however in the extension in the title field also puts. A JPG file named 2000 ends with 2000.JPG upward in the title field. I would like to not have the extension appear in the title field.

Is it possible by modifying the script DAM / using any other script available for free.

In case it helps, that's what the dam script currently looks:

#target bridge

If (BridgeTalk.appName = 'bridge')

//-----------------------------------------------------------------------

This script copies the file names of the thumbnails selected in the title field

Also shows how to add menu items

AdobeLibrary scripts should be loaded

This script was created by John Beardsworth www.beardsworth.co.uk/ and modified by Peter Krogh www.DAMuseful.com

This script can be freely distributed and modified

//--------------------------------------------------------------------

We will create our menu

var menu = MenuElement.create ("command", "write to IPTC title field Filename', 'at the end of the tools');

menu.onSelect = function (m)

{

var getFolderChildren = true;

var filesOnly = true;

var inches = getBridgeThumbnails (TYPES. PHOTOSHOP_OPENABLE, getFolderChildren, filesOnly);

for (var i = 0; i < thumbs.length; i ++)

{inch = inches [i];}

MD = thumb.synchronousMetadata;

' md.namespace = ' http://ns.Adobe.com/Photoshop/1.0/ ";

MD. title = thumb.name;

}

Window.Alert ("Done" + i + "records");

};

There are also 3 other Adobe library scripts that come with the download.

I don't know anything about scripting, baby-steps would be appreciated.

Thank you very much.

Change:

md.Title = thumb.name;

TO:

md.Title = decodeURI(thumb.name).replace(/\.[^\.]+$/, '');

Tags: Bridge

Similar Questions

  • Collect the Thread Dump using Script and live in the separate log file

    Legends of dear,

    I ask you to provide me with a few lines of useful guide to collect the Thread Dump using script on linux and redirect the output to a separate log file, but not the STDOUT file. If it is redirect to STDOUT then how to extract only the thread stack to a separate log file.

    I used
    ps - ef | grep java
    kill - 3 < pid > > > ss1_td.log

    but it does not provide the thread stack to the log file.

    Any aid operation would be appreciated a lot.

    Kind regards
    Knockaert

    Karthik,

    Please see this link below

    http://www.industryvertical.co.in/2013/01/script-thread-dump-of-multiple-servers.html

    site of my friend where we placed a hands-on experience.

    Mark this if useful for you

    Kind regards

    Bouchra Arun.

  • How to open a file with the extension .odg using Vista?

    How to open a file with the extension .odg using Vista?

    Hi Defiant503,

    Thank you for visiting the forums of answers.microsoft.com.

    I did some research and a file ending with .odg is an OpenDocument Document OpenOffice/StarOffice (Ver 2) of graphics by Sun Microsystems, Inc.    This means that in order to open this file, you will need this program to open it.  You will not be able to open this file with Vista.

    I hope this information helps.

    Kavita M
    Microsoft Answers Support Engineer
    Visit the Microsoft Answers Feedback Forum site
    and let us know what you think.

  • Photoshop Script add name of Image file as text, but remove '-' character

    I found a script that will take the name of my image file and place it on the image, less file extension. I added this to an action, which works exactly how I want, but my filenames have '-' characters in them.

    Is it possible to remove the '-' characters of the script? I was not able to get the function replace to work. (that I need).

    This is the code that works right now:

    // Now create a text layer at the front
      
    var myLayerRef = docRef.artLayers.add();
      myLayerRef
    .kind = LayerKind.TEXT;
      myLayerRef
    .name = "Filename";

      
    var myTextRef = myLayerRef.textItem;

      
    // strip the extension off
      
    var fileNameNoExtension = docRef.name;
      fileNameNoExtension
    = fileNameNoExtension.split( "." );
      
    if ( fileNameNoExtension.length > 1 ) {
      fileNameNoExtension
    .length--;
      
    }
      fileNameNoExtension
    = fileNameNoExtension.join(".");  
      myTextRef
    .contents = fileNameNoExtension.substring(2);


      
    // myTextRef.contents = fileNameNoExtension.replace(/^-/i, '');


      
    // off set the text to be in the middle
      myTextRef
    .position = new Array( docRef.width / 2, docRef.height / 2 );
      myTextRef
    .size = 28;
    }

    myTextRef.contents = fileNameNoExtension.replace (/-/ g, ");

  • How to get some of the styles applied using script?

    Hi all

    I need to know how to get some styles applied using scripts ID. I don't have a lot of experience in InDesign so need help.

    Here is a screenshot with sample text with styles of such applied and highlighted.

    screenshot.png

    I need to know what the texts in my document have these styles applied as all caps, Baker pointed out, Subscript and Superscript, etc..

    Help, please.

    Thank you!

    Get in shape and make the selection, then run the script

    Examine the file for the properties you want.

    Pretty easy

  • Placement of control on the subform by using scripts

    I have a form where I would have a subform that is hidden while the user enters data and then reveal during printing.  What can I do (just toggle the presence during the pre/post print script areas).

    When the document is printed, I would also like to control paging of the subform to force it to the top of the next page - but only when printing.  If I do this by using the object palette... Paging... Place (top of page), it works, but it creates a gap when the user fills out the form on-screen.  I want to control this property with the scripts for "prePrint" of the form processing stage (and then he return "postPrint" toggle).

    I can't find the correct code to do - does anyone know the correct code?

    Thank you!

    If you do the presence of th esubform hidden instead of the invisible, that appear in the layout where it take place.

    Paul

  • Add the occurrence to a structure of the event by using scripts

    Hello

    IAM trying to (using scripts) updating a structure of the event (the case of the event add) on a vi is not on memory.

    I get error 1054 the specified object was not found.

    Here's a picture of him.

    any help in this will greatly be apreaciated.

    The error comes from the open air, because looking for structure in the wrong place. While it is perfectly logical that the owner would be the loop in practice yet script is not that friendly - you need to get the reference of the schema of the loop and use it as an owner.

  • The system creates thousands of useless with names like temporary files ~ WRL2755.tmp, but they never disappear. How can I remove all at the same time?

    I am running XP Professional 2002 SP3. It all started about six months ago I suspect with one of these updates. These files are located in the files with the associated files. There are actually hundreds of thousands of them. They have tripled the number of files on my computer. I want to know how to get rid of them and stop the system from their creation.

    Hello Redoced,

    I found an article from knowledge explaining that ~ WRL .tmp files are created by Word, further than the WRL type .tmp files are created by Clipboard actions.

    Description of how Word creates temporary files

    Because the problem you posted is related to the word and it would be better suited to the community of Office Discussion groups. Please visit the link below to find a community that will provide the support you want.

    Office Word newsgroup

    Steven
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Text of the tag selected using script

    Hello

    I want the perticular the text selected in the InDesign document tag, I get an option to tag manually by right-clicking on the selected text, but how can we do this using Java script.

    Please help me.

    TextSelect.jpg

    Try this,

    App.Selection [0] .associatedXMLElements [0].xmlElements.Add ("Para", app.selection [0])

  • Select all the anchor points using script

    5hglfe

    Hello all. I have some trouble fifth selection path. After I drew the shape with the blob Brush tool I need to copy a inner path I do this action several times so help me guys.

    OK, what the use of the form builder (SHIFT + M) to get your interior shape real quick?

  • I downloaded a file of visualization for Windows Media Player from Microsoft. The downloaded file is there, but I can't seem to read in the media player. How to play?

    the file is: next-generation visualizations. The Publisher is Microsoft. Advanced 3D Hardware. Version 1.0.0 of download:PsychedeliaVizPak.msi product name

    Type: Windows Installer 5.53 MB Package of: download.microsoft.com

    I have Service Pack 2 32-bit

    When I go to the media player and use the bars drop to visualizations names of downloaded files are there, but when I click on it the screen remains empty. I downloaded other visualizations and they work fine.

    Hello

    .msi is simply microsoft program so if you have windows, means that you can run it... ;) I had the same problem too, but it turns out that it was caused by my graphics driver... I have nvidia and its recent update supported not only such things... I had to reinstall the whole system and now it works again (that I na not reinstall just cos of visualizations) but try to reinstall your graphics card driver... hope that helps... :-) or you can even try the opposite... uninstall the current driver and run the older again, might help, but will prevent probably other programs functions...:-/ then make the choice... :) but I can confirm that psychedelia skins are pretty cool... ;)

  • Cannot add files to Clip + but no error message and Clip Sport works fine on the same machine

    I used successfully the Clip + 4 GB for years without any problem, currently using Windows 7 Prem 64 bit.  Now when I try to add files using MS Explorer it shows the added file (in the Green window scroll bar) but never ends adding the file!  I waited 15 minutes for a short file without success.  Also, I started to use a Sport Clip 8 GB and it works fine, just can't get the Clip + to add more files.  I can delete files and can also use files that remain on the Clip + but can not add new ones.  Any help would be greatly appreciated!  Thanks in advance.

    I tried to reload the firmware and this time it worked well and is not only all my old stuff still on the Clip + but I was able to add a small file without problems and properly access all folders of files, so THANKS for the suggestion and the problem solved!  BTW, I had 318MB of space on the Clip +, not KB... Sorry about that

  • The extensions Manager installs extension Flash

    Help please, I try to install Toolkit_for_CreateJS_v1_1.zxp but the extension won't install due to an invalid token manager. I use adobe cs6. Any suggestions on how can I fix?

    aem.png

    Is the name of your drive hard '$tratos '? Given that the extension manager uses ' $' as the beginning character of all chips from path and all chips of path must be analyzed in real paths during the installation of the extension, Extension Manger deals by error '$tratos' as a path. You must rename your drive.

  • Duplicate the layer just above the layer source by script

    Hello

    I'm trying to duplicate the layer by using script. Layer duplicated only taking place at the beginning of the order of the layers. I want the duplicate layer just above the layer.

    I got this forum.

    var docRef = app.activeDocument;  
    with(docRef) {  
             var ll = docRef.activeLayer ; 
             var ln=ll.name;
             var ol = layers.getByName(ln);  
                   ll.visible = false;  
            var nl = layers.add();  
             nl.name = 'Duplicated Layer';  
             for (var a = ol.pageItems.length-1; a >= 0; a--) {  
                  ol.pageItems[a].duplicate(nl, ElementPlacement.PLACEBEFORE);  
                  nl.visible = true;
             }  
        }  
    
    //~ ElementPlacement.PLACEBEFORE); // moves it above a group named 'my group' in the stacking order  
    //~ ElementPlacement.PLACEAFTER); // moves it below a group named 'my group' in the stacking order  
    //~ ElementPlacement.INSIDE); // moves it inside a group named 'my group', at the top of the stacking order  
    //~ ElementPlacement.PLACEATBEGINNING); // moves it inside a group named 'my group', at the top of the stacking order just like ElementPlacement.INSIDE  
    //~ ElementPlacement.PLACEATEND);
    

    Screen Shot 2016-06-28 at 11.20.59 AM.png

    I duplicated the layer 2 and place it at the top. Strange.

    Help, please

    Kind regards

    Kitty

    Try this code...

    var docRef = app.activeDocument;
    with(docRef) {
        var ll = docRef.activeLayer ;
        var n=docRef.layers.length;
        x=ll.zOrderPosition;
        var ln=ll.name;
        var ol = layers.getByName(ln);
        ll.visible = false;
        var nl = layers.add();
        nl.name = 'Duplicated Layer';
        for (var a = ol.pageItems.length-1; a >= 0; a--) {
            ol.pageItems[a].duplicate(nl, ElementPlacement.PLACEATBEGINNING);
            nl.visible = true;
        }
        docRef.layers.getByName("Duplicated Layer").move(docRef.layers[n-x], ElementPlacement.PLACEAFTER);
    }
    

    -yajiv

  • I'm trying to open Media Encoder - but without success

    I'm trying to open Media Encoder - but without success. He use to work perfect

    When I start it up, he tells me he's going clouse downwards. What can I do to restore the program?

    Media Encoder is CS6

    Windows 7

    Can you try to keep Alt + Ctrl (Win) cmd (Mac) + SHIFT while launching the SOUL?  This clears the application preferences and can help.

Maybe you are looking for