Connect with our global Bridge Community.
Nyligen aktiv
I take pictures of a swim team and I keyword tag each image with the swimmers name. I would like to batch rename and save in a new folder the files so they have the original filename and then the keyword name. I don't see that as an option in the metadata drop down or any of the other drop downs. Is there a way to do it? I have exported it and included the metadata information and from my PC I can see it in the lower picture data, but I am sharing with a Mac user and it is easiest if the name of the swimmer is in the filename. I have over 1100 pictures and renaming them manually would be too time consuming. Thank you for your input. MB
I have this script that works in cs5, but it is not working in CS6- I am going to try to modify it to copy the keywords into the title field, but also drop the ";" and replace with a ","First, I can't get CS6 to run this code, though. Where is it wrong? Thank you for any suggestions-#target bridge if( BridgeTalk.appName == "bridge" ) { keysToDesc = MenuElement.create("command", "Keywords To Description", "at the end of Tools");}keysToDesc.onSelect = function () { keysToDesc(); }function keysToDesc(){ function getArrayItems(ns, prop){var arrItem=[];var items = myXmp.countArrayItems(ns, prop); for(var i = 1;i <= items;i++){ arrItem.push(myXmp.getArrayItem(ns, prop, i)); }return arrItem.toString();} if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib
How to pass a variable in EditText?Variable nw in edit0.Displays: "NaN".function dialog(nw) { var dlg= "dialog{text:'Script Interface',bounds:[100,100,570,250],"+ "panel0:Panel{bounds:[10,10,460,140] , text:'' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+ "edit0:EditText{bounds:[10,55,320,75] , text:nw ,properties:{multiline:false,noecho:false,readonly:false}},"+Sorry do not speak English. I use a translator.Thank you.
I want to write metadata to any file. Is that possible?And what about folders, can I write metadata to a folder?Could any one help me by modifying this js code snippet to acheive that:app.synchronousMode = true;var pathToLib = Folder.startup.fsName + "/AdobeXMPScript.framework";var xmpLib = new ExternalObject ("lib:" + pathToLib);var thumb = app.document.selections[0];var myFile = thumb.spec;var myXmpFile = new XMPFile(myFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);var myXmp = myXmpFile.getXMP();myXmp.setLocalizedText( XMPConst.NS_DC, "title", null, "x-default", "Some Text");var updatedPacket = myXmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);thumb.metadata = new Metadata(updatedPacket);myXmpFile = new XMPFile (myFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ);myXmp = myXmpFile.getXMP();var myTitle = myXmp.getProperty (XMPConst.NS_DC, "title[1]");$.writeln (myTitle +""); app.synchronousMode = false;Thanks for any o
I am trying to create a submenu which lists scripts in the content window - Does anyone know how to do this? This works: if (MenuElement.find ('Thumbnail/tscript') == null) var ah_ScriptsContext = new MenuElement( "command", "Scripts", "at the end of Thumbnail", "tscript"); But the submenu does not work: var ah_runScriptImRnContext = new MenuElement("menu","AH Image Rename","at the end of Thumbnail/tscript"); I've tried various combinations of 'menu' / 'command' and everything else I can think of, so far no go. Andrew
I have some code that loads a text file into an array that works fine in windows, but fails on the Mac I'm sure it's a path issue but I've spent several hours trying to work this out.Windows code works fine: var textPath = "c:\\temp\\textfile.txt"; try { var myFile = File(textPath); var mymenuItems=[]; var menuItems=[]; myFile.open('r'); while(!myFile.eof){ mymenuItems.push(myFile.readln()); } myFile.close();Mac Code Fails var textPath = '/User/wizbowes/Desktop/text.txt'; try { var myFile = new File(textPath)
Is it possible to force a refresh of list of the presets in the develop settings menu? I want to get around this issue:1) Right click an image and select develop settings - a list of the presets in the CameraRaw/Settings folder is shown in the submenu.2) With bidge remaining in the foreground open, change the contents of the presets in the CameraRaw/Settings folder (I'm doing this with a jsx script in my case).3) Right click an image and go to develop settings again - the list shown is the same as the list in step 1.4) Give any other application focus and then come straight back into bridge.5) Right click an image, select develop settings again - this time the preset list reflects what's in the CameraRaw/Settings folder.So is it possible to force bridge to refresh that list somehow within my jsx script?
I need to strip the last instance of an underscore and the text that follows and replace with underscore and the rating (3).1111_11_111_012 becomes1111_11_111_3thanks
Ok,I admit that I am a novice with JavaScript, although I have experience developing using Xcode with ObjC and lots of interapplication scripting with AppleScript.However, I am clearly missing some very basic concepts trying to do some very simple things to script Adobe Bridge.For instance, I have followed the tutorials and have had no problem running and customizing versions of SnpAddMenuItem.jsx and SnpCreateThumbnailInspector.jsx.Now, let's say I put the SnpAddMenuItem.jsx in the Startup Scripts folder for Bridge CS6. (works fine and creates menu on launch.)However, instead of displaying an alert, as in the demo:alertCommand.onSelect = function (m) { var txt = m.text; // Display result as UI, as this is UI sample alert("'" + txt + "' was chosen menu item"); // run javascript
I want to add event handler to be excuted when the user close (exit) a folder by navigating to different one or by closing the a bridge window.
running Bridge CS6 on Windows 7. Although I tried a lot of existing .jsx scripts first, I have narrowed down my test case to this code typed into the ESTK with targets of ExtendScript Toolkit CS6, Bridge CS5.1 (4.1), Bridge CS6 (5.032), and Bridge CS6 (64 bit) (5.064).var w = new Window('dialog');var tv = w.add('treeview',undefined);tv.add('node','root');w.show();It works properly with ESTK and CS5.1 targets. On both CS6 targets, the window opens but the treeview widget is blank. This is the same behavior I saw running SnpXMLTreeView.jsx and the scriptui-2.0.pdf examples.On more complex (existing) scripts, it will crash or lockup Bridge CS6.A search around the forums and the web shows that I am not the only one having this problem.
This may be an "out there" type of question, but would it be possible to use Bridge scripting to sync folders and their contents?For example, folder A has 500 images in at least 1 subfolder. Folder B has the same 500 images in 20 subfolders. The images are not in order in folder A, but they are in folder B. Is there a way to have Bridge notice the hierarchy and syncronise A to B by creating subfolders and subsequently placing the images into the correct place?
Hi all,Is there anyway(easy way) I can select duplicated images from Adobe BR? I mistakenly copied and pasted the same images in a folder. Thanks!
HiI´m looking for app events but did not find any method that is able to reset the filters set in the Filters panel.Suppose the Filters panel has checked some options (like to see only green label photos and 2 stars). I want to clear all filters and see all files in the folder. So I can continue my scripts task.Can you confirm if this kind of "reset Filters panel" can scriptable??Thank you a lotGustavo
Hi,whould you help me in this regards.any thumbnail, able to lock with lock symbol with a context menu lock itembut want get this favor/facility with scriptsame issue for label alsobut i'm not able.Thanks.if ((fileList instanceof File) && (fileList.hidden == false)) {var t = new Thumbnail(File(fileList[0]));t.label = "Red";$.writeln(t.label); t.locked = true; $.writeln( t.locked);}
whould you help me in this regards.Successfully sent data in server but data which i sent from server that could not receive in client side.in debug modebytesSent = 21bytesReceived = 21response = responseStstus=-1but i'm not able to extract the data. var that = this; var http = new HttpConnection(that.httpAddress) ; $.writeln("AsyncHTTP: create connection..."); http.requestencoding="utf8"; http.request = "yourname=Mahedi Hasan" ; http.method = "POST"; http.async = true ; // or http.sync = false ; http.responseencoding ="utf8"; http.bytesSent; http.bytesReceived; http.response; var status = http.execute() ; // returns immediatelyphp code: $value = file_get_contents("php://input"); $file = 'peopl
HiI´m trying to edit the metadata "instructions" in some photos vieweb by Bridge. At true, I need to preserve what´s already written in this field, then add some more things via script.Here´s my try:var doc = app.document;doc.selectAll();var sel = doc.getSelection ("psd, ai, tif, tiff, jpg, png, bmp, jpeg");if (ExternalObject.AdobeXMPScript==undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");for (var g=0 ; g<sel.length ; g++){ var xFile = new XMPFile (sel.spec.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE); var xmp = xFile.getXMP(); var x = sel.metadata; var instruc = new String (x.read ("http://ns.adobe.com/photoshop/1.0/", "Instructions")); instruc = instruc + "<test bonus instruction>"; //up to this line, everything is right xmp.deleteProperty (XMPConst.NS_XML, "instruct
Please could any one help me of the meaning of _unitTest in this snippet of code:if(typeof(SnpAddMenuItem_unitTest ) == "undefined") { new SnpAddMenuItem().run();}Thanks in advance.
would you please help me in this regardsin nav bar have a button when click the button open a dialog box. threr have a three buttons.when click any one i need to catch that event and close the parent dialog box.// Set up the navigation bar function buildNavbar(doc) { // retrieve the predefined NavBar object // the type defaults to "scriptui" var bottombar = doc.navbars.filesystem.bottom; // display it bottombar.visible = true; // set the height bottombar.height = 50; // add a ScriptUI display frame bottombar.pathPanel = bottombar.add( "p
hi,i am new in adobe bridge. when i select a thumbnail or file in content that time i want to $.writeln("someting");for this i register e event but that is not working please help me in this regards. i'm working on adobe bridge cs5i'm writing this code in SnpListenDocEvents.jsx file.onThumbnailEvent = function( event ){ if( event.object .constructor.name == "Thumbnail" ){ // also use if( event.object instanceof Thumbnail ){ if( event.type == "select" ) { $.writeln("your code is here"); &nb
I am exploring options to connect/build a database. Connecting from Bridge. I am currently producing data and writing it to a text file. I am interested in stepping things up and making an organized readable file from multiple users. Or a website that reflects all the data from the multiple users. I am considering a few options limits being cost. The first might be an excel database, next maybe filemaker pro, and or sqlite database. The number of users inputing data would be around 15. The number of users viewing the database would be around 5. I am curious about what comments or conversations this may bring. Thanks BG.
Ok, so what I am trying to accomplish is a one-touch script that will take a Photoshop eps. save it, then open a specific Illustrator file, place the eps. inside it, then run a set of Illustrator actions. So basically I am trying to figure out how to script between the two programs. My original thought would be to use Bridge as a middleman, but I dont have any sort of Bridge scripting experience so any help would be greatly appreciated.
Hello,I'm having a strange color management issue in Bridge (64 bit). Essentially, Bridge is not displaying images in either the thumbnails or preview pane using the correct color profile.Background: I'm on Windows using a dual monitor setup (both independantly calibrated) but I have the issue even when I use only one monitor. Photoshop has no issues with color settings. I've tried resetting all settings (hitting Ctrl as Bridge starts). I've tried purging my cache and having Bridge generate monitor-size previews. The weirdest part is when I start Bridge, for a split second images appear to be in the correct profile, and then Bridge adjusts everything to the wrong color profile.Any thoughts?Thanks!
Help please, I used Workflow Automation Scripts on CS3 but it doesn't seem to work on CS4.
#target bridgeapp.document.deselectAll();var thumbs = app.document.getSelection("*");for(var a in thumbs){var f =thumbs.name.slice(0,10);var poo=f.indexOf ("BW");if(f.indexOf ("BW")!=-1){ var poop=app.document.select(app.document.thumbnail.children) ; var isBW=app.document.selections[0].core.quickMetadata.colorMode; if(isBW!=1){ poop=BridgeTalk.getStatus ( "photoshop-60.032"); bDubAction: while(poop=="IDLE"){ var thumb = app.document.selections[0]; thumb.open(); runAction(); break bDubAction; } &nb
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.