Rename files and retain portions of the original filename

I posted a thread about this a while ago, but no solution was given:
http://discussions.info.apple.com/thread.jspa?threadID=2564646
The issue is this: I can't figure out how to rename imported files while also retaining part of the original filename. The images come off of the camera like this:
DSC_3497.nef
I need to do the following:
+- Retain the unique number that the image already has. I don't want to rename the files by date, location, lunar phase, or some other esoteric identifier. I think having a unique ID for each image (one that shows up in standard OS-level searches on both Mac and PC systems) is useful.+
+- Replace "DSC" with the camera model (D3X), since I use multiple cameras with different resolutions and also need to be able to search for images from a certain camera outside of Aperture (i.e. tags/keywords would not help).+
+- Add a digit prior to the four-digit string to indicate the true numeric sequence of the file. Since Nikon cameras reset the number sequence every 10,000 files, I want to indicate the true sequence number directly in the filename. This will also avoid filename overlaps. It also lets me know how many images I've shot with each camera.+
The intended final result would look like this:
D3X_63497.nef
Showing the 63,497th image taken with my D3X.
In Aperture's "File Naming" dialog, I don't see a way to split the existing filename in this way. It looks like I can only append or prepend a Custom Name to the Version/Master name. I don't see a way to split the existing filename at the underscore, for example, so that portions of the original filename can be selectively replaced.
This is not about finding a workable naming scheme for Aperture and then renaming all existing files. I spend time on the PC side for various things and also work with a number of people who don't use Aperture but need access to my image library. I also have hundreds of references to existing filenames in various print and web design projects, as well as my Flickr account with 3000+ photos.
Going back and updating all that stuff is not going to happen. But using a System Service to rename files after every import is also pretty tedious.
Any solutions that meet the three criteria outlined above would be greatly appreciated.

sempervirent,
You're asking for some pretty advanced file naming. Most people aren't going to need that sort of function, so I doubt there will be a hook into Aperture to do such a thing. I suggest using a shell script or Applescript along with EXIFTool to rename files before you import them into Aperture. http://www.sno.phy.queensu.ca/~phil/exiftool/
Retain the unique number that the image already has
If you're not afraid of the command line, it's easy enough to use a tool like awk or maybe perl to parse that sequence number from a well-formatted string like the picture name
Replace "DSC" with the camera model (D3X)
You can use EXIFTool to extract the camera model from the EXIF dat ain the photos
Add a digit prior to the four-digit string to indicate the true numeric sequence of the file.
Good luck with this one. You'll have to do a filename search through all of your previous files to find out what 10,000 you're on. It's possible, but you'd have to do some specialized coding in AppleScript or shell script.
nathan

