Preserving File Name

Is there any way to force Contribute to overwrite files?
We update our site daily and as a result, each time new
images are loaded contribute adds a number to the end of the file,
there are hundreds of "old files" example 'image_134.jpg.
Is it not possible to rename the previous version example
'image_old.jpg, incase we need to roll back.
This makes cleaning the web server a real pain...
Richie

Thanks lmartinez,
Maybe I should try and clarify. On some of our pages there
are several images which are updated each day, the naming
convention for these file is image_name_1.jpg, image_name_2.jpg and
so on. When the pages are being are being updated the new images,
which are saved on the local computer, will have their filenames
changed to image_name_1_000.jpg and image_name_2_000.jpg and so on
and after a few days of this we will have files called
image_name_1_145.jpg and 145 dormant images sitting on the web
server.
Richie

Similar Messages

  • Extract Preserved File Name

    I have gone through about 1000 photos and batch renamed them. During this process I made sure that the "Preserve File Name" check box was turned on. My ultimate goal is to somehow take the preserved file name and put it into a normal metadata field (i.e. Keywords). Right now, it exists under the "Raw Data" tab in the file info panel. There is a script that is floating around that will copy the current file name to the "Keywords" metadata. However, I would like to access the Preserved File Name. Anyone have any thoughts on this or somewhere I can look for a script that will do this? I have a feeling this isn't the first time someone has tried to do this, but I have yet to find any scripts or posts that deal with this specifically.

    This should do the job...
    #target bridge
    addPreserved = {};
    addPreserved.execute = function(){
      var sels = app.document.selections;
      for (var i = 0; i < sels.length; i++){
    var md = sels[i].synchronousMetadata;
        md.namespace = "http://ns.adobe.com/xap/1.0/mm/";
        var preservedFname = md.PreservedFileName;
        md.namespace = "http://ns.adobe.com/photoshop/1.0/";
        md.Keywords = md.Keywords + ";" + preservedFname;
    if (BridgeTalk.appName == "bridge"){
    var menu = MenuElement.create( "command", "Preserved Filename to Keywords", "at the end of Tools");
      menu.onSelect = addPreserved.execute;

  • Xmp preserved file name

    I like to check the 'Preserve current file name in XMP metadata' box when using the Batch Rename in Bridge so I can possibly use the original name after running the batch renaming. But I cannot seem to locate where the "current file name" is stored in the metadata and how I can then access it to search or sort the files by their original names after the renaming has been done. I think this should be a relatively simple procedure so maybe this is a dumb question to ask... Can anyone help me? RL

    Look in File Info "Raw Data" tab for
      xmpMM:PreservedFileName="[filename.ext]"
    for camera raw files this metadata term also will be in an xmp sidecar file created by a batch rename operation (assuming you have selected save image settings to sidecar xmp files in your camera raw preferences).

  • Oracle b2b not preserving file name

    Hi all,
    I have a requirement that my trading partner will send files over AS2 which I have to deliver to other application. In my case file name is important and I have to preserve the file name whatever my TP is sending.
    I have created all the things like remote TP , AS2 channel,agreement etc and I can receive the file over AS2. in b2b console it's showing the file is received successfully.Even I can see the file name in the wire message
    Message-ID=<GOANYWHERE-AS2-20120516-121623738-1337116991845@GoAnyTest_KGSOADEVCERT> EDIINT-Features=multiple-attachments Disposition-Notification-To=GoAnyTest AS2-To=KGSOADEVCERT MSG_RECEIVED_TIME=Wed May 16 12:16:22 EDT 2012 Mime-Version=1.0 Host=10.96.4.34:8001 User-Agent=GoAnywhere Director/4.0.0 Content-Length=150 Date=Wed, 16 May 2012 12:16:23 -0400 AS2-Version=1.2 AS2-From=GoAnyTest Content-Disposition=attachment; filename="EDI.FCSMFCSMSAPT_RTN1205010000.txt" Content-Type=text/plain; name=EDI.FCSMFCSMSAPT_RTN1205010000.txt Connection=close
    Probem scenrio 1:
    I have created a file channel in my host trading partner and I have incorporated that file channel in the in the agreement but b2b is generating file with it's own naming convension(e.g. if TP sending the file name as abc.txt but b2b is generating as MCKESSON_MC_FixedLengthDocs_MC_CustomDocVer1.0_1_0A6004221375839D239000005EC36F4B-1.dat)
    Probem scenrio 2:
    I have not mentioned any delivery channel for my host TP in the agreement and the message is coming in B2B_IN_QUEUE jms queue and I can see the file name in a JMS property(key/value pair).
    ACTION_NAME contentType:text/plain; name=EDI.FCSMFCSMSAPT_RTN1205010000.txt;filename:EDI.FCSMFCSMSAPT_RTN1205010000.txt
    But when I have created a JMS channel (with my custom JMS queue) in my host trading partner and have incorporated that JMS channel in the in the agreement I can't see the above propery though the message is getting enqueued in the queue. I can see a bunch of jms properties except the ACTION_NAME.
    I can't use B2B_IN_QUEUE as it is being used by other applcations.
    Please urgently help.
    Regards,
    Anindya

    Seems like you are hitting a known bug. Please log a SR with support.
    Regards,
    Anuj

  • Original file name preserved in metadata but not being found in searches (Mac)

    I have a large collection of images (a mix of raw, tif, and jpg files) that I would like to rename. Because some are referred to in other documents by their original names, and because I can't track down every single version that might exist in other folders, I would like to preserve their original (current) filenames in their metadata so that searching for these old names will locate the renamed files.
    I experimented by renaming a few JPGs with the "Preserve current filename in XMP Metadata" option checked. While the original filename does appear in the metadata under "Camera Raw," it does not turn up in searches performed using command-f (in Finder), Spotlight, or even Bridge. I have not yet tried this on TIFs or raw files, but:
    What am I doing wrong?
    Technical details:
    Bridge CS6
    Mac OS 10.6.8
    MacBook Pro
    Final note: Bridge does not seem to generate a sidecar xmp file. Would it do this for a jpg?
    Thank you for the help!

    I tried it and it works for me.  It inserts the preserved filename under the filename line.  You probably need this field checked in metadata preferences.
    It looks like the preserved file name is stored in the XMP sidecar data.  I tried a test Find but the preserved filename does not show up.
    If one slips up on the batch rename, or go back to original, one can revert to original by going back to batch rename and selecting "preserved filename" in new filenames box.

  • B2B 11g: Getting File Name in inbound integration and passing it to SOA

    Hi,
    I am Reading a EDI x12 file in inbound B2B .I am checking the 'preserve File Name' check Box at Listening channel properties.....Then Integrating B2B to soa using AQ Adapter.But I couldn't find any property where I can pass the file name which I read through B2b to Composite. I need the file name because I am inserting all the records in Database and client wants to see which record in DB has been inserted from which file.
    Any pointers would be helpful.

    Hello,
    Try to use the b2b.fileName property. Although it probably is not shown on the list you should be able to access it.
    Also, please check the patch 18021286 which has many improvements and allows for two cases that can be useful for you:
    - Get information on back-end about which channel and agreement was used to deliver
    - Using callout Ret values which allow for specific properties to be set on callouts and passed all the way until the back-end application.
    Hope this helps.
    Best Regards
    Tiago Teixeira

  • How to retain input file name in b2b

    Hi,
    I have requirement in the project where I need to flollow below steps
    1) pick up file -> transform into binary format -> push into JMS queue
    2) b2b channel listen to JMS queue -> transforms into text format -> creates .text file format.
    Every thing is working as expected however the issue is b2b is able to generate the file name is didn't match with the input file name though I have mentioned preserve file name option in b2b target channel.
    How can b2b generate/retain the file name which is same as picked up input file name by FTP adapter.
    Regards,
    Anjana

    Hi,
    Thanks. this issue has been resolved. If we set below proprties in bpel, b2b can retain same input file name.
    <copy>
    <from>concat("contentType:application/octet-stream;filename:",$varFileName )</from>
    <to>$varActionName</to>
    </copy>
    <bpelx:toProperty name="jca.jms.JMSProperty.ACTION_NAME"
    variable="varActionName"/>
    Regards,
    Anjana

  • Original File Name

    "The Bridge Metadata browser will also display the preserved name"
    Does anyone know how to actually do that?
    More specifically, when batch renaming, there is an option to preserve the current file name in the XMP metadata.  But how does one later view that original file name?  Better yet, how does one sort all the renamed clips according to their original names, thus making it easy to find the one being looked for?

    I tried it and it works for me.  It inserts the preserved filename under the filename line.  You probably need this field checked in metadata preferences.
    It looks like the preserved file name is stored in the XMP sidecar data.  I tried a test Find but the preserved filename does not show up.
    If one slips up on the batch rename, or go back to original, one can revert to original by going back to batch rename and selecting "preserved filename" in new filenames box.

  • How do I create an Lightroom HTML Gallery and preserve the - in the file name?

    How do I create an Lightroom HTML Gallery and preserve the - in the file name?
    The hyphen (-) is more search engine friendly, so I label all my photos using hyphens (-) to separate the keywords in the file name
    Here's a sample file name - it's for the "Guess Where Berkeley" flickr site
    guess-where-berkeley-serkes-xx-s-curve.jpg
    I created a Lightroom HTML Gallery and posted it to the following link.
    http://www.berkeleyhomes.com/tests/lightroom/lightroom-test-1/
    Though it looksl like the HML gallery shows the original file name in the web page, it looks like Adobe Lightroom modified each photo's file name by changing the - (hyphen) to an underscore (_)
    Originally
    guess-where-berkeley-serkes-xx-s-curve.jpg
    After Adobe created the HTML photo gallery the name became
    guess_where_berkeley_serkes_xx_s_curve.jpg
    Is there any way to preserve the – rather than the _ character
    Thank you!
    Ira Serkes

    InDesign's interactive PDF support is a small subset of what you can do in Acrobat Profesional.
    I think you probably want to create a button (or change an existing button) in Acrobat Pro that causes Acrobat to close the document -- that should be analagous to "exitting the CD." I assume your autorun file is opening the PDF in Adobe Reader? You have not included it and are not specific, so it is tough to say.
    I believe in Acrobat Javascript you can close the document with this.closeDoc(). You'll probaly need to ask on the Acrobat forums (possiby Acrobat Scripting) for more detail.

  • Batch rename files preserving the original file name in metadata

    How can I batch rename files while preserving the original file name in metadata? (Don't want the old file name as part of the new file name)
    (Adobe CS Bridge can do this with some success, but I don't want to be dependant on this software. Results are inconsistent.)

    With a simple terminal script. More details needed, though.

  • Preserve the file name when sending a file thru AS2

    Hi Ramesh,
    i encounter this requirement that my Customer want us to send a custom document to them with a specific filename thru AS2.
    for example:-ORG1234DES20070423.xml where the 1234 and 20070423 is dynamic value and i get it from the content of the document.
    they are using Cyclone
    can this be done and how ?
    thanks
    Kin Wah

    Hello,
    Right now we do not have a feature as part of AS2 Plugin where in we can preserve the file name. Please raise an SR, depending on the justification we can give this as a feature.
    Rgds,Ramesh

  • Rman backup - how to preserve the file names exactly when backing up?

    Hi,
    I have been using RMAN for backup and I want to change things so that it is
    easier to go back to the old tried-and-true method of recovery by recreating
    a control file manually via the trace file, which lists the files out individually.
    The first change - to change from compression to copy.. is fine.
    But even then, rman names the files some weird name.
    I am not trying this- using the disk format command is supposed to work..
    rman nocatalog << EOF
    connect target;
    allocate channel for maintenance type disk parallelism 1 \
    format '/agile/ora_flash_recovery_area/PECHA/backupset/backup/%U';
    backup as copy database;
    release channel;
    but it still is using wierd (auto-generated) names for the data files as it backs up.
    Has anyone else got this working? Thanks Marvin.

    Ok here is why I would like exact filenames..
    1) to speed the time of recovery. I am much more familiar with traditional recovery methods than RMAN, and while I myself installed and suggested RMAN for backups, our other (11i) database does not use RMAN and so I am more familiar with traditional recovery. So to be able to recover quickly I want to have these files as close as possible to the original names so that I can use my standard script (from a trace file) to recreate the control fiile. If I can get RMAN to spit out the filies with original names but keep RMAN for making the backup, I may ditch the rman bacjup script in chron and write a traditional hot backup script which copies the files the old fashioned way.
    2) to reduce cloning time. The RMAN duplicate command is not as good as I thought. I was actually easier for me to restore RMAN backups first to a box that has all the same paths, and THEN shutdown (cold) these files and copy them cold to another server, and restore from there. Agaiin if I can get the original file names, I could choose to do recovery either way (RMAN or traditional) in a real emergency instead of being forced to use rman.
    3) to be able to switch to a backup file in the FRA without having to rename it. Seems logical if it is already named correctly.
    thanks ! Marvi

  • Error while reading file name in a directory

    Hi,
    I am trying to read all the file names within a directory, however  I get the below error while running the code.
    Run-time error '5':
    Invalid procedure call or argument
    The actual path is "Q:\Budget\Historical Budgets\FY15\*.xls*"
    and ThisWorkbook.Sheets(1).Range("A1").Value = FY15 in my excel sheet.
    "Below is the code I am using"
    Dim file As Variant
    file = Dir("Q:\Budget\Historical Budgets\" & ThisWorkbook.Sheets(1).Range("A1").Value & "\*.xls*")
    If file = "" Then
            MsgBox "no files"
            Exit Sub
          Else
            ' ... else, count the files
            x = 0
            Do While file <> ""
                x = x + 1
                file = Dir         
    <----  I get the error at this line.
            Loop
    End If
    Could you please help me to solve this problem
    Regards, Hitesh

    Do you want to generate a list of all files in a folder, in your spreadsheet?  If so, please try this sample code?
    Option Explicit
    Private cnt As Long
    Private arfiles
    Private level As Long
    Sub Folders()
    Dim i As Long
    Dim sFolder As String
    Dim iStart As Long
    Dim iEnd As Long
    Dim fOutline As Boolean
    arfiles = Array()
    cnt = -1
    level = 1
    sFolder = "C:\Users\Excel\Desktop\Coding\Microsoft Excel\Work Samples\"
    ReDim arfiles(2, 0)
    If sFolder <> "" Then
    SelectFiles sFolder
    Application.DisplayAlerts = False
    On Error Resume Next
    Worksheets("Files").Delete
    On Error GoTo 0
    Application.DisplayAlerts = True
    Worksheets.Add.Name = "Files"
    With ActiveSheet
    For i = LBound(arfiles, 2) To UBound(arfiles, 2)
    If arfiles(0, i) = "" Then
    If fOutline Then
    Rows(iStart + 1 & ":" & iEnd).Rows.Group
    End If
    With .Cells(i + 1, arfiles(2, i))
    .Value = arfiles(1, i)
    .Font.Bold = True
    End With
    iStart = i + 1
    iEnd = iStart
    fOutline = False
    Else
    .Hyperlinks.Add Anchor:=.Cells(i + 1, arfiles(2, i)), _
    Address:=arfiles(0, i), _
    TextToDisplay:=arfiles(1, i)
    iEnd = iEnd + 1
    fOutline = True
    End If
    Next
    .Columns("A:Z").ColumnWidth = 5
    End With
    End If
    'just in case there is another set to group
    If fOutline Then
    Rows(iStart + 1 & ":" & iEnd).Rows.Group
    End If
    Columns("A:Z").ColumnWidth = 5
    ActiveSheet.Outline.ShowLevels RowLevels:=1
    ActiveWindow.DisplayGridlines = False
    End Sub
    Sub SelectFiles(Optional sPath As String)
    Static FSO As Object
    Dim oSubFolder As Object
    Dim oFolder As Object
    Dim oFile As Object
    Dim oFiles As Object
    Dim arPath
    If FSO Is Nothing Then
    Set FSO = CreateObject("Scripting.FileSystemObject")
    End If
    If sPath = "" Then
    sPath = CurDir
    End If
    arPath = Split(sPath, "\")
    cnt = cnt + 1
    ReDim Preserve arfiles(2, cnt)
    arfiles(0, cnt) = ""
    arfiles(1, cnt) = arPath(level - 1)
    arfiles(2, cnt) = level
    Set oFolder = FSO.GetFolder(sPath)
    Set oFiles = oFolder.Files
    For Each oFile In oFiles
    cnt = cnt + 1
    ReDim Preserve arfiles(2, cnt)
    arfiles(0, cnt) = oFolder.Path & "\" & oFile.Name
    arfiles(1, cnt) = oFile.Name
    arfiles(2, cnt) = level + 1
    Next oFile
    level = level + 1
    For Each oSubFolder In oFolder.Subfolders
    SelectFiles oSubFolder.Path
    Next
    level = level - 1
    End Sub
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Changing file name and directory structure for use outside of iPhoto

    Hi,
    I was wondering if its possible to get iPhoto to name the files from my library to reflect the names that I've given the files in iPhoto. I'm thinking along the lines of iTunes, where its possible to chose in the preferences how the files are named, and there is some logical directory structure, such as "Artist/Album/01 - Track 1.mp3". These file names are updated to reflect any changes made in iTunes.
    I've heard the argument that I shouldn't ever want to do anything with the files themselves because iPhoto can do everything I would ever want to do, but I want to organize the files so that not all of my organizational work is lost if I decide to stop using iPhoto and transition to a different system. Any suggestions would be appreciated.
    Thanks,
    Adrian

    Adrian
    No it's not possible.
    You can rename the files before bringing them into iPhoto, you can rename them with the titles on Export (Use the File -> Export command, it gives you the option to use the title and filename) but when it's inside iPhoto you cannot rename the files.
    However, all is not entirely lost. Using Film Rolls (View -> Film Rolls) you can move pics between rolls, name rolls, create rolls and so on, as long as you do this in the iPhoto Window, and these changes will be reflected in the iPhoto Library Folder.
    If at some point you decide to chuck iPhoto then (if the new app won't read iPhoto database files) you can simply export each album you've created to a Folder (using the File -> Export command as I suggest above), this, along with exporting slideshows will preserve your organisational efforts.
    The iTunes database has a rather simple job to do: track a file and it's assorted metadata. iPhoto, on the other hand, tracks a file and it's assorted metadata, plus a Modified version, plus a thumbnail. If you consider what happens when you edit a pic, for instance - Copy Original, perform edit, save modified version, remove Original Thumbnail and then create new one - you can see it's a rather more complex job.
    Finally, the standard warning: It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss. Any changes you make must be made in the iPhoto Window.
    Need more info? by all means post again.
    Regards
    TD

  • In bridge am I able to return my images to their original file name?

    In bridge am I able to return my images to their original file name?

    yes/no.  Depends on whether you have checked "preserve original file name in XMP" in batch rename.

Maybe you are looking for