Can I batch rename to remove prepended characters?

I know the basics of batch renaming files, but can't seem to figure out if this is possible:
I have a number of files scattered across different projects and folders.
These files are named ABC-DEF-xxxxxxx
The xxxxxxx is unique to each file, and non-sequential (sometimes just text words).
So I am wondering is if there a way to batch remove the "ABC-DEF-" from the master file name and leave everything else in the name unchanged?
I should say...without doing a tremendous amount of work like exporting the files from Aperture, changing the names somehow, then re-importing (which I think would be lots of work, esp since the files are scattered across different projects/folders).
Thanks much everyone!

This script will rename all the selected versions in the form XXX-YYY-FinalName to FinalName
Doesn;t matter what XXX and YYY are or how long they are as long as the format is exactly three groups of chars separated by a dash.
tell application "Aperture"
          set imageList to (the selection)
          if imageList is {} then
                    error "Select IMages."
          end if
          set {oldTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "-"}
          repeat with i in imageList
                    set n to (name of i)
                    set name of i to text item 3 of n
          end repeat
          set AppleScript's text item delimiters to oldTID
end tell
to run it select all the text in the box above right click it and select make new applescript. This will copy the script into the AppleScript editor.
Start Aperture and select the images you want to rename.  I strongly advise you do this first on a test library to make sure it is doing want you want. Export some of the images as a new library and test with that.
Note this will only change the version names no the original file names. If you also want to change the original file names once the versions are renamed select them and run  MetaDatat->Batch Change. Select Version Name Format: Current Version Name and select the Apply to Originals checkbox.