Similar Messages

  • PI FTP get zip file and want to unzip with origin filenames

    Hello everybody,
    we get zip files from ftp and want to unzip this file in one target directory (file adapter). May be, there are more than one file in the zip file, for example test1.txt,test2.txt,test3.txt and zip file name is zipexample.zip. With adapter parameters it is possible to use the name of the zip file, but I've no idea to get the origin filenames (test1.txt, ...).
    I don't want to use the OS Commands to do this.
    I know that's not realy an workitem for PI.
    Is there anyone, who has an idea. Thanks
    Kind regards - Jochen

    Hi,
    Try out this blog
    Working with the PayloadZipBean module of the XI Adapter Framework
    regards,
    venkat.

  • Rename files while retaining part of camera filename

    Hello, I've just switched from Windows to OS X and I'm running a trial of Aperture. It's great so far, much better than Nikon's own RAW software (Capture NX).
    However, I can't figure out how to rename imported files while also retaining part of the original filename. The images come off of the camera like this:
    DSC_3497.nef
    I want to retain the unique number that the image already has, but reference the camera used, and also prefix a digit to the original numeric string:
    D3X_63497.nef
    In Aperture's "File Naming" dialog, I don't see a way to split the existing filename in this way. It looks like I can only use the full Master File Name. Any suggestions?
    Message was edited by: sempervirent

    I actually found two free applications that do exactly what I need.
    One is a standalone app:
    http://www.macupdate.com/info.php/id/33659/rename
    The other runs as a native Mac service:
    http://www.versiontracker.com/dyn/moreinfo/macosx/75183804
    I'd still prefer to do this directly in Aperture when images are imported, so if anyone has a solution, please let me know.
    Message was edited by: sempervirent

  • Can I get back the original filename even though the file is missing

    I imported 900 RAW images from my desktop into Lightroom, edited them, renamed the filename, and exported them into JPGs. Since I no longer needed the RAW images on my desktop I moved them over to an external hard drive. So now the images are still visible in my Lightroom catalog, but there is no photo to back it up since I moved the original files to the external hard drive. After realizing that I exported the images at 150 dpi instead of 300 dpi I need to re-export the images from lightroon at the proper resolution. But since I moved the originals to the external hard drive there is no photo to back it up in lightroom anymore. So I went to locate the files by clicking on the  "?"  but since I renamed the file when I exported them, the original filename on the external hard drive is now different from the filename in the catalog. Is the only solution to locate the file one by one?  Is there any way I can do them all at once even though the original filename is different from the filename in my lightoom catalog? The original filename is still listed in the metadata, but since the originals are missing it can't change it back.  Please help!

    It sounds as though you moved the files and renamed them outside of Lightroom.  Not a good idea.  I'm not really going to answer the question about retrieving the files.  But if your only concern is the resolution then I wouldn't concern myself about changing the images.  That resolution setting really has no impact or effect of any kind on your images.  It doesn't change the size, or the quality at all.  If you have an image that is 2000x3000 pixels (for instance) it will be that same size regardless of what the resolution setting is.  The only real value that setting has is to give another user an indication of the intent for the image.  When you look at an image in Photoshop and look at the image size feature, Photoshop will tell you the dimensions of the image at that resolution, but that doesn't change anything about the image.

  • Why can't I copy and paste portions of the Word document that I just converted from a PDF file?

    Why can't I copy and paste portions of the Word document that I just had converted from a PDF file on your site?

    Hi,
    I am moving your posting to Adobe CreatePDF forum.
    Hisami

  • I have moved my file from my old computer.  Now that I am trying to play songs and movies iTunes says the original file could not be found.  How do I reverse this problem?

    I have moved my file from my old computer.  Now that I am trying to play songs and movies iTunes says the original file could not be found.  How do I reverse this problem?

    Put the files back where iTunes expects them to be.

  • When I create a .pdf from an Office file, I have to close the original file before using.  Help?

    When I create a .pdf file from an Office 2010 file (.docx or .xlsx), I cannot move, rename or alter the .pdf file until I first close the original Office file.  If I try, I get a message that the file is in use.  Is this due to some sort of cache setting?  Any suggestions?

    I believe we are using Adobe drivers within Office to generate the PDF through the print function.  All of the settings appear to be Adobe.  If I launch Distiller separately and navigate to the setting I get the exact same settings form I get when I go through the print properties settings. 

  • Is there a way to import images that have been edited and assign them to the original?

    I am transitioning to mac and aperture. Is there a way to import images that have been edited and assign them to the original? I have 10,000 originals and about 2,000 edited images. The originals are named img_XXXX and anything modified img_XXXX_modified. I would like to be able to import the originals and then import the edited versions and assign them to the original masters. Instead of starting from here and going forward with 12,000 masters, some of which are actual originals and others not. Thanks for the help.

    Ah, the vestiges of a destructive workflow! Once you "get" Aperture, (specifically Masters and Versions) you are going to love it, as all of this work goes away - the relationship that you seek to retain is automatic in Aperture; it is simply done differently.
    The short answer to your question is EVERY image file that is Imported into Aperture will create a new Master and one Version. Assuming that your images are PSD/TIFF/JPEG that you created in something like Photoshop, then each one that your import will be a new Master. You have many options:
    -- Stick the originals in one Project(s) and the edited versions in another Project(s).
    -- Stick them all in the same Project(s) and "Stack" them.
    But here is the real question: Why are you doing all of this work and what are you trying to accomplish? Seems you are trying to preserve old things that don't need preserving in a non-destructive workflow.
    So, what is most valuable to you?
    -- The original, out of camera files? (That is, the fear/need to revert.)
    -- The edited versions? (That is the hours of work that it took you to get there.)
    If the former, import the originals and ignore the edited versions. (Either simply leave them out on disk or import them into their own Projects which you ignore.) Use Aperture to recreate the work you had done previously. This will always give you the ability to revert to the original Master and create as many Versions as you want. This is the best idea if your edits are relatively simple crops and exposure adjustments,
    If the latter, then import the edited versions and do as above with the originals. This makes more sense if your work uses lots of layers and, perhaps lots of clone tool type corrections.
    Of course, you can do a bit of both.
    Others may have better suggestions, but you will find it easy to answer your own question when you understand an image based, as opposed to a file based, non-destructive workflow.
    Good luck!

  • Edits to a JPG Smart Object  in a layered TIFF file:  DOES NOT Save to the originally placed file?

    When placing a JPG as a Smart Object (and even multiples) into a layered TIFF file:  If I open each layered Smart Object JPG, make changes as a JPG and SAVE the file, I expect the ORIGINAL SOURCE JPG file that was placed to also be saved- I thought that is the file I was editing!
    This SUCKS!  To capture my edits to the original individual files:  I now have to open each layed TIF file, Edit each smart object JPG and SAVE AS to overwrite the original and capture my changes?  Is this the way its always been- I don't think it has.  How can I edit a Smart Object file in a layered document and ALSO update the SOURCE file?

    You should edit the original jpg, and then replace the smart object. There is a utility that makes this easier, if you do many of these. Looks liek this
    link_update.zip

  • Mac OSX 10.6.8 running Photoshop CS5. My hard drive went belly up. Installed a new one and then tried to install Photoshop from my backup. I get an error message 6 telling me to uninstall Photoshop and then reinstall from the original software. But I boug

    Mac OSX 10.6.8 running Photoshop CS5. My hard drive went belly up. Installed a new one and then tried to install Photoshop from my backup. I get an error message 6 telling me to uninstall Photoshop and then reinstall from the original software. But I bought from Adobe online. How do I go about this?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • Custom batch rename files with Aperture 3 in the following format: IMG_0023.cr2 to Smith_YYMMDD_0023.cr2?  I cannot find a way to structure the date in Aperture as such, as well as extract only the camera file

    Please advise how to custom batch rename files with Aperture 3 in the following format: IMG_0023.cr2 to Smith_120816_0023.cr2?  I cannot find a way to structure the date in Aperture as such (YYMMDD), as well as extract only the camera file (0023, for example).  Adobe Bridge CS5 can do this, but NONE of the Adobe software is retina optimized, and is terrible to look at.

    In Aperture you are limited to renaming files by the entries in the File Naming preset window.
    At what point are you looking to rename, import or export? It might be possible to do what you are looking to do external to Aperture either via a script or other software.
    regards

  • Select File Archive it then Open the original file

    I have created an application that lets me select a file save it to another location then open it with the default application. My problem is that the file the application opens is the one that I just saved as a copy. The result is that when I close the application the new file is saved to the archive location not the original location. To further complicate this the application is Access which I have to run in Windows using Parallels. Any suggestions would be greatly appreciated.
    Thanks
    Mitch

    You are correct Access constantly saves the file you are working on in fact it is one application that does not have a save to or save as option (for the entire file) it always saves the file back to where it was opened from. Not sure I understand what you mean when you say "manually save a file". Are you suggesting I should save to the archive location then save it back on top of itself ? Checked results and it shows that the variable being passed to the open command is not the one set with set variable. The set variable results shows the file and path that is set with the "ask for finder items" command. The file and folder name in the get variable results is the path from the copy command?
    Thanks again
    Mitch

  • Duplicate a 2 sided doc and "attach" it to the original

    I want to place 2 identical 8 1/2 x 11 2-sided docs on one 11x17 sheet, by duplicating the original doc in total and "attaching" it to the original. Is this possible or do I need to cut and paste the original onto a new 11x17 doc?

    That, or you can Place the original file into a new file. That has the advantage that if you later want to do any editing you edit the original file once, then update the links and they all get the updates.

  • I can't seem to print to PDF from other programs.  I have Acrobat 9 (with latest update), Windows 8, and when I try to print to PDF it defaults to a  *.prn file, and when I change the name to *.pdf the file that it produces doesn't open.

    I can print to PDF using PDF995, but not the regular Adobe PDF that comes up in the list of printers.
    I've tried repairing the Adobe installation, but that didn't help.

    It might help to understand the process, though I am almost surprised that AA 9 worked for printing on Win 8 (thanks for that info). Normally the print process is to print to the Adobe PDF printer (without the print-to-file checked). The process does create a PRN file that is actually a PS file. AcroTray (running in the background) completes the process of taking the PS file and running Distiller in the background to create the PDF. If you have problems, you should be able to print to file (assuming the print driver works -- but you indicate it does) and then opening the PRN file in Distiller to create the PDF.

  • Can you increase the brightness of a photo in order to edit and then return to the original brighten

    Can you increase the brightness of a photo temporarily while editing in PS and then return to the original brightness.  My problem is that I want to delete some objects in my photo and can hardly see them.

    Awesome--some of my menu choices were not the same so I had to guess but I did it and it preserved the original brightness.
    My path:
    View->Proof Setup->Custom->Device to simulate: sRGB ice (bunch of nos.)->Preserve no. set on
    And Voila!  it returned me to my orignal colors and brightness and maintained the other changes I made.
    Thank you.

Maybe you are looking for

  • Reproducible bug in Pages 2.0.2 tiered numbering

    We recently purchased an iWork 5-pack to try out Pages (and Keynote, which I just hands-down love) as an alternative to Word. We do a lot of fairly lengthy contracts, so a reliable tiered numbering (e.g.: section numbering) system is mandatory. Every

  • Monitor Colors wrong following a re-install of 10.3

    I've fixed this once, a year ago, but have forgotten how! I have had to re-install 10.3 due to some other problems but with this fresh system, the monitor colors are not quite right. For example, the finder icon in the dock is purple, the label color

  • How to find Project Level Text Custom Fields in Project Server 2010 databases?

    Hello, We are using Project Server 2010 SP2 in SEM Mode. We are planning to use Project Level Local Custom fields and we want to pull them in reports using SSRS, so I am wondering which table these "Local" (non enterprise) custom fields are stored in

  • Adobe pro 9 requires mac admin password

    I just restored my macbook air and reinstalled my adobe pro 9 software, but now I have to enter my admin password before I can open any pdf file.  How can I turn off this security feature?

  • Which IDE is suitable for GUI in Java?

    Which IDE is suitable for GUI in Java? I have kind of complex form with many text fields and buttons in a Java application. I have been trying with Netbeans, everything is fine with Netbeans but it is a huge problem when all the graphics components m