Skip to main content
This topic has been closed for replies.

18 replies

Participating Frequently
April 23, 2008
perfect.... thank you.
Kasyan Servetsky
Legend
April 23, 2008
Rich, new version is ready:
http://www.businessweekly.h.com.ua/rich.html

Kasyan
Participating Frequently
April 23, 2008
Kasyan, thanks again for your help on this script. It is running well for me. One thinking in it I would like to change if possible is the date format. i notice it is supposed to use the short date format in the new field. Currently it formats the date as 04/23 2008. Is there a way to make it add a second slash between the day and the year so that it looks like this, 04/23/2008 ?
PECourtejoie
Community Expert
Community Expert
December 20, 2010

Reviving this old thread...

I was able to create the script provided here by pasting it in the extendscript toolkit.

But as the other user, I did not manage to get a slash between the day and year, even though I put it in place of the space in the quotes, like in the following:

#target "bridge"

syncDateCommand = new MenuElement( "command", "Sync IPTC Date", "at the end of Tools",

"myAlert" );

syncDateCommand.onSelect = function () {

var sels = app.document.selections

   for (i = 0; i < sels.length; i++){

      var md = sels.metadata; md.namespace = "http://ns.adobe.com/exif/1.0/";

      var dt = md.DateTimeDigitized;

      var shortdate = dt.substr(5, 2) + "/" + dt.substr(8, 2) + "/" + dt.substr(0, 4);

      md.namespace = "http://ns.adobe.com/photoshop/1.0/";

      md.DateCreated = shortdate;

      }

}

What did I do wrong?

Paul Riggott
Inspiring
December 20, 2010

Please try this now...


#target "bridge"
syncDateCommand = new MenuElement( "command", "Sync IPTC Date", "at the end of Tools","myAlert" );
syncDateCommand.onSelect = function () {
var sels = app.document.selections;
   for (var i in sels){
      var md = sels.metadata;
      md.namespace = "http://ns.adobe.com/exif/1.0/";
      var dt = md.DateTimeDigitized;
      var shortdate = dt.substr(0, 4) + "-" + dt.substr(5, 2)  + "-" + dt.substr(8, 2);
      md.namespace = "http://ns.adobe.com/photoshop/1.0/";
      md.DateCreated = shortdate;
      }
}

Kasyan Servetsky
Legend
April 23, 2008
Hi Lynnea,

What happens when you run the script? Do you get any error message?
Did you put the script into the “Startup Scripts” folder? If so, do you see “Sync IPTC Date” menu at the end of the Tools menu after restarting Bridge?

Kasyan
Participant
April 22, 2008
I have a Windowd Ultimate 64-bit system. I have copied the script from the web site and it doesn't work.

Can someone help me?

Lynnea
Participating Frequently
April 16, 2008
I think your first reason was it. I copied the script from the link you provided and it seems to work.

I don't think it was a problem with my files not having the appropriate metadata info. The script will not even load into bridge.I get that error message I posted for you as I am opening Bridge.

Thanks for your help.
Kasyan Servetsky
Legend
April 16, 2008
Rich,
I see two possible reasons for the script not to work:
1st the script was corrupted during coping/pasting. Download a working copy from this web-page:
http://www.businessweekly.h.com.ua/rich.html

2nd your files dont contain appropriate metadata information. Select a file in Bridge, then choose File > File Info > Advanced, expand EXIF Properties and check if it has exif:DateTimeDigitized property.
See screenshot on the abovementioned web-page.

Kasyan

askoldich@yahoo.com
kasyan@business.ua
Participating Frequently
April 14, 2008
Oops, I do have CS3 sorry, I was thinking that it might have been written for CS2 as I was writing you.

Here is the exact error message I get.

An error occurred while running a startup script named 'syncIPTCdate'. It may not be compatible with this version of Bridge; you can check for available updates by selecting the Updates command from the help menu. The script has been disabled, but can be re-enabled in the 'Startup Scripts' section of Preferences.

Error in C:\Documents and Settings\Rich\Application Data\Adobe\Bridge CS3\Startup Scripts\syncIPTCdate.jsx
Line 11: "myAlert"); syncDateCommand.onSelect = function(){
Expected: ;

Got any ideas?
Kasyan Servetsky
Legend
April 11, 2008
Hi Rich,

Unfortunately, I havent got your message. This script is written for the Bridge CS3.

Kasyan
Participating Frequently
April 10, 2008
Kasyan, I replied to you directly a long time ago but never heard back. I am re-addressing this script now and I still can't get it to work. I have Bridge CS2 and when I launch Bridge I get an error message that tells me the script is not compatible with this version of bridge and disables it. What needs to be changed?