Rename a JPG, a PSD and a CR2 file having the same filename to a new same-filename

Hello,
The question is regarding my archives that I need to re-name.
Say within a folder I have:
IMG_4146.JPG
IMG_4147.JPG
IMG_4147.CR2
IMG_4147.PSD
IMG_4148.JPG
IMG_4149.JPG
I wish to rename the above as
IMG_4146.JPG  becomes 2000.JPG
IMG_4147.JPG  becomes 2001.JPG
IMG_4147.CR2  becomes 2001.CR2
IMG_4147.PSD  becomes 2001.PSD
IMG_4148.JPG  becomes 2002.JPG
IMG_4149.JPG  becomes 2003.JPG
and so on..
Basically, can I get Bridge to rename all files with the same filename but different extensions, to a new filename which is also the same. As of now I rename all the JPG files in a folder sequentially, and then manually change the filename of the CR2 and PSD files to match to the filename of their JPG versions.
Note that every JPG does not have a corresponding CR2 and PSD. Hence I cannot use the sequential filename feature to rename the CR2 and PSD files.
Hope I've been clear in explaining what I need. And many thanks in advance for any help

Ah, I was in a bit of a rush this morning, the scipt should have decremented the number by 2146 in the filename.
This should do the same but remove the characters before the numbers giving a numeric filename only...
#target bridge
var sels = app.document.selections;
for(var a in sels){
sels[a].spec.rename(sels[a].name.replace(/\d{4}/,sels[a].name.match(/(.{4})(\d{4})/)[2]-2146).replace(/^.{4}/,''));

Similar Messages

  • Should I store my cr2 files in the aperture library?

    I have noticed aperture slowing, pausing and even crashing recently. I was wondering if storing too many cr2 files in the aperture library might cause this. At this time I have a little over 6000 cr2 files in the aperture library.

    Generally, no.  And generally, size alone is not a problem.
    I regularly run Libraries with 30,000 24 MPxl Images, both from the system drive or from external drives, and have no problems.
    I built up a Library of 1 MB JPG Images to 300,000 Images in order to test Aperture and did not encounter any problems except with Faces.
    Although I haven't tested it directly, my sense is that Aperture performs better with large Libraries when the Images' Masters are Referenced and located on a separate drive from the Library.  Put the Library on your highest-performing drive (almost always the system drive); put your Referenced Masters on a fast drive.
    The first things to check if Aperture begins to behave poorly are (off the top of my head):
    - drive space (Aperture needs a lot of free space on your system drive
    - other programs (Aperture is hardware intensive; a poorly written utility can slow the OS a little -- but that little can hobble Aperture on that machine)
    - Library corruption (Force-quitting can do this -- run "Repair")
    - File fragmentation (OS X does a good job preventing this, but I still recommend defragmenting large Libraries once a month.  Copying to a second drive, and then copying the copy back, defragments files.)
    - Also, make sure your copy of Aperture is up-to-date.

  • WHen I choose an album, upload a file(s), just as the file(s) is uploaded the file I have chosen disappears and I am asked to choose album again. If I ignore this and drag a file onto the sceneline, I get the "where is the file " message" and when click o

    WHen I choose an album, upload a file(s), just as the file(s) is uploaded the file I have chosen disappears and I am asked to choose album again. If I ignore this and drag a file onto the sceneline, I get the "where is the file " message" and when click on the file it is looking for I get the message "This type of file is not supported, or the required codec is not installed". I have made many little films before but always have this problem now. Any suggestions?

    Margaret
    Although we are continents apart - Australia (Perth) vs North America (US), we will not let time zones interfere with getting your Premiere Elements 8.0/8.0.1 working.
    1. The usual Premiere Elements 8 drill.
    a. Are the automatic features of Background Rendering and AutoAnalzyer turned Off?
    For Background Rendering, see Premiere Elements workspace Edit Menu/Preferences/General. For AutoAnalzyer, see Elements Organizer workspace Edit Menu/Preferences/AutoAnalyzer Options.
    b. Are you running the program from the 8.0.1 Update? If not, see Help Menu/Update?
    c. Do you have the latest version of QuickTime installed on your computer with Premiere Elements 8.0/8.0.1?
    Apple - QuickTime - Download
    2. The usual computer drill....for your Windows XP 32 bit (SP3, I presume)
    a. Is computer opitimized, defragmented, etc.
    CCleaner - PC Optimization and Cleaning - Free Download
    b. Are you running your computer from a User Account with Administrative Privileges? That is important for Premiere Elements 8 as well as for its
    required QuickTime. In addition, right click the computer desktop icon for Premiere Elements 8 and select and apply Run As Administrator.
    3. Project Specifics
    For now, import your source media into the project from the computer hard drive using the project's Get Media/Files and Folders. Leave the Elements Organizer and Albums out of the equation for now. We will circle back to it soon after we decide everything else is working as it should be.
    a. You need to set a project preset. And, that project preset should match the properties of your source media. So important to know properties of source media.
    b. When you import your source media into a project you will get a red line over its content if the project preset is not a match - either because you set the wrong one or the program does not have a match for your particular video. That red line means that you are not seeing the best possible preview of what is being played back in the Edit area monitor. To get the best possible preview, you hit the Enter key of the computer main keyboard to get a rendered Timeline (red line goes from red to green after this type of rendering). That green line over your rendered Timeline indicates that you are now getting the best possible preview. This is solely a preview thing. Longer story, but I will leave it at that for now.
    c. Check Edit Menu/Preferences/Scratch Disks to assure that those Scratch Disks are being saved to a computer hard drive location with enough free space to accept them. Make sure that you do not have pile ups of previews files, conformed audio files, and conformed video files.
    See Local Disk C\Documents and Settings\Owner\My Documents\Adobe\Premiere Elements\9.0
    Never move, delete, or rename source files after they have been imported into a project which has been saved/closed. Otherwise, nasty media disconnect problems. You have only copies of media in Premiere Elements. The originals are on the hard drive, and the project must trace back to the originals where they were at import.
    Based on the above, try to start a new project. But, let me know ahead of time what you will be importing into the project. I am looking for
    Video
    video compression
    audio compression
    frame size
    frame rate
    interlaced or progressive
    pixel aspect ratio
    If you do not know, we could try to get that type of information from knowing the brand/model/settings for the camera that recorded the video.
    Photos
    Pixel dimensions and how many photos?
    Lots and lots of details, but eventually they all mellow into one workflow that you can customize for your projects.
    Please do not hesitate to ask questions or to ask for clarification. We can go at whatever pace you feel comfortable with.
    ATR

  • I backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    i backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    Don't you just love changes in interfaces?
    I found the answer to my question.
    When you attach a device (iPhone, iPad) to your Mac, in iTunes 12 in appears as a tiny icon in the second "row" of the iTunes display. Click the icon and the familiar iTunes display for the device appears. From there, on the Summary screen, you can see the dates of the backups of the device (iCloud and backup to the computer). You can also use the button to backup to the computer.

  • I recently updated my macbook, i don't know if that has any effect to my recent problem, but when i try to download and save .mp3 files from the internet, like i have done in the past, it downloads but not as an mp3 file, its "blank"

    i recently updated my macbook, i don't know if that has any effect to my recent problem, but when i try to download and save .mp3 files from the internet, like i have done in the past, it downloads but not as an mp3 file, its "blank" and when i try to open it, i can't? I NEED HELP !

    Here is the download page

  • "LOGIC PRO X: Disk is too slow or System Overload.  (-10010)"  This is the message that I was having since two weeks ago with my Logic 9.  I updated two days ago to Logic X and I am still having the same problem.

    "LOGIC PRO X: Disk is too slow or System Overload.  (-10010)"  This is the message that I was having since two weeks ago with my Logic 9.  I updated two days ago to Logic X and I am still having the same problem.
    I recently formatted my computer.  In other words, I'm not using too much memory of my HD.  My Memory Ram is 8GB.

    dandotcraig wrote:
    A week before logic X comes out it starts bugging out... i deleted a bunch of stuff on my HD and cleaned up everything... didnt fix anything... then logic x came out and I though oh i better update that will fix everything... and im still having the same problems... its rediculous.
    Umm,, no offence... but what is ridiculous...  is you didn't troubleshoot the original problem but instead you assumed it was a LP9 problem so you updated to LPX which is still in its early days and is likely to be less stable than LP9... rather than more so!
    So.. Here's the thing.... 
    LP9 was working fine and then stopped working normally according to you. Therefore what changed at the time LP9 stopped working normally?
    Here are just a few ideas to think about.. for around the time this started..
    Did you update Logic Pro 9... OS X... Drivers for Midi/Audio or other connected devices?
    If you did, did you then restore from a backup you made prior to these problems occuring and what happened when you did so? (assuming you do make backups of your system?)
    Did you install any new Apps on your Mac?
    Did you add a new Hard Drive? How is it formatted?
    Did you start recording or creating music in a different way to how you used to before the problem started?
    Have you started using a different SI or FX plugin or plugins.. More or different FX for example.. Did you install a new version of a plugin?
    Is all your software legal? (Have to ask because some people install all kinds of illegal plugins and whatever else.. and have no idea how the 'cracks' work or what they might affect/mess up/conflict with in the process)
    Have you looked at the System logs to see if anything is happening out of the ordinary when you get these messages?
    Have you looked at OS X's Activity monitor to see if any app or routine is kicking in hard when you get this issue?
    Basically, you need to think about and look for what changed... because something apparently changed to suddenly cause these issues...given you said you didn't have them until a certain timeframe and some of the questions above, I hope, will get you thinking..
    ....and maybe a few of the others here will come up with other ideas and suggestions to help you...
    Good luck and let us know how you got on...

  • Can I save both DVD-R and DVD-Video files onto the same DVD?

    Can I save both DVD-R and DVD-Video files onto the same DVD?

    Hi Stan,
    I just want the user to be able to run my video clips either on a 
    computer or on a standard DVD player. It would be nice to include both 
    formats on a single disc. I am new to this and am not sure what format 
    is most widely used for standard DVD players. Thanks for your response 
    and any guidance you can give me.
    Quinn
    Quoting Stan Jones <[email protected]>:
    Stan Jones http://forums.adobe.com/people/Stan+Jones created the discussion
    "Re: Can I save both DVD-R and DVD-Video files onto the same DVD?"
    To view the discussion, visit: 
    http://forums.adobe.com/message/4996961#4996961

  • I have a new computer and I want to install Itunes and move my files from my old computer to my new one. How do I do that?

    I want to install ITunes on my new computer and move my files from my old computer to my new one. How do I do that?

    See this migrate iTunes library post for background on moving your library across properly.
    tt2

  • I have a created a directory structure ias\ias-samples\myapps\src\docroot.In docroot folder i have a single jsp.i created a war file having that jsp,and ear file having the war file

    I deployed the ear file.Now i try calling http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?

    Hi,
    This is right provided you have installed the webserver & app server
    on the same machine and the port number for the web server is 80 by
    default.
    Regards
    Raj
    Arif Khan wrote:
    I have a created a directory structure
    ias\ias-samples\myapps\src\docroot.In docroot folder i have a single
    jsp.i created a war file having that jsp,and ear file having the war
    file
    I deployed the ear file.Now i try calling
    http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I

    I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I try to launch it, I get a screen headed Photoshop CS5 Extended Trial.  It asks for the serial number and says that my trial has expired.  It rejects the serial number from the Adobe case saying "This Serial Number is not valid for this product".  It thinks that I still have the expired Trial Version installed.  How do I convince it (the program) that the Trial Version is long gone and the currently installed product was installed with a valid and accepted serial number????

    Let me know how it goes. Go into your Adobe account and register your serial number asap.
    https://www.adobe.com/account/my-products-services.html
    That way, should you lose it or you need support, it is on record that it's yours and you can fetch your s/n it from anywhere.
    There are too may sad stories here, where people forgot and the box is buried or lost.
    Gene

  • Hi. I have Lightroom 4 installed. I cannot download my CR2 files from the Canon 5D Mark III camera. I have downloaded Lightroom 5 thinking it was an update but it appears I have to pay for the program. Any ideas how I can get lightroom 4 to accept my CR2

    I have Lightroom 4 installed. I cannot download my CR2 files from the Canon 5D Mark III camera. I have downloaded Lightroom 5 thinking it was an update but it appears I have to pay for the program. Any ideas how I can get lightroom 4 to accept my CR2 files ?

    The Canon 5D Mk 111 was supported from LR 4.1, see the link below. Just update LR to the latest version. See link below
    Camera Raw plug-in | Supported cameras
    Adobe - Lightroom : For Windows
    Adobe - Lightroom : For Macintosh

  • I am getting a message that sys startup disk is almost full. I cleaned all my old emails out, archived old ones i needed and erased most files on the computer. I restarted but I'm still getting the message

    I am getting a message that sys startup disk is almost full. I cleaned all my old emails out, archived old ones i needed and erased most files on the computer. I restarted but I'm still getting the message

    Reindex Spotlight again.
    http://support.apple.com/en-us/HT201716
    Do not concern yourself about the backups.  They will be deleted automatically if space is needed for other data:
    http://support.apple.com/en-us/HT202301
    Ciao.

  • How to restore my icloud backup and where can I find the setup assisant in my new ipad

    Dear Sir
    Can you help my on how to restore my icloud backup and where can I find the setup assisant in my new ipad?
    Thanks and Regards,
    Clare

    iPhone User Guide (For iOS 6.1 Software)

  • Can I import and open raw files on the new photo app?

    Hi,
    Can I import and open raw files on the new photos app on my ipad?  Does it convert it to jpeg automatically when you want to share them?
    Thanks.

    Clem is telling you to click on the View menu, move the pointer down to the item "Metadata," & from its choices make sure "Show Titles" is selected. Do this, then make sure you are in a view in the main window that shows one or more videos (or whatever) that you want to title. Click once on one of them, & if the separate Info window is not open, open that (on the Windows menu or command + i as a keyboard shortcut). In the Info window the top line will be "Add a Title."
    Click once on that & type your title.
    This works for any item, video or photo.

  • I have a fairly elderly I Mac 7.1 (2.47 Ghz Intel Core Duo) operating OSX v 10.9.5. At the core level I find two Library folders, one within the System Folder and one by itself with the other core level folders - mostly same content. Is this right?

    iMac 7.1 (2.47 Ghz Intel Core Duo w/2GB memory) operating OSX v 10.9.5. At the core level I find two Library folders, one within the System Folder and one by itself with the other core level folders - mostly same content. Is this right or do I have a duplication problem?
    The system is slow.

Maybe you are looking for

  • Mail unexpectedly quits when viewing a message

    Hi, I have 5 e-mail accounts set up - 3 gmail using pop forwarding and 2 other pop accounts. When I load Mail, it can fetch mail from all accounts without a problem. However, double clicking to view any message, from any of the accounts, will crash M

  • Can emails be  password protected?

    Is it possible to password protect emails within Mail so that a password is required to open all mail?

  • Contact sheet in Bridge CC

    How do I make contact sheet in Bridge CC? Cant find it anymore....hmmm

  • How do i get output module on bridge

    so I need to make a contact sheet .. and i have very specific criterias that Photoshop Contact 2 can't do .. but I dont have the output module on my adobe bridge and i can't seem to properly download it 

  • Welogic apache plug-in in HP-UX11i

    I am running Apache 1.3.19 on a HP-UX11.11 with Weblogic 6.1. I get this warning when starting apache: [Fri Jan 25 12:52:10 2002] [warn] Loaded DSO libexec/mod_wl.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it