Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Date Created Script Wanted Please

New Here ,
Apr 14, 2006 Apr 14, 2006
TOPICS
Scripting
3.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 14, 2006 Apr 14, 2006
I would like a script?? to open a folder of Nikon RAW images in Bridge 1.0.3 then
extract the "date created" from the Metadata, File properties, which shows the date created to be dd/mm/yyy
The File, File info, section shows the date to be yyyy-mm-dd, why is this?

Once the date is extracted I would like the script to write this date only in the format dd/mm/yyyy to File, File Info, Origen box, Date Created box.

Complete this operation for all the images in the current folder, then close Bridge.

I am quite happy to pay a fee for this script if it's possible.

Windows XP pro SP2, Photoshop CS2, Bridge 1.0.3

Regards
michael
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 16, 2006 Apr 16, 2006
I have a script that does this. Let's talk.

Tom
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 17, 2006 Apr 17, 2006
Hi Tom,

I have just noticed that when you open a folder of images in bridge, the 3 lines of metadata under each thumbnail, one of them displays the date created in the format i require dd/mm/yyy, please note I only want the date moved, not the time.

As this is possible it has started me thinking that I could expand this operation to speed up my workflow.
I know nothing about scripts, are they editable with a text editor?
the reason I am asking is as follows.

When I put a CF card in my USB Sanmdisk reader, I would like the images to be read, then saved to 3 locations.
1. A desktop folder
2. A folder on my D drive
3. A folder on my E drive

After saving, open the desktop folder, read the images in Bridge, then go about changing the Date format as I have already described.

Sounds OK if it can be done.

If I can edit the saved locations, I could change them to save to other areas of my system.

If you wish to contact me off line, email miguels@freeuk.com

Michael
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 17, 2006 Apr 17, 2006
Michael, I think I can offer you solutions for all of these things. As to the file creation date, I am building that capability into the next version of Rank and File. You can purchase it from www.DAMUseful.com for $20. Starting with version 1.15, the file creation date will appear in the "origin" panel as you want it. There should be a release of the new version within the next few days.

As to reading in the images, the "Import from Camera" script may do what you want, and I think there is a new "Image Ingester" script available that may work even better. Look for them on one of these forums (or Google search).

Yes, scripts are editable with a text editor.

You can contact me through the links at DAMUseful.com.

Tom
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 21, 2006 Apr 21, 2006
Guys,<br /><br />I'm just getting started in Bridge scripting but I just whipped this up as this is a tool I needed myself. Basically, it just extracts the date substring from the DateTimeDigitized EXIF field, and then populates the IPTC DateCreated field with that value. I'm sure there are a ton of potential errors I'm not trapping for, incouding obviously if the DateTimeDigitized is not available, if you have a folder selected, or the wrong file type selected, but it works fine for me on all of my Canon CR2 and CRW files.<br /><br />Anyway, feedback on this script would be appreciated, but all are welcome to use it as-is or in modified form:<br /><br />// ===================================================================<br />// Author: Roger Howard <rogerhoward@mac.com><br />// ------------------------------------------------------------------<br />// This script adds a command to the Tools menu in Adobe Bridge<br />// called "Sync IPTC Date" which extracts the date string from<br />// EXIF:DateTimeDigitized and populates the IPTC DateCreated<br />// field<br />// ===================================================================<br /><br />#target "bridge"<br /><br />syncDateCommand = new MenuElement( "command", "Sync IPTC Date", "at the end of Tools",<br />"myAlert" );<br /><br />syncDateCommand.onSelect = function () { <br />var sels = app.document.selections<br /><br />for (i = 0; i < sels.length; i++){<br /> var md = sels.metadata;<br /> md.namespace = "http://ns.adobe.com/exif/1.0/";<br /> var dt = md.DateTimeDigitized;<br /> var shortdate = dt.substr(0, dt.indexOf(','))<br /> md.namespace = "http://ns.adobe.com/photoshop/1.0/";<br /> md.DateCreated = shortdate;<br />}<br />}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2006 Apr 29, 2006
Hi Tom,

Is the new version of Rank and File you talked about available yet that will put the date in the origen panel, I've not managed to locate it on the website you mentioned.

Michael
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 22, 2007 Dec 22, 2007
Does anybody have a script that will copy the Date Created field (MM/DD YYYY only without time)and copy it to the IPTC (IIM, legacy) Date Subject Created field?

I know nothing about scripting or how to write them.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 03, 2008 Jan 03, 2008
Hi Rich,
I remade Roger's script a little:
//------------------------------------------------------------
#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;
}
}

//------------------------------------------------------------
Is that what you want? Let me know.
Kasyan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 09, 2008 Apr 09, 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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 11, 2008 Apr 11, 2008
Hi Rich,

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

Kasyan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 14, 2008 Apr 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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 16, 2008 Apr 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 16, 2008 Apr 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 21, 2008 Apr 21, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 23, 2008 Apr 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 23, 2008 Apr 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 ?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2010 Dec 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 20, 2010 Dec 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;
      }
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2010 Dec 20, 2010

It is almost there, as Bridge (CS4, mac, here) seems to correct the date in European way, unfortunately I need to display it like this: (even if it is the most illogical way to display it) MM/DD/YYYY

I will try tomorrow at work on CS3, pc, to see if it matches the way it is displayed on the system.

I don't know how we can thank you enough, Paul!

You are so generous with your time and knowledge...

I think that Adobe should hire you and offer a wealth of script on the goodies folder of each application.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 20, 2010 Dec 20, 2010

I don't think you will be able to put the date in that format, well it won't let me with any of my versions. Have you tried manualy entering a date? It should give you a HelpTip when hovering over the field stating what format it should be.

All the best and MERRY CHRISTMAS!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2010 Dec 21, 2010

Thank you Paul, I wish you and yours a very happy holidays season!

When I enter the data manually, it does keep the order I put it in, and the four digits for the date...

If at least it can copy the date in the correct order, that's one possible mistake I can take off the metadata process.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 22, 2010 Dec 22, 2010
LATEST

Paul, I checked on a CS3 Windows with the OS being set to US date format, and your edited script works flawlessly!

Thanks again! (Yes, again, as sometimes you provide a script, and the OP does not even acknowledge it. )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 23, 2008 Apr 23, 2008
Rich, new version is ready:
http://www.businessweekly.h.com.ua/rich.html

Kasyan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 23, 2008 Apr 23, 2008
perfect.... thank you.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines