Posted on 2010-02-08 01:34:20.155652-08 by cen
UserDefinedURL and importing file content
I never used exiftool before . I have created a screen shot of a map . I would like to tag the jpg file with the URL link that created it. This is quite a long URL . I first tried to include a file with the URL information in it, I don't seem to select the correct command syntax. Any calcification appreciated. Where MapLink is a file with the URl information in it . and Directions.jpg is the image file Should it be exiftool -Comment <= MapLink Directions.jpg exiftool -Comment<=MapLink Directions.jpg In general I don't seem to be able to write the UserDefinedURL field with anything . I can get the word MapLink in the comment field but not the file contents with Quotes or not. the -tagsfromfile . What should the file look like ? Should that have the tag name in it and the tag ?
Direct Responses: 12340 | Write a response
Posted on 2010-02-08 04:58:19.647341-08 by exiftool in response to 12339
Re: UserDefinedURL and importing file content
The problem is that you need to put quotes around the argument to prevent the shell from interpreting the "<" symbol as a redirection:

exiftool "-Comment<=MapLink" Directions.jpg

This will work if all of the files are in the current directory, and the "MapLink" file contains plain text.

- Phil
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.