Setting metadata in Bridge

Can someone give some advice on setting metadata values within Bridge using javascript? The examples all seem to deal with Text types like the following:
md = tn.metadata;
md.namespace = "http://ns.adobe.com/photoshop/1.0/";
md.Author = "Jane Smith";
But when trying to set other types, like the "caption" (which gets mapped to "http://purl.org/dc/elements/1.1/description"), the script will throw an exception.
md.namespace = "http://purl.org/dc/elements/1.1/";
md.description = "New Caption"
-- Uncaught exception description --
I'm thinking this is probably because dc:description is defined as a "Lang Alt" type in the xmp specification which in turn is defined as:
"Language alternatives are a form of rdf:Alt array, referred to as the Lang Alt type. In this
example, each array item is a simple text value; the value has a property qualifier, specified as
the property xml:lang, giving the language of that value. "
But no matter how I try accessing this object (there is no "reflect" available on metadata objects), I can't seem to change the string value.
Any ideas would be much appreciated.
On another topic, would it be possible for someone to post the Export Metadata Script here in this forum for those of us who don't have access to the partners site? Here's is my working go at an export metadata script for Bridge that simply prints to the debugger. It's basically a quick hack of some of the routines in AdobeLibrary3.jsx which it also needs in order to run.
Thanks,
Bruce
#target bridge
if( BridgeTalk.appName == "bridge" ) {
DebugMeta = {};
DebugMeta.execute = function() {
// print out the metadata for the selected thumbnails
var sels = app.document.selections;
for (var i = 0; i < sels.length; i++) {
var t = sels[i];
var m = t.synchronousMetadata;
// loop through all possible elements (properties)
var elements = MdNs.elements.keyList;
for (var j = 0; j < elements.length; j++) {
var el = MdNs.elements.get(elements[j]);
if (el.scriptAccessible) {
try {
// print the value (and the mapping if it's redirected)
var val = el.getValue(m);
if ( isValidReference( val )
&& ( val.length > 0 )
&& ( trim( val ) != null ) ) {
$.write(el.handle + " = " + val);
if (el.redirected) {
$.writeln(" (" + el.redirectElement.ns.ns + el.redirectElement.property + ")");
} else {
$.writeln();
} catch (e) {
// setup menu
var myMenu = createMenu( "command", "DebugMeta",
"-at the end of Tools-", "tools/DebugMeta", DebugMeta.execute);
var contextMenu = createMenu ( "command", "DebugMeta",
"-at the end of Thumbnail-", "thumbnail/DebugMeta", DebugMeta.execute);

Bruce,
I think most people here agree with your 2c, but there just wasn't time to do everything.
But one of the great things about Bridge Scripting is, if you don't like it, change it, or create something that will do what you need. If you don't like the way collections work, create your own browse scheme, and do it your way.
The MdNs object has a definition for an object, MdManager. The MdManager constructor takes a thumbnail object. It's "grab" method creates 2 enumerations. MdManager.enumeration contains a KeyedArrayList (object defined in lib3 just above MdNs) of all the metadata elements that actually have values. MdManager.noValue is a KeyedArrayList of metadata elements that do not have values. Now, the standard MdManager only provides checks against the standard XMP schemas. But if you want to extend that, just add a MdNs.MetadataNamespace and the MdNs.MdElement 's necessary to define the non-standard data you want to enumerate.
So while you can't use the metadata object to traverse the metadata structure, there are always other ways.
The concept of modifying the scripting features of Bridge didn't stop there. In Lib1, we extended the File object prototype in Bridge:
File.isFileType() - give it a comma delimited list of extensions, returns true if file matches any of the extensions
File.isPhotoshop() is the file one of "PSD,PDD,8BPS,JPEG,JPG,GIF,"
File.isPageMaker()
File.isInDesign()
File.isPDF()
File.isIllustrator()
File.isOpenableIllustrator()
File.isOpenablePhotoshop()
File.isScript()
File.getExtension( noDecode ) - gets you the extension of the file - noDecode is a boolean - if true it will not perform a decodeURI on the result. Default is false
File.getNameWithoutExtension( noDecode ) - gets you the name of the file without the extension. noDecode is a boolean - if true it will not perform a decodeURI on the result. Default is false
File.getFileWithExtension( ext ) - creates a new File object with the original file name and the provided extension. You provide only the extension ( "jpg" ), the function adds the dot (".jpg").
We also extended the Thumbnail object prototype:
Thumbnail.isFileType( ext ) - same as File.isFileType but for Thumbnails.
Then there's handy functions like:
ensureUniqueFile( file ) - pass it a file object. If the file object exists, it will return a new File object with a "(integer)" added to the filename. So if My Documents/foo.jpg exists, and you called:
ensureUniqueFile( new File( "~/My Documents/foo.jpg ) );
the result would be a file object: My Documents/foo(1).jpg
These next two are defined in lib3:
ensureUniqueFolder( folder ) - does the same thing for a folder
And one of my personal favorites:
verifyFolder( folder, silent ) - if you give it a Folder, it will verify that the folder actually exists, creating the entire path to the folder if necessary. "silent" is a boolean. If true - it will just make the folder (and path to the folder). If false (the default) it will flip up a "Folder does not exist - Do you want to create it" alert to the user, to give them the choice. IF the user opts not to create the folder, it returns undefined.
If My Documents is empty (no files/folders), and you want to write a file into My Documents/1/2/3/My Folder/foo.txt
var f = new File( "~/My Documents/1/2/3/My Folder/foo.txt" );
var folder = verifyFolder( f.parent, true );
f.open( "w" );
f.write( "Four score and seven years ago..." );
f.close();
The result of that ditty will be the successful writing of the file, and the creation of the entire path to the file. It will only create the path elements that do not exist.
Bob
Adobe Workflow Scripting

Similar Messages

  • Exporting Metadata from bridge to excel or other like program.

    Is there a way to export just the metadata, using Bridge, associated with an image file into excel, access, or some other like program?
    I would like to perform some kind of batch processing, so as to make the process quick. But I would be open to any other work around scenario.
    I am working with Windows XP Professional and Adobe CS2.
    Any help would be appreciated!

    I've followed the instructions and I am having problems getting data to the folder I set up on my desktop.
    I have tried selecting several images and then just one image to export the slected metadata to said folder. By right clicking the images and chosing the script you sent me and then followed your instructions for when your CSV Data Collector Window pops up.
    For the Please Slect Folder option i browsed to the folder where I want the info to go to.
    ~/Desktop/Kens Files/KensTest
    For the Please Enter CSV Filename, I copied the title of the image name "2005-agropyron002.jpg"
    Then I chose the type of data that I want to import such as:
    FileName
    DocWidth
    DocHigth...
    I then go to that folder and there is no info. there.
    Please, if you can, give me more detailed instruction.
    Thanks,
    Bill

  • Get/Set metadata set by XMP Custom Panels in InDesign CS

    I am using XMP Custom Panels to set metadata unique to my application in InDesign CS. That works well. I would like to be able to retrieve or modify those properties with a script.
    Can you identify the object that would contain the metadata set by XMP Custom Panels and the properties or methods I would use to access them?

    Thanks for the confirmation. This is a serious and surprising limitation. And if Bridge isn't going to handle complex types properly, it should at least not go ahead and stick invalid data in the field, as it does now.
    I guess the only way to update complex types is to use a metadata template, or another tool.

  • Viewing Microsoft Office Metadata in Bridge

    Is is possible to view metadata in Bridge for non-Adobe files? We have project folders that often contain non-Adobe documents as well as Adobe documents. The file info from these non-Adobe documents is not visible nor searchable in Bridge. Am I missing something or is this just the way it is?

    There is a library for working with excel files:
    http://code.google.com/p/as3xls/
    But I'm not aware of anything for Word.
    Converting everything to PDF on the server may be a more realistic approach.

  • Replace Metadata in Bridge CS4 appears to truncate 5.9GB .PSB File; Does CS6 do this too?

    I am running Photoshop CS4 on a MacBook Pro with Mac OS X 10.6.8, and ran into a problem with Bridge. I would like to know if this problem occurs with Photoshop CS6. Here's the sequence of events:
    1.  I have a 5.9GB .psb file created with PS; it loads into PS cleanly - no errors.
    2.  In Bridge, I create a metadata template, and apply it to my .psb file using "Replace Metadata".
    3.  The "Replace Metadata" operation completes quite quickly, no error messages
    4.  Immediately after the "replace Metadata" operation Bridge reports that my 5.9GB file is now a 1.6GB file - 4.3GB smaller!!
    5.  Bridge displays the updated metadata, no visible indication anything is wrong.
    6.  Now the file will not open in Photoshop - the read starts, but errors out with "unexpected end of file".
    7.  I restore the 5.9GB file and can open it in Photoshop without problems.
    Update:
    This problem is not specific to the "Replace Metadata" function in the Bridge menu.  I get a similar result by updating the metadata for this file in the Metadata Panel; the resulting file is truncated, but appears to be a different size this time, and it will not open in Photoshop - same error message as before.
    This is a 34-image 36856px X 7464px panorama

    Thanks for your suggestion, appreciate your effort to help.  The link you provided seems to focus on transfer rates and performance; it does take a while to write or read this file, but I expect that.  I'm not using RAID of any flavour.  I do not expect file corruption, which is what I believe is happening (and PS is reporting).
    I have a number of large panoramas; this is the largest.  I believe the largest of the others is a bit over 3GB; I have no difficulty updating the metadata in the other panoramas through the metadata panel or with "Replace Metadata".  All of these files live on the same drive (therefore connected to the same firewire port).  They are backed up to a USB drive with Time Machine, and I've recovered the 5.9GB file from the Time Machine drive a number of times.  I can always read the recovered file with PS, and the size after recovery is always exactly the same.  When I realized that the size of my 5.9GB file changed during/because of the metadata update, I reverted to an earlier stage in the post-processing, got a 3.8GB .PSB and put a copy on DVD; the DVD copy is good, and I can easily and quickly reconstruct the 5.9GB file by applying the same actions used the first time (the 5.9GB file has three layers that are not in the 3.8GB .PSB).  I have not tried to change metadata in the 3.8GB PSB, and can't try that for the next few weeks as I'll be travelling.  The only thing I'm certain of is that updating the metadata in the 5.9GB .PSB reduces the size to 1.6GB (put text in Headline field through Metadata panel) or 1.4GB ("Replace Metadata" in Bridge Tools menu), depending on how the update is done.
    So, the 5.9GB file has survived several complete transfers (PS=>Disk, Disk=>Time Machine, multiple Time Machine=>Disk, PS=>Disk to 3.8GB after deleting layers, and Disk(3.8GB)=>DVD) with no signs of corruption.
    It's very hard to accept the idea that there's some kind of hardware problem that afflicts just one file.  The 5.9GB file is output from PS CS4, and I can read it back into PS with no problem. 
    I'll watch this forum for a few days to see if there are more answers until I have to travel.  If not, I'll figure it out another way and report a bug in CS6 if that appears to be appropriate.

  • Editing XMP metadata in Bridge for checked-out files?

    Our custom connector does not implement the WRITE_XMP_METADATA Capability because we do not want to change the XMP of a file in our DAM system without checking in a new file version.
    However, when a file is checked out through Adobe Drive, we would expect to be able to edit its XMP metadata in Bridge just like we can for local files.
    It looks like this is still not possible with Adobe Drive 3, i.e. if your connector does not implement the WRITE_XMP_METADATA Capability you cannot edit XMP for checked out files either.
    It seems weird that you can edit XMP metadata for checked out files with regular CS applications but not with Bridge. Is this something that is expected to be fixed in a future version?
    Thanks

    In our design, editing XMP data in Bridge and in regular CS applications is different, the former one will be routed to SetXMPHandler in you connector, in the latter case, CS applications take the normal file writting ways to embed XMP data in the file content.
    The purpose of this design is to offer similar user experience for normal users when they edit XMP data for AD assets and local file assets, they don't need to check-out files first.
    To address your issue, I think you can add some codes in SetXMPHandler to auto check-out files before real XMP operation, and check-in them before exiting the handler
    We will consider to make some enhancements for this part, that's, to allow editng XMP data for the checked-out files in Br, in the next release, thanks for this advice.

  • How to set resolutin in bridge??

    it has been suggested that I set my resolution to 300ppi to help reduce im work flow.
    How do i set resolution in bridge??

    You don't set the resolution in Bridge. You either set in in Camera Raw or in Photoshop.
    In Camera Raw, edit the 'workspace settings' by clicking on the underlined settings at the bottom of the window and change the appropriate settings.
    In Photoshop, change Image Size (Ctrl-Alt-I), untick Resample Image, and change the PPI value.

  • Metadata in Bridge CS3 lost after editing NEF file in Capture NX2

    Entered keywords and metadata in Bridge CS3, edited NEF file in Capture NX2 and then all metadata in Bridge got lost even if I did not edit any metadata in Capture.
    Original Bridge metadata are still saved in XMP file but Bridge does not show them nor can search or sort photos by them.
    Is it a Bridge bug or is it connected with any settings?
    Win XP, Bridge CS3 2.1.1.9, Capture NX2 2.2.0, Nikon D300
    Will appreciate any help, thanks a lot.

    First I renamed photos in Bridge - sidecar XMP files were created with the new filename already, added some keywords and metadata in Bridge. Edited photo in Capture but not changed the name again - the result was the Bridge does not show edited metadata and keywords anymore even all those info are still saved in sidecar XMP file. Capture apparently does not change XPM in any way.
    It looks like all the problems are connected with renaming files in Bridge before editing them in Capture as if Bridge cannot read XMP after Capture added its own info in NEF file.

  • Read XML function - can't get it to work correctly to set metadata

    I've been working with the Read XML function in order to set metadata on assets with no avail. I'm using the following simple XML file in a Watcher folder with a poll watcher setup every 5 seconds, that then references a Read XML Response named "Update Asset Metadata" - to read the XML file and update the asset metadata. Nothing really happens even though the FCS Log file shows that the process is taking place to "update" the asset metadata. Any advice is appreciated. Thanks!
    FILE:
    <?xml version="1.0" encoding="UTF-8"?>
    <FinalCutServer>
    <request reqId="setMd" entityId="/asset/10">
    <params>
    <mdValue fieldName="Title" dataType="string">Text Info Change</mdValue>
    </params>
    </request>
    </FinalCutServer>

    I got the answer. You must type “*.xml” (that is, asterisk-dot-xml) in the Value field of Wildcard Include Filter for it to work correctly.

  • I have jumped from 5.1 to CC. When I open a file originated in illustrator 5.1 in CC it changes the CMYK breakdown. Have tried colour setting changes in Bridge but still have differences. Help!

    I have jumped from 5.1 to CC. When I open a file originated in illustrator 5.1 in CC it changes the CMYK breakdown. Have tried colour setting changes in Bridge but still have differences. Help!

    Any warnings when opening the file?
    You might need to reset all warnings in preferences.
    Apart from that itlooks like your color management settings are set to convert into profile. This is absolutely not advisable.

  • Setting up a bridge for solaris 10

    Hi,
    I currently have a dual boot for on my desktop (Solaris 10 and WinXP). I'm currently looking for a way to get online while in solaris, my WinXP install is on a wireless network but it's almost impossible to find wireless drivers for solaris so i'm trying to use my ethernet capabilities.
    I bought a wireless print server which has a bridge feature and i'm hoping to find some information on how to setup a bridge on my solaris install.
    Any help or direction will help me a lot since I'm very new to solaris. Thank you in advanced.

    I have a similar issue but have not been able to get this solution to work.
    I have an Airport Extreme 802.11n that is set up in bridge mode and connected to a DSL modem that assigns IP addresses.
    I wish to use a remote Airport Express (late 2008) 802.11n to connect via ethernet to a PowerMac without wireless.
    In summary I desire: DSL-ethernet-AirportExtreme-wireless-AirportExpress-ethernet-PowerMac
    I have reset the Airport Express to factory defaults and then set to "Join wireless network" and checked allow Ethernet clients. The Airport Express gets an IP address but any number of Macs I have tried will not get an IP address in DHCP mode (except a self-assigned one). I have verified that the cable works: when I connect the Macs to the Airport Extreme base station, they all get an IP address. All versions of firmware are 7.4.1. I have also tried checking and unchecking "Allow this network to be extended" on the Airport Extreme.
    Please help. Thanks

  • Airport Extreme needs to be set-up in "Bridge mode" ??

    I am trying to set-up a new intel iMac to a dsl service for my elderly uncle. The dsl people said that their system was compatable with OS 10.4.7 (which is installed) but that the Airport Extreme modem will need to be set-up in "bridge-mode." Can I do that? Where can I find instructions or help with that? When I queried "bridge mode" on this site I get lots of stuff with acronyms I don't understand and stuff about routers and wireless bridges and other stuff I don't understand... I really need help!
    Flat-panel iMac, G4 tower   Mac OS X (10.4)   Setting up intel iMac
    Flat-panel iMac, G4 tower   Mac OS X (10.4)  

    Hi Buzz0432,
    I think, "yes" - and i think i saw it in the booklet which you get with the AE. However, i'm slightly unsure about this at this instant since i'm not at home where my mac-stuff is.
    i'll check on it and will report back lateron...
    thomas

  • I have FIOS and the latest version of the Airport Extreme Basestation set up in bridge mode.

    OK need some technical answers I have FIOS and am forced to use their Router. I have WiFi turned off on the FIOS router and my New version Airport Exteme Basestation set up in Bridge Mode. I have CAD 5 running to all my Mac computers and a CAD 5 up to the second floor. I have an older version Airport Extreme Basestation that I would like to connect to the CAD 5 cable on the second floor where the WiFi signal is weak as the main Airport is in the basement. How would I connect the second Airport to the Airport that is in Bridge Mode?  Will this setup mess up my signal strength on either CAD 5 or WiFi? I will also have one Macbook Pro plugged into the upstairs Airport. This is mainly for the WiFi for my iPad and iPhone. Details will help. Thanks.

    How would I connect the second Airport to the Airport that is in Bridge Mode?
    Connect from a LAN <-> port on the Bridge Mode AirPort to the WAN "O" port on the second floor AirPort and then use AirPort Utility on a Mac or iPad to set things up.
    Will this setup mess up my signal strength on either CAD 5 or WiFi?
    Nothing will be messed up, and you will have a much stronger WiFi signal upstairs.
    If you need more details on setup.....we need to know.....
    1) What model number of AirPort Extreme will be upstairs.  The model number is usually embedded in the foam base on the bottom of the device. Starts with an "A" followed by four numbers. Example.....A1143.
    2) What operating system you are using on your Mac, or whether you want to use the iPad for the setup...assuming that the upstairs AirPort is compatible.

  • Aperture Metadata and Bridge Metadata

    I am a photographer and my workflow is to import all my images into Aperture library and add metadata.
    When exporting an image is it possible to integrate Apertures metadata with Bridge metadata? This is important feature as most people do not import images with Aperture. The issue is that many of the field names are different or non existent between the two programs. For example Location field in Bridge is Sub location in Aperture.
    Can you add fields such contact info such as URL, email that are included within Bridge ITPC Metadata?
    Is there a way to customize the metadata fields to work with CS3?

    Unfortunatelly, not really.
    I am currently using Nikon Transfer (latest version) to download the pictures from the camera. This software allows me to enter quite a number of IPTC data (including contact information, url, mail, phone, etc.), but maybe not all which are available in CS3.
    Then I do import the pictures from the folder into Aperture where I only add contact information in the respective IPTC field. From the tests, I did I do know, that with this step I am using the "old IPTC standard" with Aperture and the new IPTC standard with Nikon Transfer. Clearly the newer is better and meets the needs you described.
    In Aperture, I do only see the IPTC data fields, which are common between the two standards (copyright, keywords and description).
    When I go to CS3 Bridge, I can see the IPTC data from both, but only of you turn on the "IPTC old" in the Photoshop Bridge settings.
    This is how far I have come. I have tested the export with the original and the aperture work copy. As a test reader/viewer of the pics I used Photoshop Elements 5.0 ... but except the copyright information, key words and description, I could not find "my" IPTC data. So there was no contact info. This may be a problem of the old version, so I also checked on a windows PC the file properties (picture viewer), which has more or less the same information.
    So the only work around maybe to add contact information into the copyright field - which is not ideal.
    Regards
    Diethard

  • My Time Capsule is giving me a warning that  double NAT situation is occurring and recommends that I set it to bridge mode What is all this about please can it be explained in layman's terms and not martian thank you.

    My Time Capsule is giving me a warning that  double NAT situation is occurring and recommends that I set it to bridge mode What is all this about please can it be explained in layman's terms and not martian thank you.

    You have two devices....the Netgear and Time Capsule both configured to act as routers on the network. You only want one device providing this service.
    I suggest that you configure the Time Capsule in Bridge Mode as suggested to eliminate the Double NAT error. Unfortunately, the Guest Network cannot be enabled in this setting.
    No other adjustments are needed and everything else will operate normally...and the Time Capsule will still be providing your wireless network signal.
    Once the Time Capsule is configured in Bridge Mode, it would be an excellent idea to perform a complete power cycle on the network to allow things to reset properly.
    Just power off all devices on the network in any order that you want
    Wait a minute
    Start the Netgear device first, and let it run a minute by itself
    Start the Time Capsule next the same way
    Continue starting devices one at a time the same way until everything is powered backup
    The other option you have is to "ignore" the error and the light will turn green. The Double NAT error may...or may not cause some issues for you down the line. The next time that you update the Mac operating system, or update the firmware in the Time Capsule, it may likely change the Time Capsule to Bridge Mode automatically.
    If your Guest Network "disappears", you will know why this happened, and you will have to manually configure the Time Capsule again in Router Mode to provide DHCP and NAT services.
    Double NAT can also cause a slow down of web page loading. You may...or may not....notice this.

Maybe you are looking for

  • Clicking on the Now Playing does not open in a new window

    When you click on the artwork in the Now Playing fieild in the lower left corner, a window should pop up that displays the artwork.  Mousing over it shows the controls.  When I click on it, it shows a new window is open on my taskbar, but it doesn't

  • Mutiple forms session cannot be opened from same client

    We are running 6i on WIN NT4.0. Our client PCs cannot run multiple forms sessions. There got to be some parameter in config file that's not right. Can anyoen who came across this problem suggest something that could fix the problem? Thanks Peo

  • Purchase Order / Purchase Order Item & Service Order to find Item Category

    Hi everybody, I have a question linked to the transaction code IW33... I want to know the tables which allow me to find the Item Category of a Service Order with : - Purchase Request - Purcahse Request Item - Service Order I found the link between PR

  • Seeking Profile for Nikon AF-S 10-24mm 3.5-4 5G ED for LR3

    The Lens Correction Profile addition to LR 3.2 does not include a profile for my Nikon AF-S 10-24mm 3.5-4.5 G ED lens.  For some reason this lens is left out of the long list, including all 7 of my other Nikon lens, that are included. Any recommendat

  • Time machine error message backing up

    Recently Time Machine gives me an alert: "The backup was not performed because an error occurred while copying files to the backup disk." "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair y