Renaming and renumbering files in order of selection

Lets say I have 99 frames I want to rename in a project (which may have more pictures). I want to rename them in order they were shot and that's how they're displayed. I'm using Batch Change and using a Version Name Format which I created <Custom Name><Counter>. The counter is reset to 01 and is using a two digits. The result should be 99 frames renamed (including originals) to ABC01 through to ABC99.
I select the first frame in the sequence, hold shift and click on the last. I now have 99 frames selected and use the Batch Change.
The result is the sequence ABC01, ABC03, ABC04 ... ABC98, ABC99, ABC02
Which is clearly wrong and another reason I tend not to trust Aperture and usually use Photo Mechanic for metadata input.
So I have to clear the numbers by changing then to some other sequence and try again. And then usually it works as expected. Sometimes.
Is there something wrong with the way I'm expecting Aperture to select files in order?
DG

Thanks Frank and Kirby.
Of course, I've just renamed a couple more batches and they worked fine... But it is something I've had happen more than once before.
No stacks or anything I can see that might cause this.
I had thought it was something to do with the "most selected" frame.
But here's somethng, I just selected a nunber of frames starting from the last then shift-clicked on the first. And they were re-numbered in reverse order. So Aperture is never/not always going to rename files in the order you see them in the Browser. So somewhere I'm getting a frame 'out of order' by reselecting it or making it the most selected or something...?
Would you expect a set of frames to be renamed in reverse order as just happened to me?
DG

