Questions
Recently active
Hi,I have folders full of images. The filenames will be in the form ofARTIST#EVENT#PHOTOGRAPHER#RANDOMNUMBER.jpg but could also potentially be ARTIST at EVENT by PHOTOGRAPHER - RANDOMNUMBER.jpg. I'm happy to use whichever is easier. Basically I can set any delimiter I want and vary it up if neededI have seen a few examples where the filename is set to the title, description etc but I'm having no luck editing the files to what I need. Ideally I'd likeDocument Title: Artist at Event by PhotographerAuthor: PhotographerDescription: Artist at Event by Photographer courtesy of Company NameKeywords: Artist, Event, Photographer, Company NameI presume this is possible but was hoping some kind soul out there could help!Thanks in advance,JJ
Hi all,I developpe a script who need to call the terminal to execute a command line.For that, is think i will call bridge from indesign and use the command app.system(shell_str);.But i don't know how to get a bridge app from an indesign script?sample:#target indesignvar doc = app.activeDocument;var array_all_links = doc.links;for(var i = 0; i<array_all_links.length; i++){ is_transparency (array_all_links);}function is_transparency(link_item) { var shellString = "mdfind -onlyin "; shellString += "'" + link_item.filePath + "/'"; shellString += " 'kMDItemHasAlphaChannel == 1 "; shellString += " && (kMDItemFSName == *.tif || kMDItemFSName == *.psd || kMDItemFSName == *.png)'
Hello Bridge Scripting community I'm looking for a script (Mac OS, Bridge CS6) which allow me to copy/transfer metadata from one image to another (with blank IPTC fields). Hoping someone can help.ThanksDon
I'm interested in developing a front end search and cataloging application in LiveCode which would use use Bridge as a helper app to view files in folders. This is all on Mac OSX. (well actually it woudl work on Windows too...) the bottom line simple question is simply this: Can anyone give me a script to open a folder in Bridge, where that script has the path to that folder embedded in the script itself? And, for this "OpenFolder.js" be an external file that is fired by Mac OSX itself?---------- Details My LiveCode's app'sjob is pretty simple: look things up using "locate" from the shell to access the locate database. When the user finds a file that he or she wants, then we want to offer the option to have the enclosing folder be opened in Bridge. My LiveCode Desktop app is kind of like an uber traffic manager, search widget, with Bridge server as the primary catalog/viewing mechanism. I don't see the need to re-invent the wheel and build a whole new catalog vi
Is it possible to override the handler for renaming, copying, moving and deleting.and is it possible to cancel the user action.Thanks in advance.
if ( !ExternalObject.webaccesslib ) {ExternalObject.webaccesslib = new ExternalObject("lib:" + pathToLib);}$.writeln("Loaded webaccess library...");var http = new HttpConnection("file:///Users/art5/Desktop/TestPHP.html");http.request = "input name=Fred Smith" ;http.method = "POST"http.execute() ;I am returning false but I am not even sure if http var is correct. How can I test this part?I am trying to set up a simple senario to see how and if this will work.Thanks in advance for any info.CS 5 BRIDGE MAC
var poot=Folder("/eDesignArchive/eExtract/"+myJnum+mySFolder);poot=Folder(poot.fsName);var boot=poot.getFiles();myMatches=[];myArchive=[]; for (var j = 0; j < boot.length; j++) { if(boot.type!="????"){ myArchive.push(boot.name);} for ( i = 0; i < count; i++ ) { pageImage =doc.visibleThumbnails.name; if((pageImage.match ( boot.name))){ myMatches.push(boot.name);} } };I am using this on the mac side and it returns all the different file types. I am trying to exclude a database file. On the mac I get different file types like 8bps or JPEG or TIFF. All the files are turning up ???? on pc. Not sure why. Any ideas? At first I thought my array was empty but I know now that its ok.
When I use this on the mac side Bridge CS5 it returns all the files in an array.var poot=Folder("/eDesignArchive/eExtract/"+myJnum+mySFolder);poot=Folder(poot.fsName);var boot=poot.getFiles();alert(boot);obviously the string for the PC side is different on the link but I test if it exist and it is true.Then I use the same geFiles() and it returns the folder instead of the files? I am not sure what I am doing wrong here.On the PC Side I am using xp and its version CS4 Adobe Bridge. Is the syntax different?Thanks BG.
I am adding some code on to an existing script. What i am trying to do is match the files against files located as a back up on the server. Verifying that they are all there. I have been able to match them but now I want to count how many matches i have. This should be easy but I am confused.for ( i = 0; i < count; i++ ) { file = doc.visibleThumbnails.spec.toSource(); f =doc.visibleThumbnails.name.slice(0,10); pageImage =doc.visibleThumbnails.name; extractName=boot.name; var myMatch=0; for (var j = 0; j < boot.length; j++) { if((pageImage.match ( boot.name))){myMatch=myMatch++; } &nb
When I load a file xml and read its contents, it only works from Bridge on windows7But when I run the code to Bridge from Abobe Extendscript Toolkit targeting Bridge, it does'nt read the fole content ( fileXMLtoParse.read() )Is this a bug, or there is a work arround?My example code that reads a xml fole from Desktop:XML (Desktop/userCheckin.xml)<preferences> <editor>Content to read here</editor></preferences>Code:var userDisk = Folder("~/Desktop");var xmlFile = File(userDisk + "/userCheckin.xml");if (xmlFile.exists) { var fileXMLtoParse = File (xmlFile); fileXMLtoParse.open('r'); var str = new XML(fileXMLtoParse.read()); fileXMLtoParse.close(); str.normalize(); var field = str.elements().child(0); // That's the text I need}// I have a subpanel with a text field 'text_info' where I put specific xml datatbPanel
click where to install JavaScript to the correct spots?what link do I click to save?
I know that Bridge has an Export menu that can be used to convert PSDs to JPEG and then convert them, but I can't figure out how to get access to these functions through the ExtendScript API.I basically have an array of Thumbnail objects that I need to iterate through and export out 300 DPI JPEGs as I go.Any ideas? I've already read through the manuals and didn't find anything of use. My current relevant line looks like: bm.exportTo(new File(exportFilePath),100);
HiOn Bridge CS6 I have some action (any action...) to run over a group of image thumbnails but, when I select a folder with images, Bridge build in first place the cache for the contents of that folder opened for the first time.I want to make a condition to run my action IF the refresh is finished.>> f refhesh is over >> run my action>> and if not over wait until is really over (I have also to think if the user selects another folder before my first action is over on the previous folder: may be could warn to wait...?? or queue it to run it next...)
I want to develope scripts that will generate a kind of form with a report to print.I thought that might be better to export all the info to an xml file and then use another app (like flash or acrobat) to get the data over a pre-designed form and then print it.Then I thought that it would be easier to do all this with only one click over Bridge...I was also studing acrobat and LiveCycle and it is kind of tricky to learn.In fact, all I want is to read files and folders (not web) and print a simple report.Or...I can get this on a simple flash form converted on standalone app .exe that I could open from Bridge over my presentationPath folder and making it to read a xmlOr... set a flash form on a panel on Bridge using snp window...???
I have allways a folder with several sub-folders with some images there.MotherFolder with: > Folder01 > 5 images > Folder02 > 3 images > Folder03 > 7 images(...)On BridgeCS6, on 'MotherFolder' content, I want to to run an action renaming Folder01, Folder02, Folder03only with 1 condition: if the cache of all the images thumbnails has been built (in other words, only if someone has already viewed on Content all the images in each folder).Briefly, when Bridge has never previewed com Content pane the images of some Folder, it detect it and don't runs the script of renaming the folders.Is this possible?I have manage to write the rename script, but I must script the condition.
var sels = app.document.selections; for (var i = 0; i < sels.length; i++) { var md = sels.synchronousMetadata; md.namespace = "http://ns.adobe.com/photoshop/1.0/"; md.Keywords = ... md.Caption = ... md.Title = ...................Metadata IPTC CoreKeywords <==> md.KeywordsDescription <==> md.CaptionTitle <==> md.TitleInstruction <==> ???????????
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.