Bridge Scripting Capabilities (CS3 Javascript)

Hi -- We have many users at our company who need to edit metadata in images (primarily jpegs, but some tifs). These users do not have access to Photoshop but do have access to Bridge.
I have written a script in Bridge that opens a dialog window for them to edit certain metadata. It is accessed through the tools menu.
The problem is I need to further automate the process but am unsure what the capabilities of Bridge are.
What I would like to try to do:
Currently the user would need to open Bridge, select the item (or drag the item onto the Bridge shorcut) and choose the script from the tools menu. Would there be any way to automate this further, maybe through some sort of folder action, or a trigger when the user drags a file onto the shortcut. Or is there anyway to assign shortcut keys in Bridge to Scripts?
Also, is there anyway to script Bridge so that the files will be copied (and renamed) to a specific folder (again, without photoshop)?
Any ideas would be appreciated. I have not used Bridge that much, so if I am going the wrong direction with this, please speak up. If anyone wants to point me in another direction, that would fine.
thanks

Hello,
  I'm a Bridge Quality Engineer.
  If you want to write the scripts to auto your cases, please firstly download Bridge SDK and read the DOM API of Bridge. I believe these documents will help you a lot. Please download the SDK from http://www.adobe.com/devnet/bridge/, and read the doc in folder 'docs'. The API provided are described in Bridge CS3 JavaScript Reference.pdf.
  After read it, you will find you can call the API to auto the process instead of 'through some sort of folder action, or a trigger when the user drags a file onto the shortcut'.
  And you can also get help by launching Adobe ExtendScript Tooolkit, which is installed automatically when Bridge is installed. By select menu Help-> Object Model Viewer, you can get info of Bridge DOM API, and also Core JavaScript Classes and Script UI Classes.
  Please check the API of File and Folder(in Core JavaScript Classes), and you can find File has copy() API, by using which you can copy files to a specific folder.
  If you have further question, please send it out.
  Thanks for support!
BR,
Chun Xia

