I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-12-16 13:29:49-08 by pedroparamo
keywords and Photoshop image info
How cam I get ExifTool to set my keywords to 'keywords' instead of '"keywords"' (without quotes) in the Photoshop Image info? To set the keywords I'm using applescript and Exiftool in the following way: I use applescript to have the user set keywords say "green, blue" as a list called origKeywords. I set the origKeywords to "'" & every item of origKeywords & "," & "'" (using applescript). Then I use "set thisFilePath to quoted form of (POSIX path of thisFile)" (applescript) and finally Exiftool set cmd to "exiftool -keywords=" & origKeywords & " " & thisFilePath & "" --display dialog cmd set theResult to do shell script cmd It works and my keywords are set to green, blue, when I view them using ExifTool. But when I look at the keywords in the Photoshop Image Info they are "green, blue," with quotes. How can I get rid of the quotes? I'm using a Digital Asset Management application which will NOT read the keywords if they have quotes around them. Thanks. Pedro
Direct Responses: 11960 | Write a response
Posted on 2009-12-16 14:48:07-08 by exiftool in response to 11959
Re: keywords and Photoshop image info
Hi Pedro,

It looks to me as if the extra quotes are coming from your applescript, so I can't help much with this. But another problem is that you are writing all of the keywords together instead of separately. The exiftool command line should look like this to assign keywords properly:

exiftool -keywords=green -keywords=blue FILE

which should be easier from the point of view of quotes since they aren't necessary on the command line when the values don't contain spaces or other special characters.

One more point is that you should probably write XMP:Subject instead of IPTC:Keywords if you want compatibility with the Adobe products.

- Phil
Direct Responses: 11961 | Write a response
Posted on 2009-12-16 14:52:19-08 by exiftool in response to 11960
Re: keywords and Photoshop image info
Also, you can read FAQ number 17 for some information on this subject.

- Phil
Direct Responses: Write a response