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

Similar Messages

  • Appending multiple *.csv files while retaining the original file name in the first column

    Hi guys it's been awhile.
    I'm trying to append multiple *.csv files while retaining the original file name in the first column, the actual data set is about 40 files.
    file a.csv contains:
    1, line one in a.csv
    2, line two in a.csv
    file b.csv contains:
    1, line one in b.csv
    2, line two in b.csv
    output.csv result is this:
    I would like this:
    a.csv, 1, line one in a.csv
    a.csv, 2, line two in a.csv
    b.csv, 1, line one in b.csv
    b.csv, 2, line two in b.csv
    Any suggestions to speed up my hobbling attempts would be aprieciated
    Thanks,
    -SS
    Solved!
    Go to Solution.

    What you could do is given in the attachment.
    Started with 2 files :
    a.csv
    copy of a.csv
    Both with data :
    1;1.123
    2;2.234
    3;3.345
    Output :
    a.csv;1;1.123
    a.csv;2;2.234
    a.csv;3;3.345
    Copy of a.csv;1;1.123
    Copy of a.csv;2;2.234
    Copy of a.csv;3;3.345
    If you have more questions, just shoot
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012
    Attachments:
    AppendingCSV.JPG ‏73 KB

  • 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

  • Need to rename files parsing date formats in the filename [SOLVED]

    Godaddy changed the naming scheme of their server logs again.  I need some perl or something magic that will convert format A to format B.  Doing this is bash is going to be painful so I'm hoping some of your perl or python ninjas out there could help me.
    format A:  ex20140425000001.log
    format B: Wed, May 21, 2014.log
    So for the example above, that date needs to be converted to this name: ex20140521000001.log
    Thanks in advance!
    EDIT: nevermind... forgot about date.
    #!/bin/bash
    for i in *.log; do
    fixeddate="$(echo $i | sed -e 's/,//g' -e 's/^....//' -e 's/.log//')"
    useitdate="$(date -d "$fixeddate" +%Y%m%d%H%M%S)"
    newname="ex$useitdate.log"
    mv "$i" "$newname"
    done
    Last edited by graysky (2014-06-07 09:41:59)

    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

  • Can i automatically set the timestamp of a file based on part of its filename?

    I have a bunch of files (approx. 500) with the same name pattern, that is : name_CreationDate.pdf. For instance: invoice015_2013_06_25.pdf or invitation035_2012_11_30.pdf. The last 10 digits are always the creation date. The original timestamps of the files have been messed up by a batch application which set them all to the same day; therefore they mean nothing anymore.
    Is there a way to automatically set the timestamp (for instance the "Creation Date" one) to the date indicated in the filename? I was thinking of Automator or some kind of shareware/freeware. Does anyone of you have an idea about this? Ideally as a batch rather than individually.
    Thanks,

    Thank you for your script. I made a test based on your script:
    a) I copied a PDF file on my desktop and named it "URSAFF 1er trim 2012_1998_09_19.pdf". The date component I want to set ultimately is therefore 1998_09_19.
    b) I created a service in Automator and pasted your script in a "Run a Shell Script" command. I added the Get Specified Finder Items at the beginning to be able to test the script on the file from Automator. (See screen shot of Automator below)
    c) The script appears to run successfully but I don't see a change in the timestamps of the file after I display Get Info from the Finder. (See screen shot of Get Info after I run the shell script)
    I wonder if my Region settings (I am based in France) do not interfere with the date/time string layout compatible with touch in your script. Just in case, I have added a capture of these settings.

  • Rename Files while uploading, having special characters in File Name.

    Hello Forum,
    In our SharePoint environment, we are having many document library. Our users regularly uploads files to the documents library. As SharePoint doesn't allow to use "&"  character in file name, it'll throw an exception regarding the file
    name.
    Now what I needed is :
    Is there any way to remove "&" character while uploading files? Can we replace "&" with any other character while uploading files.
    If is there any paid solution available, leave comment.
    Thanks in Advance.

    You have to change the folder/file names before hand then upload them to Sharepoint.
    here is the script which will scan the files/folder and find the special charaters and fix for you.
    http://get-spscripts.com/2011/11/use-powershell-to-check-for-illegal.html
    Courtesy :Waqas
    Sarwar(MCSE 2013)
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

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

  • Can't rename files on an external harddrive,

    I import my pictures into Lightroom using the following format YYYYMMDD - XXXX.  For example, a picture with a file number 2113 taken on Dec 16th, 2011 would be ranamed 20111216 - 2113.  I import them to my computer first and then move them to an external hard drive when the storage on my computer gets tight.  For a while, I accidently was adding a space to the front of my file name, so it would import as " 20111216 - 2113" instead of "20111216 - 2113"  notice the space at the beginning file name.   This space was maintained when the file lived on my computer, but it was removed when I moved the lightroom folder to my external hard drive.   As a result, all of the files that are on the external hard drive show up as "missing or deleted."  Light room thinks there should be a space in the front, but none of the files on the hard drive do.  I have to locate each and every file by hand, and the "find nearby photos" check box doesn't help, because all the files are missing the space.   Is there a way to batch rename files in lightroom, even when the file is missing?  I need to change all the names in my catalogue to take out the space at the front so I can then easily locate the files on my external hard drive.   Can someone help me out?  There has to be a better, faster, easier way to do this other than individually locating each and every file on my external hard drive.
    Thanks for your help,
    matt

    Lightroom can't rename files while they're missing.  If you batch rename the files on the external hard drive, to include the space again, LR should find them and then you can rename them within LR to remove the space again.

  • 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

  • Search for a file with part of a filename in a given folder.

    How can I search for a file with part of a filename in a given folder?
    Or can I change the columns in Advanced Search so that the heading is filename?

    thanks, Michel. it had occurred to me to put a scratch tag on the folder, but I was hoping for an easier way. in future I'll do as you suggest though, because it's easier than what I have been doing.
    daryl

  • Zooming in/out while selecting parts of the audio file?

    The company I am with use Cool Edit 2000 for our audio editing, in Cool Edit it allows you to click and drag to select parts of files while you are doing this you can use the mouse wheel to zoom in and out. This helps for when you need to zoom in at the beginning of the sound and drag to the beginning of the file to delete any unwanted sound or lack of sound, zooming out while doing this allows you to do it very quickly.
    I have tried the trial version of Adobe Audition 3 and I was not able to do this.
    My questions are:
    1. Was this feature removed?
    2. If not how do I enable this feature.
    This feature will determine weather or not my company will purchase this software. Thanks for the time to answer my questions.

    zooming isn't a problem its zooming out while dragging over the file to select it, basically what I am doing is zooming into the beginning or end of a file selecting the precise beginning or ending holding the left mouse button and dragging left or right while I am doing this I am zooming out to make it select what I need faster and deleting those areas away.
    I just read about the top/tails view, I am going to check it out see if this helps.

  • Is there a way to easily batch convert hundreds of video files to h.264, while retaining the original dimensions, metadata, etc.?

    I am organizing my library of stock video footage so is easily view (show to clients) and access. I need advice for two things:
    First: What is a good program to catalog footage in? I am considering using iTunes because I already have it and I could setup smart folders to easily organize footage.
    Second: I would like to encode all the footage to h.264 so I can preview it in Quicktime and add it to an iTunes library. My problem is all the footage is in a wide variety of dimensions, formats, framerates, strange codecs etc. I have access to Adobe Media Encoder and Apple Compressor. Is there a way to easily batch convert hundreds of video files to h.264, while retaining the original dimensions, metadata, etc.?
    I have tried using a watch folder in AME but it freezes every time I add the folder...
    Thanks for any help!

    "including library and music folders) from my computer"
    Did you move the entire iTunes folder the hold Option, select Choose library and select the iTunes folder you moved?

  • While waiting for replacement camera part for 40 days. my k910 has speaker failure.:(

    What a piece of crap.. My k910 start speaker failure while i'm waiting camera replacement part.. Call speaker is ok but the media speaker ia totally dead... This is my problemfull phone i've ever had.. My past a706 and s920 of my wife are problemless...
    Solved!
    Go to Solution.

    Luckily after tried to push both of up and down volume button the speaker actived again..

  • Can I create DNG files while at the same time keeping the original camera RAW images?

    I wish to create DNG files for my existing Lightroom catalogue, but also wishe to retain the original camera RAW images. If this can be done can you please advise how I go about it as I seem only to be able to find an option for conversion to DNG only.
    Thanks

    In the Conver-to-DNG dialog, you have the option to have the original Raw file deleted or not:
    But, after the conversion, only the DNGs will show up in the catalog, not the original Raw images also.
    Beat

  • PS Script To Rename File Using CSV - Filename Is Containing IP Address And Needs To Be Host Name

    Hello All,
    I am currently working with PDF reports which are named "TEMXX.XX.XXX.XX_141215.pdf", XX.XX.XXX.XX is an IP address. I have created a CSV which contains two columns, ColumnA = IPAddress ColumnB = HostName. I would like to remove the existing title
    of the file, and rename it as "ColumnB.pdf".
    The only two commands which come to mind are:
    get-childitem *.pdf | foreach { rename-item $_ $_.Name.Replace("TEM", "") }
    get-childitem *.pdf | foreach { rename-item $_ $_.Name.Replace("_141215", "") }
    The above commands are of course to remove the unwanted "TEM" and "_141215" but I cannot seem to figure out how to just rename files as ColumnB.pdf.
    Any help would be greatly appreciated :).

    Hello All,
    I performed the following but it did not execute, just returned the prompt. The final ps1 file was saved and ran as follows:
    $lines = Import-Csvservers.csv
    ForEach($line in $lines){
    get-childitem *.pdf |where {$_.name -eq $line.ColumnA}|Rename-Item -NewName $line.ColumnB
    CSV file named servers.csv displayed as follows:
    ColumnA,ColumnB
    192.168.1.2,SERVER1
    192.168.1.3,SERVER2
    Files in Explorer displayed as follows:
    ray192.168.1.2_2015.pdf
    ray192.168.1.3_2015.pdf
    As indicated above the filename should be finalized as:
    SERVER1.pdf
    SERVER2.pdf
    Any help in figuring this out would be greatly appreciated.

Maybe you are looking for