Similar Messages

  • CS3 / Javascript - Script Error 27: Stack overrun

    Hi
    I have a script who is running all the time (like an Idle). This script calls a method in my own plugin, this method execute an action in my plugin. During this action, I call another Javascript to checkout a document from a content management system.
    This means:
    - A running script (Idle) calls a method in my plugin written in C++
    - The plugin calls another Javascript to checkout the document while the first plugin (Idle) is still runnung.
    This generates an error 27, stack overrun. I have tried several possibilities (with and without a main function, with and without #targetengine and so on), but always the same error.
    - What can I do?
    - Is it possible to run another script during the execution of one?
    - How can I do that?
    - Can I run two Javascript in her own environments? I mean own stack, own main and so on...
    Thanks for any hint.
    Hans

    John is right, this is more of a plugin/SDK question, I would have expected it in that forum first hand.
    Hans has cross posted this question into a swiss/german scripting forum with more details, and I've given a few suggestions. It broils down to the fact that the plugin access to scripting in CS3 had to address the JavaScript scripting subsystem rather than talk to a specific engine. And my strong guess is that the RunFile function triggered by the idle task of the first plugin is not reentrant so the second plugin can not invoke a method the same way.
    My suggestions, in brief: upgrade to CS4 where engines are independently addressible. Alternatively, one can try the other methods to invoke the script - RunScript rather than RunFile, or even use the callback mechanism that underlies the event listener registration. Easily accessible from the same interface class.
    Of course for the reentrancy problem I would not expect a Stack overrun error, so maybe it is not reentrancy at all but just the obvious - the second plugin calling itself in recursion. A breakpoint should easily tell.
    Dirk

  • Possible through "Adobe Bridge scripting"

    I saved the "Document Info" details in adobe illustrator manually using "Document Info Pannel". But i could not save the "Document Info" details through illustrator action and script. Is it possible the above process through "Adobe Bridge scripting". Kindly advice me.

    I am on CS3, so I can't help you with CS version. But anyway here is an example (for CS3).
    I assume that an illustrator file is selected in Bridge.
    #target bridge
    var sels = app.document.selections[0];
    var md = sels.metadata;
    md.namespace = "http://ns.adobe.com/xap/1.0/";
    var myCreator = md.read("http://ns.adobe.com/xap/1.0/", "xap:CreatorTool");
    $.writeln ("File was created by " + myCreator);
    var myModifyDate = md.read("http://ns.adobe.com/xap/1.0/", "xap:ModifyDate");
    $.writeln ("File was modified at " + myModifyDate);
    // Let's write some info into IPTC Contact panel (IPTC Core in Metadata panel)
    md.namespace = "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/";
    md.CiAdrCity = "Kiev";
    md.CiAdrCtry = "Ukraine";

  • Seeking a Bridge scripter

    Hi All:
    I'm currently looking for a freelancer to write a quick Bridge script for me. If you could handle the job--or know someone who could--could you please shoot me a quote at [email protected]? I have some budget, and want to pay fairly.
    If you're interested, here's what I'm after. Many thanks for your consideration!
    Adam
    Adam O'Hern
    Industrial Designer / Spitwad Marksman
    [email protected]
    cadjunkie.com
    solidsmack.com
    engineervsdesigner.com
    Script: Stack Frame
    Language: Javascript
    Version: CS6
    Description:
    When doing product renderings, I often render out animations as image sequences, each frame consisting of several layers. Each layer is output as a separate file. For example:
    image_finalColor_0001.jpg
    image_finalColor_0002.jpg
    image_finalColor_0003.jpg
    image_Alpha_0001.jpg
    image_Alpha_0002.jpg
    image_Alpha_0003.jpg
    image_SurfID_0001.jpg
    image_SurfID_0002.jpg
    image_SurfID_0003.jpg
    etc.
    This script would 'stack' each frame in Bridge, and also create a separate layered PSD file for each, so that the result, in bridge, looks like this:
    image_finalColor_0001.jpg [stack]
    image_finalColor_0002.jpg [stack]
    image_finalColor_0003.jpg [stack]
    image_0001.psd
    image_0002.psd
    image_0003.psd
    Requirements:
    Two ways to start run the script:
    Right-click any file and select 'stack frame' from the drop-down to analyze a single frame
    Menubar > Stacks > 'stack frames' to analyze all frames in folder
    Beginning with the end of the filename, script loops backward through each character until it finds a number. It then continues back until it finds a non-number, and stops, storing the last number in the filename as the 'frame number'. Examples:
    file_0001.jpg => '0001'
    file_0001_backplate.jpg => '0001'
    file_02_backplate_0001.jpg => '0001'
    file_0001_backplate_02.jpg => '02'
    Script then searches other files in the folder using the same method, looking for other files with the same frame number. For example, when looking for frame 0001:
    file_0001_foreground.jpg => match
    file_foreground_0001.jpg => match
    file_02_foreground_0001.jpg => match
    file_0001_foreground_02.jpg => no match
    Script selects all files containing the same frame number, and assigns them to a 'stack' in Bridge.
    With the same files selected, script runs the Photoshop 'Load Files into Photoshop Layers' command
    Saves resulting layered file as PSD named with the common elements of the filenames (trimming non-alphanumeric chars):
    file_0001_background.jpg + file_0001_foreground.jpg = file_0001.psd
    file_background_0001.jpg + file_foreground_0001.jpg = file_0001.psd
    file_02_background_0001.jpg + file_02_foreground_0001.jpg = file_02_0001.jpg
    file_02_background_0001.jpg + file_foreground_0001.jpg = file_0001.jpg
    foobar_file_0002_0001.jpg + file_0001_foreground.jpg = file_0001.jpg
    Must exit gracefully on error and provide dialog hints where possible (e.g. 'found no matching frames' etc)
    Must ignore non-image file formats (to avoid errors in the Photoshop script)
    Resulting PSD layers must be in the same order for every frame where possible (so future Batch operations will work across all PSD files). Obviously this only applies if all layers are present for every frame.
    Must ROCK MAJORLY HARD!!
    Thanks again!

    I use Final Cut Pro; keyframing the motion, scaling, etc as needed.
    But there's also many other programs available, to name a few:
    iMovie
    Still Life
    Photo to Movie
    Motion Pictures
    -DH

  • Help Getting Started with Bridge Scripting

    I'm trying to learn enough about scripting to understand/modify some simple Bridge scripts, but can't seem to find the proper documentation. I have downloaded the Bridge SDK, have the documents for Adobe Intro to Scripting, Adobe Bridge CS5 javascript Guide and Javascript Reference Manual, and a general Javascript manual. But I can't find where BridgeTalk commands (such as send, onResult, and remote Photoshop calls) are described, as well as many other commands like push, localize, or the use of $ signs.
    Can anyone point me to reference materials I would need to learn these things??
    Many Thanks

    JavaScript Tools Guide CS5.pdf Should be in a folder along with the ESTK install… You will find most of you subject matter in that. Mine on the mac is located…
    /Applications/Utilities/Adobe Utilities - CS5/SDK/JavaScript Tools Guide CS5.pdf
    If not then get one from http://www.adobe.com/devnet/scripting.html

  • Can you do this in Bridge scripting?

    I'm game to learn Bridge scripting if it can do what I want, but I have no idea how I even get started in learning what can and can't be done from Bridge scripting. So, here are a couple questions. If someone can give me some guidance on whether it can be done, I'll dive in and figure out how.
    I'm interested in adding a new view to Bridge that would filter out original files when there is an edited copy in the same directory with a common root name. I'd like to only show the edited copy and not the root name. In other cases, I'd like to select only the latest version.
    Is it possible to use the Bridge scripting to make a new menu item that would select only the latest copy of an image? I'd write my own logic in JavaScript to examine the filenames and decide which images should be selected.
    Also, is it possible to create new views in Bridge so that I could view only the latest version of an image? Again, I'd write my own logic in JavaScript to device which images should be displayed.
    --John

    I've wondered about Version Cue since it came out. It appears that you have to buy the whole suite in order to get it and that it's not available separately or just with Photoshop CS2. Is that correct?
    I am a photo hobbiest and the suite is out of my price range (if I was going to spend that kind of money for my hobby, I'd spend it on a lens or towards another camera body), particularly when Adobe's policy for upgrades when you own the suite is that you have to upgrade the whole suite every time, not just a component.
    If you know of a good, in-depth writeup that covers the version cue features, I haven't been able to find one.
    Thanks for the info directing me at a custom browse scheme. I'll read about that and see how feasible it would be to present a "poor man's latest version display". I had in mind that the naming scheme would be pretty easy. I think the only rule that I'd have to follow in my edited versions is to preserve the original root name in the edited versions. If there were multiple edited versions, I'd pick the one with the later time/date.
    I'm off to read some more about how to get started with this. I'm glad this forum exists.
    --John

  • CS3 javascript XML and attribute adding.

    I've been trying to get something working in CS3 javascript XML for some time and it is getting really frustrating.
    Say I have:
    var someXML = new XML("<anElement/>");
    someXML.@xxx = "something";
    $.writeln(someXML.toXMLString());
    gives the output I'd expect (<anElement xxx="something"/>);
    But I need the name of the attribute to be dynamic.  As far as I can see I should be able to either:
    someXML.getAttribute("xxx") = "something";
    or
    someXML.@["xxx"] = "something";
    both these cases give an error of 'Cannot set property xxx'.  I'm using CS3 version 5.0.4 (the debug build because most of the time I'm working directly with the API - not through scripting).
    I looking for ideas to try...
    Ian

    Hi Ole, thanks for the reply.
    I am aiming to manipulate XML using standard javascript functions - nothing directly to do with indesign, though other parts of the script does interact with it.  Basically the scripts allow a user to set some configuration options and that is in an XML string format (if it was the indesign XML Hierarchy XMLElements, etc I'm pretty sure I could get things to work - worst case I could add to the scripting support in a plugin and make it work...).
    I had an idea (driving home after a frustrating day), Since the XML I'm processing is small, I can move forward by crudely making a string from the XML object, inserting the attribute into the string and then re-new'ing the XML object.  With large comments about why - unless someone can come up with a reason/fix for the javascript-XML not working (I suppose it may just be the number of InDesign/Extendscript versions I have installed - CS2/CS3/CS4, indesign and server).
    Ian

  • Bridge scripting learning curve

    I must admit I was a little confused when I first looked at Bridge scripting. I had some background writing photoshop scripts. This forum is an excellent resource to supplement the documentation.
    Anyway, I have figured out everything I needed to port a script from photoshop that creates subfolders in the current active bridge folder, opens a dialog to get resizing and beveling parameters, applies those parameters to resize and bevel the selected bridge thumbnails and saves the jpgs in the subfolders.
    Bob - thanks very much for your help getting me pointed in the right direction. I even have the ESTK working. You are the man!
    Rory

    First off, JavaScript and Java are vastly different. There are a number of JavaScript books out there. I don't have a recommendation for one, but I am sure someone else on this forum does.
    Probably the best way to get started for you is to write a script for Photoshop that does what you want to one image. Bridge doesn't do any of the image manipulations itself. Bridge allows you to select sets of images, and then start a script that will execute in Photoshop. So the first step is a working Photoshop script. Once you have that, you can create a menu item in bridge to run the script, you can use the BridgeTalkIterator object I wrote to easily execute your photoshop script from bridge on all the selected files.
    I hope this helps.
    Bob

  • Bridge script UI folder path

    I am using a custom Bridge script to load stacks into photoshop layers.
    Every time I run the script I have to change the folder path manually to save the images in a new folder.
    I would like to find out if a UI dialog can be used with the script to edit the folder path.
    The UI dialog would offer to use the previous folder path or to enter/select a new folder location.
    I have not been able to incorporate the core Javascript class Folder successfully with the Bridge script.
    The scripts hangs, does not complete when I add the core JS Folder class.
    How do I approach building a script UI in Bridge?
    Are there any simple Bridge script UI samples available to deconstruct?

    Hi,
    You can follow this example.
    Code examples for ScriptUI from JavaScriptToolsGuide_CS5.

  • Is Bridge part of CS3?

    Probably a dumb question...but where does Bridge come into play with Photoshop and what is it's main function? Is Bridge part of CS3 or not? I have Photoshop Elements and will upgrading to CS3 when the new quarter starts so I've been reading up and am still confused as to where/what Bridge is!

    You know how you can't see thumbnails of Adobe Illustrator, InDesign, and
    Photoshop in the regular windows Explorer? Well, Bridge allows you to see
    thumbnails of these, as well as the regular ones.
    Ariel

  • Bridge script could not read PSD file metadata reliably

    I'm trying to read metadata (specifically, xmp.CreateDate and tiff.DateTime) of a bunch of PSD files using a loop. Bridge script seems able to read most of them but always fails to read some (returns empty strings), though not necessarily any particular ones. That is, if I run multiple times, it fails on different files. Basically, it's just not reliable. Is there a solution for this? Please help. Thanks.

    Hi skc_chat,
    According to the error message, you may do not have the permission to view the metadata. Please follow the steps below to grant the permissions to the current login on the SQL Server Management Studio:
    Right click on the server name and select properties.
    Click on the Permissions tab.
    Select the login name.
    On the Explicit tap, Grant "View Any Definition" to this login.
    To grant this permission by T-SQL:
    GRANT VIEW ANY DEFINITION TO <loginname>
    Go
    For more information:
    Cannot Create Script
    Also have a look at this article with the same error:
    http://blog.davidsilvasmith.com/2011/08/i-was-on-sql-server-2008-r2-database-i.html
    Best Regards,
    Stephanie Lv
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Can we execute a Powershell script from the Javascript?

    Hi,
    I have a certain requirement to add a Custom ribbon button in document library and there was a powershell script to be run for the selected item in the library.
    I have struck with executing a Powershell script from the javascript function.
    Can anyone please suggest me if this was achievable
    Thanks, Swaroop Vuppala

    Hi Swaroop,
    To execute server side code in a custom ribbon button script, using application page is a common way to do this, besides, you can also use a page dialog, which is similar with application page but display as model dialog, another way is javascript
    _dopostback and delegate control, the following article contains detailed information about this, please refer to it for more information:
    Invoke server side code on SharePoint ribbon click:
    http://sharepointnadeem.blogspot.in/2012/07/invoke-server-side-code-on-sharepoint.html
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Trying to open a page in IE-tab using javascript, script type="text/javascript" window.location.href="chrome://coralietab/content/container.html?url=0,myurl" /script Error:Component returned failure code:0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]

    I am trying to open a page in IE-tab using javascript like this, <script type="text/javascript"> window.location.href = "chrome://coralietab/content/container.html?url=0,myurl" ;</script>.Error occured : [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::myurl :: load :: line 234" data: no] I have IE-Tab plug-in installed..when I open the same link manually in mozilla,it works fine and page gets opened in Ie-tab.

    The only way this might be possible is by using the HostContainer object
    to access the HTML page and do it from there.

  • Need Booklet script for CS3

    My computer bombed -- have CS3 installed on another, now I need the booklet script for CS3. A google didn't bring it up for me. . .
    Thanks
    Lamar

    Both scripts have always worked flawlessly for me. BuildBooklet merely shuffles the pages, so it doesn't change the page size at all (you need to check the spreads box when you export or print), but it does not handle objects that cross the spine. Neither one handles the second script does cross-spine objects, but does not do bleed.
    Perhaps you'll find what you want at Steve Sterling legacy ID imposition scripts

  • Bridge CS3 JavaScript Reference Guide?

    Approximately two years ago I downloaded the Bridge JavaScript Reference Guide for CS2 as a PDF file (3.5 MB) from Adobe's website. Now I am looking for the respective scripting reference for Bridge CS3---but I cannot find one. I found several User Manuals and Reference Guides for Photoshop CS3, Version Cue CS3 Client and Server and the like ... but no scripting reference for Bridge CS3.
    Obviously the old scripting reference for Bridge 1.0 still is useful ... but there sure are a few changes/improvements/extensions, aren't there? Does someone have an ides where to find Bridge CS3's scripting reference?
    -- Olaf

    Olaf,
    The new scripting docs are part of the Bridge CS3 SDK:
    http://www.adobe.com/devnet/bridge/
    -David

Maybe you are looking for

  • How to get the sum in appropriate column without a red triangle appearing?

    Hello, In 'Numbers" - How do get columns to add (calculate) the sum in each decending column on an Expense Report. When I highlight the decending column the total appears on the far left of the screen.  When I drag the sum amount from there to the ap

  • I have a officejdet 6500 e709n that is compatible with xp and vista, I have windows 7 on my laptop

    HP walked me thru a process so that I could use the wireless printer but now I've moved and I need to go thru this process again because I have a new router and they want to charge me $37.  Can you help me?

  • Create A Slideshow Banner

    I've seen this site referenced quite a bit in my searches on how to make a slideshow banner. Would anyone be willing/able to make a step by step tutorial for this on putting all the info together, after downloading the forms etc.? http://www.wyodor.n

  • Disc utility showing problems. Help pleasee?

    Hi guys Skipping all the fine details, my MBP is having insane freezing issues and I need to reinstall Lion ASAP. But I also need to backup my files since I haven't been able to backup in a month. Yet whenever I try to backup, I'm told: The backup wa

  • Infrastructure 2.2 using config mode to collect configs?

    I am running Cisco Prime LMS 4.2 and Cisco Prime Infrastructure 2.2 in parallel.  I just exported the device list and credentials from LMS and imported them into Infrastructure.  LMS has syslog alerts set up to notify the boss when "Configured from c