Similar Messages

  • Using foreach loop container with file system task to rename and move files

    the foreach loop container will not rename and move files for me
    sukai

    duplicate of
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/8f2899f1-43b0-47e0-8bd0-e082989cdcb8/file-system-task-and-foreach-loop-container?forum=sqlintegrationservices
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Rename and Delete Files

    Hi everyones, i'm new to this forum and to applescript
    i need help to make a little script. i got a folder that look like this :
    FOLDER_TOP
    --FOLDER_1111a
    -----AAAAA_1.jpg
    -----BBBBB_2.jpg
    -----PHOTO_3.jpg
    --FOLDER_2222b
    -----ABCDE_111.jpg
    -----BBBB_233.jpg
    -----PHOTO_456.jpg
    The folder FOLDER_TOP can contain hundred of subfolder like FOLDER_1111a and FOLDER_2222b and each subfolder contain a lot of photos like AAAAA_1.jpg, BBBBB_2.jpg and PHOTO_3.jpg
    I need to be able to rename the first photo of each subfolder by the name of the subfolder and delete the remaining ones (AAAAA_1.jpg must became FOLDER_1111a.jpg. BBBBB_2.jpg and PHOTO_3.jpg must be deleted)
    Many thanks for yours help
    Message was edited by: BOBaGINETTE

    Hello
    You're quite welcome. Glad to hear it works well so far.
    As for variable extension, are you trying to do this? -
    Provided a subfolder is named 'ddd' and its 1st file in lexical order is named 'mmm.eee' (mmm is a name stem and eee is a name extension), you are to rename the 1st file as 'ddd.eee' regardless of what the 'eee' is.
    If so, try the following script.
    I also revised the code a bit so that it can now properly handle the cases where less than 2 files is in a subfolder.
    Hope this may help,
    H
    --SCRIPT b
    main()
    on main()
    script o
    property dd : {}
    property ff : {}
    property mss0 : "Choose top folder."
    property mss1 : "You're processing items in tree rooted at:" & return & return
    property mss2 : "Done."
    set d0 to choose folder with prompt mss0
    display dialog mss1 & d0 with icon 1
    tell application "Finder"
    try
    set dd to d0's folders as alias list
    on error from erob -- optional (not required) under OSX 10.5 or later
    set dd to erob as alias as list
    end try
    end tell
    repeat with d in my dd
    set d to d's contents
    tell application "Finder"
    set ff to (d's files) as list
    if ff is not {} then
    set ff to (sort ff by name) as list -- optional if Finder always gets items in lexical order
    set f1 to my ff's item 1
    set e1 to f1's name extension
    if e1 is not "" then set e1 to "." & e1
    set f1's name to d's name & e1
    set ff to my ff's rest
    if ff is not {} then delete ff
    end if
    end tell
    end repeat
    display dialog mss2 with icon 1 giving up after 2
    end script
    tell o to run
    end main
    --END OF SCRIPT b

  • I need to batch rename and relink files in indesign

    I have a whole bunch of files that I need to rename ( I need to add a prefix on to the front eg. a whole group of files called "plan.jpg" 01.jpg, 02.jpg, etc... need to now read ORD_plan.jpg, ORD_01.jpg, etc...) I can batch rename the files in adobe bridge, but I have to go in one by one and re-connect the links. Is there a script which can batch rename and relink all the files? 
    Thanks!

    This biterscripting script may possibly help. It takes two input arguments.
    directory - directory under which the .jpg files are located
    prefix - prefix which will be added to each file's name
    # Script RenameJpg.txt
    var str directory, prefix, list, filepath, name
    cd $directory
    find -n "*.jpg" > $list
    while ($list <> "")
    do
        lex "1" $list > $filepath ; stex -p "^/^l[" $filepath > $name
        set $name = $prefix+$name
        system copy ("\""+$filepath+"\"") ("\""+$name+"\"")
    done
    This is the way you would use it - copy and paste the script code into file C:/Scripts/RenameJpg.txt, then enter this command into biterscripting.
    script "C:/Scripts/RenameJpg.txt" directory("C:/test") prefix("ORD_")
    It will rename C:/test/plan.jpg to C:/test/ORD_plan.jpg, C:/test/01.jpg to C:/test/ORD_01.jpg, etc.
    Important: I am using the 'system copy' command so that files are copied instead of renamed. Once you are happy with the test, you can change that command to 'system rename'.
    Also, if the .jpg files are within subfolders of C:/test, change the 'find -n' to 'find -r -n'. -r means recursive = search in subfolders. Syntax for the find command at http://www.biterscripting.com/helppages/lf.html
    Message was edited by: Peter Spier to change 'path' to 'filepath' per post below
    Message was edited by: Peter Spier to change "perfix to "prefix"

  • Rename and move files on remote FTP server

    Hello,
    We have a scenario where XI transfers a file to a remote FTP server at partner end using File Receiver Communication channel.
    These files are huge,so there is a risk of picking up incomplete files at their end when XI is still writing the file on their server.
    Hence,we have decided to follow the approach which is already mentioned a number of times on SDN that XI would place a file with different name and in a different folder on partner's FTP server.
    This would then be renamed and moved to the required folder on the same server.
    This could easily be managed using a script at partner end but there are some problems when they are not able to do this.
    Is there a possibility to achieve this using 'Run OS command after Message Processing' in XI when Source and target folders both are on partner's FTP server?
    If yes,can anybody please provide code for such a script and corresponding setting for this parameter in XI Communication channel?
    Thanks a lot in advance.
    Best Regards,
    Shweta

    Hello,
    Thanks for the reply.
    But this has to be done in FTP session because the source and target directory both are on remote FTP server.
    Instead,in SAP documentation,I found a parameter :
    ftp.putSafe=YES|NO
    Use this specification to define whether a transferred file is first created with a temporary name and only renamed once the transfer is complete (YES), or whether it is created with its final name at the start of the transfer (NO). The latter case can lead to problems if an application on the FTP server accesses the file before the transfer is complete. If you specify YES, this problem is avoided because the file only becomes visible with the search name when the transfer is complete.
    The default value is NO.
    Doesn't it serve the same purpose?Do we still need to write scripts?
    I have tried to include this in Additional Parameters in Advanced Mode as:
    ftp.putSafe  YES
    but I can't check in test system whether it is really working or not.I would like to confirm if it helps.
    First of all,I would like to know if this setting works for XI3.0 SP17.
    Can anyone please help.
    Thanks.
    Regards,
    Shweta

  • Batch Rename and now files will not open

    i hope someone can help me. i moved some .dng files from an external drive to my mapbook pro using batch rename in bridge CS5. The files moved to my desktop ine, but now they will not open. When I try to open them  the digital convertor opens up. When I try to open them in photoshop it says it is a unrecognized format. They were fine ten minutes ago in bridge. does anyone have anything they can have me try? I am depserate to get these images printed up tonight and I don't have time to edit them again.

    You probably forgot to include the extension .dng or renamed with an extra dot (.) in the filename. Be surr to have only 1 dot with the three letter extension dng at the end (. dng)
    You can use Bridge for that again to rename and use the dng extension

  • Automatically Renaming and Sorting Files

    When I first installed iTunes, I remember it asking me something about automatically sorting and finding file information for the existing music on my computer (Windows Based). I didn't want to do that at the time, but I would like to if that is indeed what it does. Do you know what I'm talking about? Help please!
    Thanks,
    Chris

    The feature won't find info about the files, but it will reorganize them on the hard drive.
    It's an irreversible procedure, and can be found in edit\prefs\advanced\keep iTunes music folder organized.

  • Rename and save files where you want them?

    I use Yahoo e-mail. When I use Explorer as the browser and I want to save an attachment, a dialogue box opens that allows me to rename the attachment and choose where to save it. When I use Safari as a browser, the attachment simply saves to the folder specified in Safari preferences. This is inconvenient as most often I need to rename attachments and save them to different places-- I don't want all of them in the same place, and I don't want to have to change my preferences for each e-mail. Does anyone know how to work around this?
    By the way, I am currently using the public beta version of Safari-- this problem happened with previous versions as well. Also, I can control+click on attachment links and I get the dialogue box that would allow to rename and save to a different location BUT it only allows attachments to be saved as html-- this doesn't really help me as most attachments are doc or pdf.
    Thanks.

    Hi
    Welcome to Apple Discussions
    The Yahoo attachment names are not editable - this is true for Safari and Firefox.
    Right clicking does not let you save the attachment to another location. What you are seeing is a Save Panel for the web page itself.

  • Renaming and copying files (Bridge CS3)

    Hi -- Scripting bridge, I am able to copy files using the copyTo(target) function.
    I also can rename files using the Javascript file.rename() function.
    But I am having trouble doing both in concert.
    If I rename before I copy, I lose the reference to the selected thumb, and I cannot copy it.
    I have tried using the Javascript file.copy() function with no success.
    Does anyone have any suggestions how I can approach this problem?
    thanks in advance

    Don't you just need to cancat the folder that you have as target and the thumbs name in a new file object?
    #target bridge
    var thisFolder = Folder.desktop;
    var thisFile = app.document.selections[0];
    if (thisFile.type == 'file') {
         if (thisFile.copyTo(thisFolder)) {
              var newFile = File(thisFolder.fsName + '/' + thisFile.name);
              newFile.rename('SomeNewName');

  • Renaming and copying file in scriptask

    Hi All,
    I have created a package in which once the process is over , i want to add today's date to my source file and move it to another folder.
    suppose my source file is Test.xls. i want to change the name of my file to FilePolling.20150224.Test.xls

    Open up your System File Task and go to the expressions tab. Press the elipsis button, select Destination as the property, and use:
    "c:\\myFolder\\FilePolling."+(DT_WSTR, 4) DATEPART("year",GETDATE())+RIGHT("00"+(DT_WSTR, 4) DATEPART("month",GETDATE()),2)+RIGHT("00"+(DT_WSTR, 4) DATEPART("day",GETDATE()),2)+".xls"
    as your value, replacing c:\\myFolder\\ with your actual path. Remember not to use mapped drives, instead use the actual UNC path.

  • Renaming and numbering files question

    Currently I like to bring my image files (named by the camera as something like IMG_4896,IMG_4897,IMG_4898,etc.) into the LR catalog, move the files into a Photo Collection folder, and rename them based on the date taken along with a sequence suffix, e.g. 2007_08_20 -001, 2007_08_20 -002, 2007_08_20 -003, etc.  I like this system because I can sort by name in Win Explorer thumbnail view (inside one folder) and can see at a glance when the photo was taken. I find specific subjects using the keywording feature in Bridge or Lightroom.This works fine when I bring images in one date at a time. But if I were to grab a bunch taken on different dates, the sequence number just keeps on going up. I'd like for it to reset to 001 with images taken on different dates. Any way to do that. Not an especially important feature as I am able to work around this, but It would allow me to just dump images into a watched folder and let it go.
    Also, after editing a days group of pictures, there will be missing sequence numbers representing the images deleted. It would be great to just be able to move the images into a Finals folder where they would again get renamed, but with continuous sequence numbers that reset when the date prefix changes and no-one would ever know how many I deleted.
    To clarify, what I'm after is a final group of files that go something like this:
    2007_08_20 -001,
    2007_08_20 -002,
    2007_08_20 -003,
    2007_08_21 -001,
    2007_08_21 -002,
    2007_08_25 -001
    What I'm getting is this:
    2007_08_20 -001,
    2007_08_20 -002,
    2007_08_20 -003,
    2007_08_21 -004,
    2007_08_21 -005,
    2007_08_25 -006
    Unless I import only pictures taken on the same date and repeat for other dates.
    Thanks.

    Not what you are looking for (not sure if what you are looking for IS possible with lightroom), but the approach I took was to incorporate not only the date, but time into the file name as well as append the image number to end.  I also add my initials to beginning on image, which allows me to quicky identify if the file is a picture I took or collected from someone else.
    I use the following for renaming:    CMD {Date (YYYY)>>}-{Date (MM)>>}-{Date (DD)>>} {Hour>>}-{Minute>>}-{Second>>} ({Filename number suffix>>})
    This gives me a file name of :   CMD 2009-12-05 14-52-05 (5645).dng
    Not what you wanted, but does give ability to not only see image by date, but by time of day too and keeps each unique with filename suffix.

  • How to rename and copy files in DMS module

    Hi all,
    I'm new to DMS, In trans cv01/2n (on save) -  I need to rename a file  and make a backup and place it in another directory.
    should i use function modules ? can i do it directly ?
    thanks
    ziv.

    Ziv
    Please elaborate more. Your question is not clear.
    Regards
    Amaresh Makal

  • Upload and Manage files - track order not sticking

    I uploaded 5 mp3's today, and have been unable to get the tracks to order the way I want to. I move the tracks to the top of the list view, when I click "Done", some of the tracks move all the way up, others stay where they were or just move up one track. Using Safari 3, latest version of iTunes, on a mac.
    Anyone else have this happen? Any solutions?
    Thanks!
    John

    Duncan - I tried the move/refresh steps that you suggested, and it worked to a point, but I also started to see some other strange stuff. When I refreshed the browser (Safari 3.2.1) the list would sometimes return to its pre-move state, sometimes would reflect the post-move state, and _sometimes would display a list of files with duplicates of one or more files_. (See image below) Continuing to hit "reload" would fix this but it was inconsistent.
    On top of that, I returned to iTunes and refreshed my file list by clicking on another tab, then returning to the Lectures tab. After a couple times doing this, the generated list contained duplicates. The duplicates disappeared after the next refresh. (See image below.)
    If for some reason the images don't show up in this post, go to this link: http://picasaweb.google.com/jrussolmu.
    Lastly, the problem seems to center around positions 1-5 in the list. I can get it down to where only two files are out of order (1,2,3,5,4) and if I continue to try and move one of the files, it always reverts upon reloading the page, and eventually other files start to move out of order. (And if I click "reload" multiple times without trying to move anything, then the files start to rearrange anyway.)
    Joe

  • Droplet to Rename and Move files into Folders

    Hello,
    I am a Graphic Designer and I am trying to optomize my workflow. I would like to be able to save out files with different prefixes in a folder then run a droplet on the folder that will create sub-folders and move the files to their respective folders based on their prefix. I would also like to remove the prefix from the filename after it is moved.
    Here is an example of what I am trying to achieve:
    So far I am able to Create the folders, and move the files, but I am stuck on removing the prefixes from the filename.
    property aFolder : "a"
    property bFolder : "b"
    property cFolder : "c"
    property dFolder : "d"
    property eFolder : "e"
    try
              tell application "Finder" to set theLocation to the selection as alias
              tell application "Finder" to set thePath to the selection as text
    on error
              tell application "Finder" to set theLocation to (folder of the front window as alias)
    end try
    tell application "Finder"
              if not (exists folder aFolder of theLocation) then
      make new folder at theLocation with properties {name:aFolder}
              end if
              if not (exists folder bFolder of theLocation) then
      make new folder at theLocation with properties {name:bFolder}
              end if
              if not (exists folder cFolder of theLocation) then
      make new folder at theLocation with properties {name:cFolder}
              end if
              if not (exists folder dFolder of theLocation) then
      make new folder at theLocation with properties {name:dFolder}
              end if
              if not (exists folder eFolder of theLocation) then
      make new folder at theLocation with properties {name:eFolder}
              end if
    end tell
    tell application "Finder"
              set this_list to every file of theLocation
              repeat with i in this_list
                        if (name of i) begins with "a" then
                                  move i to thePath & "a:"
                        else if (name of i) begins with "b" then
                                  move i to thePath & "b:"
                        else if (name of i) begins with "c" then
                                  move i to thePath & "c:"
                        else if (name of i) begins with "d" then
                                  move i to thePath & "d:"
                        else if (name of i) begins with "e" then
                                  move i to thePath & "e:"
                        end if
              end repeat
    end tell

    Here:
    property aFolder : "a"
    property bFolder : "b"
    property cFolder : "c"
    property dFolder : "d"
    property eFolder : "e"
    tell application "Finder"
    try
    set theLocation to the selection as alias
    on error
    set theLocation to (folder of the front window as alias)
    end try
    if not (exists folder aFolder of theLocation) then make new folder at theLocation with properties {name:aFolder}
    if not (exists folder bFolder of theLocation) then make new folder at theLocation with properties {name:bFolder}
    if not (exists folder cFolder of theLocation) then make new folder at theLocation with properties {name:cFolder}
    if not (exists folder dFolder of theLocation) then make new folder at theLocation with properties {name:dFolder} 
    if not (exists folder eFolder of theLocation) then make new folder at theLocation with properties {name:eFolder}
    set this_list to every file of theLocation
    repeat with i in this_list
    if (name of i) begins with "a" then
    move i to folder "a" of theLocation
    else if (name of i) begins with "b" then
    move i to folder "b" of theLocation
    else if (name of i) begins with "c" then
    move i to folder "c" of theLocation
    else if (name of i) begins with "d" then
    move i to folder "d" of theLocation
    else if (name of i) begins with "e" then
    move i to folder "e" of theLocation
    end if
    set name of (the result) to items 3 thru -1 of (get name of (the result)) as string
    end repeat
    end tell
    (98558)

  • Picking up and processing files in Order

    Dear all,
    I have a scenario Legacy(File based Interaction)>PI(PI 7.1)>SAP (ECC 5.0)
    The legacy system would drop a set of files which would have the suffix "filename_s", "filename_o" in a singh folder.
    I need to pick the  "_s" files first and then process them and send the data to SAP, next  "_o" files have to be picked and processed.
    How do we handle this requirement.
    Did any one encounter a similar scenario, please share your inputs in designing this interface.
    Regards,
    Younus

    you can use a BPM with receive steps and a fork to ensure you process the second file only after you process the first file.

Maybe you are looking for