Similar Messages

  • Can't batch rename my photos

    I used to be able to batch name my photos with a title and then let i-photo put a number after it (like airshow 1, airshow 2.....) Now it won't work it looks like its going through the process but when I check info the photos still have the file names from my camera.
    I have not done any upgrades since os 10.4.2 and it took away my ability to print through my network
    Any Ideas on what would be wrong with the batch reame?
    Joe

    Thank you for the information, it helped some maybe you can help me out, I want to back up 5000 photos to dvd so I have a hard copy of them. Last week end I went through the export as originals and burned them to dvd. My problem is I have about 500 photos that have the same file name (the one given by the camera) and when I go to export them into a burn folder it says do I want to replace the photos already in the burn folder. So I am missing some pics. I thought I was double selecting the photos but I found one of the file names and did a search an 2 different photos showed up. I was hoping with batch rename the file names so this wouldn't happen.
    Any thoughts
    Thanks
    Joe

  • Can you batch rename tracks in iTunes for Mac?

    I want to do a sequential track naming, but I can't figure how to do this and the Doug's applescript isn't working - it renames my FILES instead of the TRACKS!
    These tracks are from an audiobook on CD, and it's tiresome to have to search for the "part" when all the tracks are numbered 1-99 and the only thing keeping them from being in the wrong order is the fact that I told iTunes the disc order in the 'Get Info' menu. It wouldn't be so hard on the MacBook, but I usually listen to these on my iPhone, and scrolling through literally hundreds of tracks takes forever, and sometimes I STILL can't find which track was playing last!
    I've done a batch rename using an Automator workflow setup I found on the web, but I can't find anything that lets me actually rename the tracks. I've even deleted the tracks from iTunes, renamed the files, deleted the faulty script that screwed things up, and it STILL comes up with the weird numbers and track numbers and renames the files in Finder!!!
    I'm getting really frustrated with this and don't want to have to rename tracks by hand because that takes HOURS.

    Hi,
    Here is an AppleScript example of how to rename tracks in iTunes :
    display dialog "What will be the base name?" default answer "Track "
    set baseName to text returned of the result
    set n to 1 -- the starting number
    tell application "iTunes"
          repeat with thisTrack in (get selection) -- rename selected tracks
                set name of thisTrack to baseName & n
                set n to n + 1
          end repeat
    end tell
    Without more information, I can not make script specific to your needs.

  • Can't batch rename or delete

    When working in Bridge, in certain folders, I can't seem to delete files or batch rename files. Is there a setting I am missing that could cause this?

    That would most likely simply boil down to generic operating system level permissions issues or whatever, but without knowing anything about your computer, nobody can advise specifically. Could also be some other program/ tool having a hold over your files. We really can't know. For the permissions issues you might start by reading this:
    Installation Preparations (security section)
    Mylenium

  • How can I Batch Rename Files in Aperture?

    Yesterday I imported some new photos and accidentally used the settings from my last import which named my images in a way that needs to be changed. I have already rated and edited many of the images so I don't want to reimport them from my memory cards.
    Is there a way to batch rename the images - preferably to the original file name from the camera? If not a custom name would be fine.

    Metadata->Batch Change

  • Can I Batch Rename all files in a Project?

    I have a rather large scale LabVIEW project that I would like to use as the basis for another similar project, so I just made a copy of the entire project directory. In order to avoid conflicts when switching from one project to another, I would like to rename all the files in the new project directory. I know I can rename the files individually within the project, and LabVIEW will automatically update all dependencies--but is there any way to rename ALL (or at least multiple) files from within the project? Or is there any other way that I can rename a large number of files that will update the dependencies and avoid file conflicts. For simplicity, I would probably just append a prefix/suffix to each filename.
    Thank you for your help and suggestions.
    --Phil Lundeen
    CLAD
    Message Edited by TurboPhil on 07-23-2008 09:08 AM

    I wrote a cloner VI just before NI release LV 8.5 where they adde the ability to add a prefix when you do a Source Distribution. Try that.
    Ben
    Message Edited by Ben on 07-23-2008 11:47 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Prefix.PNG ‏33 KB

  • 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.

  • Batch rename selected layers

    I'm trying to find a script that can help batch rename/renumber a group of selected layers.
    So far I've been able to find a script that renames every single layer in a Photoshop document (overkill). Or there's the CS6 Tab rename trick (too slow).
    I routintely export PSDs from Illustrator for use in After Effects. But in Photoshop, I'll get a couple hundred layers named <path> or <path> + <path> or <group>. Renaming by hand is out of the question. But I don't want to rename every layer the same.
    Any suggestions?

    I wrote one for you here...
    http://www.retouchpro.com/forums/photoshop-scripting/23234-script-find-replace-text-layer- names.html

  • Batch rename files

    How can I batch rename files to original (embedded in metadata) file names?

    If you are saying that your photos have their original filename stored as the DocumentName field in the EXIF metadata, you can use the free ExifToolGUI:
    http://www.softpedia.com/get/PORTABLE-SOFTWARE/Multimedia/Graphics/Portable-ExifToolGUI.sh tml
    It requires the free ExifTool:
    http://www.softpedia.com/progDownload/ExifTool-Download-90656.html
    ExifToolGUI allows you to rename files using that DocumentName field -- just be sure the extension is included.
    Added:
    I just installed those latest versions, and there isn't the file renaming option any more.
    Can probably be done by setting up an ExifTool commandline, but I haven't experimented with that yet.
    Ken
    Message was edited by: photodrawken to add more info.

  • Batch Rename Raw Files After Import?

    Can you batch rename raw files after you import, so that the file name changes in Aperture and on the hard drive? I want to be able to edit images, and then rename only the keepers. This has been asked before here, but I could not find an answer.
    Thanks!

    File -> Export, Kind: Original
    When you import a Raw to iPhoto it automatically creates a jepg preview of the file. Why? Because you cannot do anything with a Raw: you cannot print it, use it a slideshow and so on. However, with this preview you can work with the photo immediately.
    You can, however, also process the Raw in iPhoto simply by editing it. The Raw processing engine in iPhoto the same one used in Aperture, but with less fine control. (Think of the differences between Word and TextEdit, iMovie and Final Cut). The output from the processing then replaces the preview. You can choose to save your output as either jpeg or tiff in the iPhoto Preferences.
    When you are processing Raw in iPhoto you will see the Raw badge on the bottom of the iPhoto Window
    Uploaded with plasq's Skitch!
    Note: After you have processed a Raw, subsequent edits to the photo are carried out on the processed jpeg (or tiff) not the Raw. If you want to go back to the original then you need to use the Photos -> Reprocess Raw command.
    Aperture works in an entirely different way. What are you trying to do, exactly?
    Regards
    TD

  • Batch rename masters and versions

    Like a dummy, I imported a huge photo shoot without using the easy re-naming.
    Now, I want to rename every photo. I want to keep the numerical order, as it is critical for organizing the project photos. I want the Masters to be renamed (and I assume then that the versions just stay "version1" etc...). I have all my photos in stacks by master and version (not different masters).
    How can I batch rename, keeping the sequential order that is already there.
    (I have read the manual. I have searched on this forum. I still am a little unclear and, hence, the question.)
    Thanks in advance!

    If the images are referenced to an external location (outside Aperture's Library) then you can easily renaming them using Automator.
    Copy all the images you are going to rename to a temp location. Just in case something goes wrong.
    With Aperture closed open Automator, in the finder select all the images you need to rename and drag them to the right part of automator's screen. Now on the very left part select Finder, on the second column, near the bottom drag the rename finder items action to the right part, just under the window with all your images listed. Click on don't add so it will just rename the files (you made a copy previously). Select replace text and enter the old and new text. That way it will keep the numerical part of your files.
    Press play and wait for the action to finish.
    Check in the finder that the files have been renamed properly.
    Open Aperture and go to the project with those images. If the masters can't be found go to File/Manage Referenced files... and in there you can reconnect to the right location. Usually this step won't be needed unless you move the masters to a new location.

  • Batch Renaming loses Spotlight Comments, Os X to blame?

    I posted this over at the Adobe forum for Bridge, however, I'm going to post it here too because part of me feels like this issue I'm experiencing is tied to a recent Os update: from Leopard to Snow Leopard.
    I'm a photo editor for a wedding photographer and have been implementing some of my own personal workflows into his pipeline. I tend NOT to rename camera-generated files, at all, unless there's an important reason to do so. Sorting an entire wedding by "Date" works perfectly for building the proper timeline for a shoot. So camera-generated file names are perfectly okay for our needs.
    When an edit is complete I'll generate JPEGs from Aperture. The resulting files will continue to carry the original RAW files names, unless there is a duplicate file name, then Aperture will add a number: "(1)" to the file, if necessary. Typically, after export, I run an Automator action that stores the file name in the Spotlight Comments. Because prior to shipping and archiving, I AM going to rename the final JPEGs sequentially: 0001_wedding, 0002_wedding, etc.
    The beauty was that with the original name stored in the Spotlight comments for the JPEG, I would easily look at 0148_wedding.jpg, see that it's spotlight comments said, "Original Name: IMG_3471" and obviously know exactly what RAW image this new JPEG started as. Worked perfectly.
    So process was: Export, Store Original Name in Spotlight Comments of JPEGs, Batch Rename (sequentially) based on date modified in Bridge CS4.
    Well now everthing's changed. We had a system drive go down. We were running 10.5.8. When the system came back from the shop, with a new drive installed, it was/is running Snow Leopard. 10.6.3? I think. Snow Leopard, no doubt.
    And now my prior workflow has been wrecked because the act of renaming, in Bridge CS4, erases all those handy Spotlight comments. However, part of me is wondering though if this issue is rooted more deeply, at the OS level? Because R-Name (Batch renaming utility) is now eradicating Spotlight comments as is an Automator action built for the same purposes. This all used to work perfectly. And the one major change that has occurred was this "upgrade" from Leopard to Snow Leopard.
    So, question is: is there something I can alter in Bridge Preferences to maintain my Spotlight Comments, when batch renaming? Is this all tied to the Snow Leopard? Is there ANY renaming utility that's not going to fall victim to whatever the hang up here is?? How can I batch rename and not destroy my lovely Spotlight Comments in the process?
    Thanks for your time!!

    Yes, this works. However, this was already part of my workflow.... and not where the trouble lies.
    After exporting jpeg images from Aperture, they carry the same name of the original RAW files, from which they came. (So, IMG_8342.jpg would have started it's life as IMG_8342.CR2.) But we dont' send them out like that. We sequentially name them 0001_image.jpg, 0002_image.jpg, etc... So after renaming, how do you find the original file again, right?
    BEFORE the renaming phase, I would run the "Store Original Names in Spotlight Comments" action. That way, I could look at the comments for a derivative .jpg—whose name has now changed—and determine the name of the ORIGINAL file.
    After renaming, the derivative file might end up being named 0361_image.jpg, but it's Spotlight comments would say, for example, Original Name:<<IMG_8485.jpg>>. Then I would know that this particular file started off as IMG_8485.CR2.
    As such, I could quickly/easily backtrack, knowing that the original RAW file was named IMG_8485.CR2
    The issue is that once you've gone thru the effort to ADD these spotlight comments, if you THEN go through a re-naming step, this erases all those Spotlight Comments. That was my problem... Getting the Spotlight Comments in place was never the issue. KEEPING them there was the problem.

  • Batch rename of version name to fix a typo?

    When I import images, a have Aperture give them a version name that is composed of the date, the master file name and a custom part. (I know this is a bit redundant, but hang on for now).
    E.g. a version name would be "20101022-hopsack-DSC_1234". Note: no extension!
    Now suppose that fter importing I notice that I've got the custom name wrong; instead of "hopsack" it should've been "debrem".
    So I do a Batch change on those images, selecting the same version name format as in import, and type in the proper custom name, and voila, fixed, right? Wrong! The version name now contains the file extension, like so:
    Rename -> "20101022-debrem-DSC_1234.NEF".
    This is not what I wanted. Even worse, when you export this image with the current version name as file name, you'll get "20101022-debrem-DSC_1234.NEF.jpg". Looks rather stupid.
    Why does the [master file name] building block have different behaviors in Import and batch rename? Am I missing something?
    You could fix the version name with the Metadata inspector, but then you'd have to do it image by image.... OK for a few images, but not very practical for many.
    So, apart from making no mistakes during import, are there other ways to fix this?
    Oh, about that silly version name... I wanted to change the version names into something more sensible, but you can't batch rename images and re-use the custom name they have to make a new version name. So that would become a tedious process as well. Suggestion on how to handle this are welcome as well. (I could filter the images on custom name 1, batch rename with that name, then filter on custom name 2... and so on. Slightly less cumbersome.)
    Hints? Tips? Suggestions?
    Thanks,
    Peter.

    Sounds like the coder who implemented the code for this in file import didn't consult the corder doing it in the Batch change section
    Seriously, this isn't right, it should be one way or the other, ideally there should be two separate options, one with just the filename part and another with the extension, Then you could put them together any way you like.
    I'd send feedback to Apple concerning this.
    As for the situation you're in now, can't think of any easy way to make the change you want to.
    Sorry

  • Batch renaming of files in Mac

    I have a large number of files I want to rename. I was used to doing it in windows by doing a "group select" and then changing the prefix to the names so it would "add itself" to the front of the file names selected. Can a "batch rename" be done in OS X? How?

    Thanks, VK. I finally found the "Apple Script" utility by doing a search as the Utility did NOT appear in Finder when I looked at the Utilities section. I surmised that the buttons at the top of the window would run the utility. I highlighted the files whose names I wanted to change which contained the words "Natchez Trace" and then ran the "Replace Text" script utility. I clicked on the run, put in the text I wanted to change, i.e. "Natchez Trace" and then entered the text I wanted to change it to, i.e. "Brendas Electric Service". It seemingly ran but nothing happened at all. Apparently, it didn't work. These files are located in an external hard drive and are photo files. I have the do dad on the bar at the top of the screen now, but, unless I've overlooked something, these script utilities don't work. Can you offer any help or ideas about what I can do to make them work. JCH

  • Undo Batch Rename

    I did something a little stupid (its late and im tired...honest...)
    I created a new album from selection of photos and batch renamed the Version names, not thinking, and now the original files in the original album have had their Version names renamed.
    Is it possible to undo this?
    I can through metadata, copy the File Name and paste it in Version Name,which fixes it, but id rather not have to do that for each individual 400 odd photos!
    Please Help!

    Not sure you can "undo," but what do you want the names to actually be? Why not reset them?
    If you want the ORIGINAL name (e.g. _P4P3323.CR2), you can just batch rename files using the master filename. When you do "Batch Change..." and select the Version Name Format, create a new one and use "Master Filename..." as the criteria. It will change them to the name they had when you originally imported the photos (which is typically the camera-provided name), which shows up in the Metadata view as "File Name."

Maybe you are looking for