Questions
Recently active
Hello, I created a little script which extracts metadata from a selection and stores it in a string. Now I just would like to save the string in a text-file in the current foldert, but ... any hint would be very kind. // test string myText = "save this"; // create new File myFile = new File("test.txt"); // write into the file myFile.write(myText); and close it myFile.close(myText); thanks pepe
I am unable to load the dictionary for Bridge from my script editor to see what capabilities I have to use applescript with bridge. I am assuming that this is because, for some reason, adobe has made it so that Bridge is not applescriptable. Could this possibly be true? I am building a script that transfers all of my photos from my CF card as soon as it is mounted, transfers the files to a "temp" folder and then deletes the images off of the card and ejects the card. I have the "Temp" folder as one of my "favorites" in bridge and am simply hoping to gain access to that file while the transfer process is taking place so that I have a preview of the photos WHILE they are being transfered. (I want to use bridge instead of iPhoto obviously, but using the basic iPhoto functionality) Without any scripting dictionary for bridge for applescript, I am unable to see how to select that folder in my "favorites" panel. I am able to "activate" bridge and bring it to the front, but that is simply
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
I want to get all files of a directory or from the selected thumbnails, - which are flagged (red, green, ...) - rated, e.g. with 3 or more stars How is this possible? As written in the Bridge Script documentation the metadates should contain this information. But flag is always empty. I use the standard preferences (red color have 'red', green color have 'green', etc.). Bye, Norbert
I am a javascript beginner and while there is a lot of technical info in the Bridge JavaScript Reference, there are very few examples. I could really use a few good examples of how to apply js to Bridge. Is there someplace where folks are posting their scripts for bridge yet? Or perhaps some of the experts could post a few more examples here for us noobs?
The URL: http://www.adobe.com/products/creativesuite/indepth.html Happy Scripting! Bob Adobe Workflow Automation Scripts
Greetings, I see that there is a similar post that asks my question, but I would like to take it a step further. I want to export data from images that I have selected to an XML. If I highlight the images and choose tools>photoshop>web photo gallery>flash-gallery, I have the option to output these files and have SOME of the data recorded exported to XML. Now, there are two problem with that: 1) in order to generate a very small XML file, I have to process dozens and dozens (depending on what I want) RAW images. I ONLY want to export the XML file 2) the XML file OMITS some data I want included, and includes some data I want omitted. There must be a way to harness what Bridge has built into it here to export the data I want to XML. Does anyone know what language, or how, to implement code that does exactly what Bridge does? I want to be able to process the XML without the images and include other data that the "info" boxes carry. Any help, even if it means pointing me to th
Last night I created a bridge script that sends a message to photoshop to open a certain file. And it worked. This morning I rebooted and it doesn't work. I get an error message saying that BridgeTalk has no constructor?!? Then I tried photoshop.executeScript, but I'm told that photoshop is undefined. How did my Bridge lose its connections to my other apps? Is there a way to get them to relink themselves? I'm very perplexed. -Rich
Hi all, I'm wondering if anybody has had any experience working with Sockets in Bridge and can explain some odd behaviour that I am seeing. I am implementing a simple mechanism for retrieving a file from a remote server using HTTP (GET). With the request, I noticed that if the connection is opened using the default "ASCII" encoding, Socket.write does not send any CR characters. ie. sock.write("GET /foo/bar HTTP/1.1\r\n"); sends the message "GET /foo/bar HTTP/1.1\n". With the "binary" encoding, everything goes through ok. Is the behaviour that I am seein for ASCII correct? I do not believe that \r should be dropped. With respect to the response, I am trying to read the data line by line using Socket.readln. The first read will retrieve the status line HTTP/1.1 200 OK but I can't read anything else (regardless of connection encoding). After readln is called, socket.connected becomes false (expected - the server sends all data and a normal TCP connection shutdown occurs; I've ver
I searched the forums for an answer to this, but didn't find any yet. I am attempting to do the following: Folder of .CR2 files on the desktop Import to another directory, renaming and appending metadata in the process. I'm on OS X, 10.4.4. Whenever I run the script, it presents a dialog box that says "Import Complete" yet nothing has been renamed, appended, or moved to the new directory. I've downloaded the most recent version I could find. It worked fine with .CRW files, but not .CR2 files. Anyone else experiencing this problem?
HI all. This is the code for creating a simple dialog window, but when I display this window, it is empty. Someone can tell me what's wrong ? thanks Ivan var myWin = new Window('window', 'Title', [100,100,400,300]); myWin.msgPnl = myWin.add ('panel', undefined , 'Available models'); myWin.msgPnl.titolo = myWin.msgPnl.add('statictext', undefined,'Select your model'); myWin.radio_1 = myWin.add('radiobutton',undefined, '2 X 3'); myWin.radio_2 = myWin.add('radiobutton',undefined, '3 X 5'); myWin.radio_1.value = (true);
Here is a sample script that creates a menu item in the context thumbnail menu in Bridge. You save this script as a jsx file and place it in your StartUpScripts folder. When this script runs, the debugger halts at the debugger statement, the line is highlighted in yellow and the cursor is frozen at the start of the line (it does not blink). About 3 seconds later the ESTK crashes. Could someone else please try this on their computer to see if you can duplicate this behavior. Any suggestions would be most appreciated. Thanks. Here is the script: #target bridge $.level = 0; if ( BridgeTalk.appName == "bridge" ) { // only load into bridge > // create menu > var cmdMenuShell = new MenuElement('command', 'Menu shell ...', 'before Thumbnail/Cut-'); > // execute menu > cmdMenuShell.onSelect = function() { >> $.level=1; debugger; >> alert("Hello Menu shell"); > } }
Perhaps it should be documented that File.remove() does not delete the corresponding .xmp file. I think it can be argued that removing the xmp is more correct than leaving the sidecar there.<br /><br />This leads to problems when subsequently renaming some other file (with .xmp) to the name of the deleted file. The rename gets an error, claiming the file exists but not mentioning that it is the invisible .xmp that actually exists.<br /><br />Then, oddly, ESCing from the error dialog actually does rename the file, but renames the corresponding .xmp as <name>(1).xmp -- attaching the wrong sidecar to the renamed image.
Hi there, I'd like to be able to script/set the Bridge to browse images by Alpha Channel rather than RGB (I have lots of images with similar RGB but unique Alphas). Does anyone know if this would be possible or where to start? Thanks in advance for any help. Karl
Hello, I wrote a script to display and select a inDesign library in Bridge. The script starts up bridge if it is not already running. If bridge is running, is there a way to pop up the application window? Something like: app.focus()? thank you, Georg
Am I correct in assuming that Cross-DOM API calls presume the target application is running? That is, these calls are not out to a "shared" library so to speak, but actually communication between two running apps. Assuming that is the case, is there any way, within Bridge itself, to do simple manipulations on files, such as scaling, and file type conversion. Am I required to have photoshop running to do this?
Is there any documentation on using external libraries with ExtendScript (calling conventions etc)? Also, I've been studying the Stock Photo code a bit and have come across the ExternalObject class - is there any documentation on what this is? Thanks, -liam
Is there a script or batch command I may be missing that will Append the IPTC info to processed TIFFS from XMPs of the same name (in another directory) in witch the XMP info was created by entering IPTC info for RAW files in Bridge?. As it stands now I have to manually do this one by one using "File Info" if the RAW file was converted with another converter other than Camera RAW or I want to update the metadata (catalog) after the fact because of a time crunch.
I'm not sure how to report this, but there's a bug in the Image Processor script that was driving me nuts so I figured out how to patch it. This may be a Windows-only bug (I'm not sure). The problem is that the when you bring up either of the directory pickers for changing the directories in the Image Processor dialog, they both default to the Windows desktop rather than the path that the dialog shows. Since the Windows desktop is a long ways away from where I keep my images, tihs is a lot of mouse clicks to set this directory everytime I want to use it. There is an attempt to pass the directory picker a starting directory, but that code is just wrong. This occurs in two places in the Image Processor. To fix it, I replace this line: var selFolder = Folder.selectDialog( strPickDest, this.parent.parent.destLongText ); with this line: var selFolder = Folder.selectDialog( strPickDest, d.destLongText); and now the directory picker starts out where it's supposed to and it's a lot quicker
I have a flash runtime for displaying pictures that reads the filename, thumbnail filename and a description of the picture and it reads the information from an .xml file. What I would like to do is type in a description of each picture using metadata in bridge, highlight the pictures I want (in the order I want them in) and have bridge perform the following tasks. 1. Resize them to the size I specify. 2. Create a small thumbnail of it (again at a specified size). 3. Create and populate an .xml file with the information described above for each picture selected. I am quite sure 1 and 2 should be fairly easy, but don't know if #3 is even possible. Does anybody have any bright ideas?
I am running a remote script from bridge that opens a complex dialog in photoshop. I need to run the dialog in photoshop because it displays fonts, styles and actions, which are not available in bridge. When I close the dialog I return to my bridge script. If I repeated open the remote script with the complex dialog I continue to use up resources and the dialog opens more slowly each time. If I run the remote script directly from the ESTK I still lose reources and it slows down, but not as significantly as when run as a remote script via bridgetalk. I think this is caused by inner functions in my dialog, which are creating closures, which in turn are preventing garbage collection. Has anyone experienced this and do you have any tips to prevent the performance degradation?
Is it possible to call a bridge script from an external app (e.g. iView?). If so, how. I presume I need to instantiate the Bridge app object, but I can't get my head around how to do this from an external Jscript. regards Gareth
After several hours attempting to add a progress palette to my scripts, I've concluded that there is no way to get the palette to completely display. The box is drawn, as is the Cancel button, but the background, static text and progress bar are not show, and the Cancel button is not sensitive to clicks. I've tried inserting hide() and show(), insert waits, etc. to no avail. I suspect that the redraw thread isn't even being run while my onClick command function is running. Is there a method that will force redraw that I can put in my processing loop? How do I make the palette have focus so the button click will work? Is the thread model for scripting documented anywhere? Perhaps it would be better for Adobe and its customers if "Extend"Script were open sourced?
I have an advanced JavaScript Question! As i learned it is possible to add new Functions to existing objects: Column.prototype.isEmpty = function() { ... } but how can i add a new property to a existing object??? For Example i want to add a new "minimumWidth " Property to the InDesign "Column" object. I have tried something like: Column.prototype.minimumWidth = 0; // var col = ... Get a real Column object from selection ... col.minimumWidth = 100; alert( "Column: " + col.minimumWidth ); This code gives the following Error (in InDesign CS2): "Error: Object does not support the property or method 'minimumWidth'" The above Code is valid ECMA JavaScript! Any Help??? Thanks Tilo
On some of my scripts, the ESTK thinks the script is still running after it should have terminated. The only ways I can terminate the script in the ESTK are to start editing (a dialog appears, asking me if I would like to stop the script) or to change the target application dropdown to another application. Clicking on the Stop button does not do anything. Is this a known bug in the ESTK or am I doing something wrong in the script? If the latter, are there any common causes for this behaviour? Thanks Rory
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.