Renaming and numbers

AfterShot Pro General Questions & Getting Started Forum
Post Reply
pgman
Posts: 79
Joined: Sun Feb 12, 2012 8:06 pm
operating_system: Linux
System_Drive: N/A

Renaming and numbers

Post by pgman »

Hi,

I have files: img_1234.cr2, img_1235.cr2 and so on. I'd like to select a bunch of them and have them renamed as:

img_1234.cr2 becomes granville-island-20121027-1234.cr2
img_1235.cr2 becomes granville-island-20121027-1235.cr2
img_1236.cr2 becomes granville-island-20121027-1236.cr2

I'd like to only type "granville-island-20121027-" but I want to keep the 1234, 1235, 1236...

Is there a way?

Thank you in advance
sauron
Posts: 29
Joined: Thu Mar 29, 2012 2:05 am
operating_system: Linux
System_Drive: X
32bit or 64bit: 64 Bit
motherboard: Asus P5E WS Pro
processor: Intel Core2 Duo E6850
ram: 4GB
Video Card: ATI Radeon X850XT
sound_card: on board
Hard_Drive_Capacity: 5Tb
Monitor/Display Make & Model: NEC Multisync 2190UXi

Re: Renaming and numbers

Post by sauron »

Code: Select all

exiftool '-filename<granville-island_${DateTimeOriginal}_${ImageNumber}.%e' -d "%Y%m%d" .
Should do what you want... That means you won't need to type anything different - the same command will work for pretty much anything. It relies on your camera placing the number in the "ImageNumber" exif tag - some cameras use "FileNumber" instead, so you may need to vary that bit.
ogrizzo
Posts: 60
Joined: Fri Jan 13, 2012 7:45 pm
operating_system: Mac
System_Drive: Q
32bit or 64bit: 64 Bit
processor: 2.8 Ghz Intel Core i7
ram: 8 GB
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: Integrated Apple iMac 27"

Re: Renaming and numbers

Post by ogrizzo »

pgman wrote:Hi,

I have files: img_1234.cr2, img_1235.cr2 and so on. I'd like to select a bunch of them and have them renamed as:

img_1234.cr2 becomes granville-island-20121027-1234.cr2
img_1235.cr2 becomes granville-island-20121027-1235.cr2
img_1236.cr2 becomes granville-island-20121027-1236.cr2

I'd like to only type "granville-island-20121027-" but I want to keep the 1234, 1235, 1236...

Is there a way?

Thank you in advance
Yes, it is possible, and you don't even need to type the date: http://product.corel.com/help/AfterShot ... index.html

[jobname]-[date]-[onum].[oext] should do the trick.

Of course, always back up your files before making any experiment and thoroughly check everything is fine before going on.

Ottavio
afx
Posts: 1675
Joined: Thu Jan 12, 2012 1:38 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
Video Card: FirePro 4900
Monitor/Display Make & Model: NEC PA301w, ColorMunki
Location: München
Contact:

Re: Renaming and numbers

Post by afx »

ogrizzo wrote:
img_1234.cr2 becomes granville-island-20121027-1234.cr2
[jobname]-[date]-[onum].[oext] should do the trick.
But if the OP really wants the date without the dashes, then "[year][month][day]" is needed instead of [date].
I personally think [10dateiso] is safer than [date]. If I remember correctly [date] depends on the settings in the preferences...

cheers
afx
Send bugs to the Monkey // AfterShot Kickstart Guide // sRGB clipping sucks and Adobe RGB is just as bad
Bibble since 2005 // W7 64 on quad Phenom // Ubuntu 14.4 on quad i7 and dualcore AMD // Images
pgman
Posts: 79
Joined: Sun Feb 12, 2012 8:06 pm
operating_system: Linux
System_Drive: N/A

Re: Renaming and numbers

Post by pgman »

Perfect! Thank you
Post Reply