Skip to main content
Known Participant
October 31, 2008
Question

Can I automate the writing of XMP metadata into JPEG and TIFF files?

  • October 31, 2008
  • 91 replies
  • 11727 views
I have written an ASP.NET 3.5 website application on behalf of an annual international photographic competition. Entrants will be uploading digital photos in either JPEG or TIFF format. Ideally, I would write entrant identity and image title information into the XMP metadata for each image immediately after upload - but so far, I have failed to find any way to do this in ASP.NET.

Thousands of images are involved, so I need to find a way to automate the metadata insertion, perhaps with some sort of script that uses a text file (extracted from the SQL Server database on my website) as the source of the metadata for a batch of images. Is this the sort of task that can be done by writing a script for Bridge CS3? Are there any scripts already in existence that I could use? I am a total beginner in this area.

I use a Win XP PC, though I have a colleague who, I think, has CS3 on his Mac (running under the Leopard OS), so scripts for either platform might be usable.

David
This topic has been closed for replies.

91 replies

Known Participant
January 10, 2009
Hi Paul,
If you are still watching this thread, I would appreciate it if you could indicate which of the many flavours of your script posted above would work with CS4. I have just upgraded and assume that your final CS2 version (as posted on ps-scripts.com) would no longer be appropriate.

Regards,
David
Known Participant
November 12, 2008
I understood that Extendscript was simply Adobe's flavour of Javascript, and there is certainly no shortage of Javascript books (Amazon lists 280 of them!). Is Extendscript actually more different from Javascript than I have been assuming?

Thanks for the info about PS-Scripts.com, which I hadn't heard of until I used it for your script download.
Known Participant
November 12, 2008
David_C_Anderson@adobeforums.com wrote:
> I understood that Extendscript was simply Adobe's flavour of Javascript, and there is certainly no shortage of Javascript books (Amazon lists 280 of them!). Is Extendscript actually more different from Javascript than I have been assuming?
>

Get JavaScript: The Definitive Guide by Flanagan. I always have a copy with in
arm's reach when I work.

There are always differences in JS implementations. Built in XML/XPath support
varies from vendor to vendor, for instance, but the Flanagan book covers the
core language very well. Between that and the JavaScript Tools Guide (that comes
with PS, Bridge, etc... and covers Adobe's ESTK extensions) you'll have just
about all the reference material that is available.

-X
Paul Riggott
Inspiring
November 12, 2008
Great, it's nice when it eventually works!

As far as the book goes there isn't one. The best place is PS-Scripts.com the amount of information you can find there is famtastic also the moderators are wonderful and really do know thier stuff!
Known Participant
November 12, 2008
Paul,
As far as I can see, this latest version works perfectly! Thanks yet again for all your hard work. It really is appreciated.

Next year, I plan to buy a big fat textbook on Javascript. Any recommendations?

David
Paul Riggott
Inspiring
November 12, 2008
Lets hope I have got it right this time!
It should now ignore & in the filenames but change them in the title and author fields.
So the forum doesn't spoil the code I have uploaded it to PS-Scripts and you can download it there.
http://ps-scripts.com/bb/viewtopic.php?p=9914#9914
Paul Riggott
Inspiring
November 12, 2008
Oh dear, back to the drawing board.I will have a go later on.
Known Participant
November 12, 2008
I should also mention that the Die Nieuwe Kerk image is failing because of the embedded comma, as previously discussed, so that error can be ignored.
Known Participant
November 12, 2008
Ah, now I see why you wrote it as 'a mp;'. In the above error log, please read every ampersand as being &a mp;

Needless to say, these files DO exist (with a real ampersand in the filenames).
Known Participant
November 12, 2008
Even after changing REPLACEME as you suggested, I get a very similar error log:

These documents have not been updated
=================================================================
=================================================================
~/My Documents/Visual Studio 2008/WebSites/SIEWebsite/EntryImages/C3-1261 Moray & Max.jpg ****Does Not Exist****
=================================================================
=================================================================
~/My Documents/Visual Studio 2008/WebSites/SIEWebsite/EntryImages/C4-1261 Lola & the girls.jpg ****Does Not Exist****
=================================================================
/c/Program Files/Adobe/Adobe Bridge/"C:/Documents and Settings/Administrator/My Documents/Visual Studio 2008/WebSites/SIEWebsite/EntryImages/C4-1261 Die Nieuwe Kerk ****Does Not Exist****
=================================================================
~/My Documents/Visual Studio 2008/WebSites/SIEWebsite/EntryImages/C1-1261 Moray & Max.jpg ****Does Not Exist****
=================================================================
Known Participant
November 12, 2008
Oops! Just read your post properly. Will try again!