Author Topic: help writing a short code  (Read 1625 times)

dadopic

  • Newbie
  • *
  • Posts: 2
help writing a short code
« on: February 24, 2014, 10:18:38 AM »
Hello everyone,
I am on a Mac platform, and I use Aperture and Lightroom and Photoshop CS4 to edit and view my pictures,
I had a strange situation happening for the first time , all bunch of photos in my computer somehow got corrupted and now the camera model number is wrong so Lightroom  give them a strange set of colors and they look terrible, sam thing happen with otehr programs but not in Aperture, in Aperture they look OK.
the real camera model is an Olympus E-P2 but  the exif says E-30 instead, I need to overwrite this info.
Now if I could somehow manage to reset the rigth model number to the exif of those images I think I would be able to solve this problem.
unfortunately I have no clue on how to write or do anything with Terminal.
A DPreview user gave me this code to write in ExifTool but somehow it give s me errors. maybe is the syntax I am using to write it or some spelling, could you please be so kind to help a newbie like me?
my images are found in this path on my external hard disk:
Tera3 > Aperture Masters > Reinassance 2
and this is the code line I write in Terminal to re write the camera model  that they gave me in the forum:
exiftool -m -model='E-P2' -ext ORF [Tera3/Aperture Masters/Reinassance 2]
When I type this in terminal window nothing happens.
Please help.
thanks a lot
Dadopic

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16724
    • ExifTool Home Page
Re: help writing a short code
« Reply #1 on: February 24, 2014, 10:30:40 AM »
Your command looks good, all except for your directory specification.  Drag and drop the folder onto the Terminal window instead of typing the directory name.

But what do you mean "nothing happens"?  It must give some sort of message after you run the command in Terminal (after pressing RETURN).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

dadopic

  • Newbie
  • *
  • Posts: 2
Re: help writing a short code
« Reply #2 on: February 24, 2014, 10:58:44 AM »
thanks for the prompt reply, you were right dragging and dropping  worked!
I meant that the files were not changed, yes, it did give me an error message, saying that not such directory found or something like that.
My syntax was wrong, now it didwork, by draggin and dropping the folder. thanks.
Strange thing is that in Lightroom the model is still wrong but the image now look ok. I dont  really care what the exif says about the camera model, but is still wrong, but the important thing is the way the image now look. thanks a lot!