Connect with our global Bridge Community.
Nyligen aktiv
A while back you folks pointed out to us that the license language in the top of the library files effectively prohibited distribution. You officially have permission to re-distribute the libraries. We will post new lib files with the correct language; however, that will take some time as there have been updates and a Q/A cycle needs to be run against them. In the mean time, please feel free to take the language at the bottom of this post, and replace the commented licensing language at the top of the library files with it. ADOBE SYSTEMS INCORPORATED Copyright 2005 - Adobe Systems Incorporated All Rights Reserved If this file is provided by Adobe in modifiable form (e.g., source code or JavaScript), then you may modify this file. You may use and distribute this file, in modified or unmodified form, provided that you must reproduce the above acknowledgement and this notice with all copies of the file. THIS SOFTWARE IS PROVIDED BY ADOBE SYSTEMS INCORPORATED AS IS AND ANY EXPRESS O
I am looking for way to create script to copy illustrator files from clients folders and to convert format to jpeg and resize. I tried to use automator but without success only allowed me to select direct files not folders with files inside. I have saved my files to by contracting company and then put their clients into folders with graphics files mainly Illustrator and Photoshop. I need to resize them for use in data base program which is not able to handle large file sizes of so many files. Any help would be greatly appreciated. Thanks, Kevin
I'm interested in various approaches to controlling workflow with a view to conserving system resources. Say you have a typical situation where you are going to collect a list of files in bridge and then process that list in Photoshop. Imagine that the number of files could be quite large, 1000, even 10,000. There are various ways of working with this. Easiest is probably (I): 1. Collect files in Bridge. 2. Send them over as myFiles.toSource() in a string and regenerate them as soon as they arrive via BridgeTalk. 3. Process targets one after the other in PS. Given File Objects are more complex than a string, the next variation (II) would be the same only send the files as just the fullName string, and regenerate one at a time in PS for each iteration. This is pretty efficient as it is just a moderately long string being held in memory most of the time. A quite different approach is to collect the file addresses in Bridge and send them over for processing in PS one at a time (so
I have downloaded a script for Bridge from Studio Exchange and need to install it. I have placed the start up .JSX file in the library>application support>adobe>startup script and the script doesn't work. I'm not a programmer and the reference document http://www.adobe.com/products/creativesuite/pdfs/bridge_javascript_ref.pdf is not much help to me. Any suggestions? Thanks, Siamack
Is it possible to add new events to a windows control? For example, I have created a dialog, and while processing code outside the dialog I want to sent the dialog a message. If I could create a new onXXX event handler, then I could invoke it. Thanks in advance Rory
Hi, I am facing some problems in Adobe Bridge and i need help. I would like to access some database eg. My SQL, and access the data from it by firing a SQL query, How can i do this through JavaScript on Bridge? Also, could i open a url from within Bridge using JavaScript code?, Is there any way i can access some webservice through JavaScript on Bridge and capture the response if any?. Thankyou. Regards Joji Varghese.
Hi, I am new to Bridge and i am using JavaScript. I am not able to include any java libraries like java.util.StringTokenizer or java.sql etc. I do not know if i can do this here. Also does someone know how to execute an AppleScript file from my current javascript code, and, can i execute some executable or access a shared library from javascript using extendscript toolkit? Thanks in advance. Regards Joji Varghese
I have a Bridge script that loops through a series of files calling a PS script method that does some processing. Can I abort the PS processing via ESC? Apparently not. It would be nice if an unconsumed ESC at least signalled an error on the next Javascript statement. (Even better would be consistency in PS native methods aborting with ESC.) If I catch an error in the PS script, how do I reflect the error to Bridge? I'm guessing that the Bridgetalk sends I'm using are queued such that PS and Bridge are uncoupled. If I get a PS error how do I flush the queued Bridgetalk messages?
I was just having a look at this and noticed that for me when I use it to run a trivial action in PS from Bridge (just opens selected files and leaves them open) it is opening the selected files PLUS one other file that is not selected. The file it is opening is always the same one and this persists even after opening and closing Bridge - so I would guess it is something happening either at the scriptstore level or within the core of PS / BR itself. It is not a problem with the Bridge selection list since I tested for this with my own batch process scripts and got the expected results. Andrew
Can anybody help me regarding this problem: We have installed acrobat and our application uses some acrobat functionality like generating pdf from MS Word Doc, Merging several PDF into one final PDF etc. Our application is in VB 6 and we are using following code style to do jobs related creating pdf etc. Set AcroApp = CreateObject("AcroExch.App") Set PDDoc = CreateObject("AcroExch.PDDoc") Set InsertPDDoc = CreateObject("AcroExch.PDDoc") Now we are having problem when we are deploying our application to our clients. Our client needs to buy the acrobat to use our application and that's what the problem is. Our client does not want to install acrobat. 1. Is there any way we can deploy only required dlls when we deploy our application ? 2. If so, is there any licensing restriction ? or can we buy some SDK / dll files which has license to re-distribution ? Any prompt help would be highly appriciated.. --Faizullah
This is the beta version of a script that automates the creation of a menu for launching scripts from Bridge to run in a target Application. You can easily add and remove scripts from the menu. There are four modes for running scripts: 1. Left click: runs the script in the target app. 2. Shift-LeftClick: for each file selected in Bridge, opens the image in the target app, runs the script on it, then closes the image. 3. Ctrl-LeftClick or Cmd-LeftClick: same as 2 but leaves the images open. 4. Shift-Ctrl-LeftClick or Shift-Cmd-LeftClick: sends the list of selected files to the target app / script. The list is in the form of a string called ah_BridgeFilesAsString. The target script can 'eval' this to get the original file object list and do whatever it wants with it. This script will be developed a lot further in the coming months and will probably get both more powerful and more simple for users. I may well end up running everything from the Edit Dialog, but for now it works via th
[Preamble - I may be totally wrong about the following - I do hope so, please put me right if so] It would make life a lot easier if we could include the Adobe Library scripts along with scripts we release ourselves - when they are required. At the moment the Library scripts' licenses do allow us to include them ('we may distribute them'), but then the user is not allowed to use them without written permission from Adobe. That really isn't workable. Furthermore, the only place I have found that provides the files for download is as part of the ImportCamera package. Again, that is not a particularly workable or helpful route for other scripters to direct users to. If they have to be downloaded separately, please could Adobe include them as an individual item from Studio Exchange. Is there really a strong reason for not just making these Libraries copyright Adobe but open to anyone to distribute *and use*? My experience in releasing scripts is that if the process is not totally simple
Hello All I have following problem. There is an URL to file in the Web. I can add a Thumbnnail to my favorites pane and display this URL in the content window. I would like to download file. Method app.preflightFiles invoked with array containing URL as argument returns true (doc says that method returns true on success) but i don't know where downloaded file is. There is another method - app.system - which i can invoke with any command line, but I would like not to do this. Is there any way, except system, to download file? Or is there any way to know where preflighted files are? Thanks in advance Michal
I thought I'd point out a technical bug in one of the functions in AdobeLibrary1.jsx. The function file.getExtension() can return wrong results when the filename has no extension because (on Windows, at least) parts of the pathname can have "." in them. This isn't real common, but is possible. So if you pass the filename "c:/bob/ted.alice/jack" to your function, it will return ".alice/jack" as the extension which is not technically correct. In reality, it should return "" since there is no extension. In my own code, I've used a regular expression /\.[^\/\\]*$/ which is a period, followed by some number of non-path separator characters at the end of the string and this handles both cases. --John
I am having no success testing for ShiftDown and the various other on-select related properties. for example both the following issue an empty alert box regardless of the status of the shift key: myMenuItem.onSelect = function () {alert(this.ShiftDown)} myMenuItem.onSelect = function () {alert(myMenuItem.ShiftDown)} I want to be able to do both of: 1. When the menu command is clicked with say ShiftDown, it toggles the checked status. 2. When the menu command is clicked with say ShiftDown, it does something different from when ShiftDown is false. Andrew CS2 on XP
I have 800 photos from two different cameras from a wedding shoot. One of the camera's clock was off by 1hr and 11mins. What would be the fastest/best way to append the metadata for that camera's files so I can sort by date/time file created? Can I create a script that would append the time of every file selected by the hour and eleven minutes? How would you accomplish this? Thanks, AL
I made a first post on this at ps-scripts: http://www.ps-scripts.com/bb/viewtopic.php?t=176 It seems to me we would benefit from developing 'good practice' guidelines for Bridge scripting. Here are some intial issues that occur to me: 1. Function namespaces: Given the use of start-up scripts and the loading of script libraries at start-up it is important we keep function names unique. I am going to use ah_myfunction() for all my own function names. It is also sensible that scripts should use libraries where one already contains a function, rather than duplicating the library function within another script - giving rise to a potential namespace conflict between different versions later. 2. Bridge menus: Given how central scripting is to Bridge I feel there should be a top-line scripts menu (which I wish could be accessed via an FKey). We could call it 'Scripts' (lol). All non-startup scripts could be listed within that menu - perhaps some guidelines as to order would be useful -
Are the following statements equivalent var bt = new BridgeTalk; bt.target = "photoshop"; and #target photoshop I am trying to get clear exactly when the target needs to be specified. Is this right: 1. When running scripts from one app which require a different app (eg from bridge for photoshop or from photoshop for bridge. 2. For all scripts in the StartupFolder. 3. Not required for scripts to be run in the app from which they are called (for example, PS assumes that a script run from it's own script menu is for PS). Second question, can you wrap a target statement in an if statement eg: if (app.version[0] == '9') { # target photoshop } to prevent syntax errors with CS1 I found what looks like a minor bug with the target statement today. The first characters of a script were #target photoshop When run from photoshop directly, no problem. When run as an include from another photoshop script I got Error 8: Syntax error #target photoshop. If I put a linebreak before the #tar
The following script was (severely) hacked from Bob's OpenClose_PS.jsx. It is called from Bridge and runs the target script in Photoshop. It seems to work even with complex scripts that go from Photoshop back to Bridge to do more things in Bridge. #target bridge function getScript ( ) { var scp = "remoteScript = " + remoteScript + "\n"; scp += "remoteScript();"; return scp; } function remoteScript ( ) { var f = new File ('/c/Program Files/Adobe/Adobe Photoshop CS2/Presets/Scripts/ah-rawprocessor1.js'); if (f.open('r')) { var sStr = f.read(); } else throw('failed to open script'+f.fsName); eval(sStr); } function runScript ( ) { var bt = new BridgeTalk (); var theScript = getScript(); bt.target = "photoshop"; bt.body = theScript; bt.send(); } runScript(); BUT I do not understand what is going on in the first line of the getScript function - or perhaps in the whole of that function. I would like to understand it better and as part of that find
ASM - what does it do - as far as I can tell it is a way of loading scripts at start-up - is that all. I had hoped it was a flexible way of running scripts as one-offs from Bridge (ie not loaded at startup and not remaining loaded on completion). Another unrelated question. Is there any way of attaching FKeys to anything other than workspaces in Bridge - in particular I would like to be able to open an area of the menu (like the whole view menu), and also to be able to run scripts from a key - as you can with PS using keys attached to actions. Andrew
Hello All, Can I trap the Drag and Drop event of a file from desktop through Scripting for Adobe Bridge. Thank you all in advance. Regards Farzana.
This is a genuine question - what do you use it for. Every potentially useful thing I try to do on it (for example capture variable values mid-script or run scripts from it etc), either does not seem to work or is so difficult to get to work it is easier to debug without it (by putting breaks and alerts in the script itself and running outside the ESTK). I'm sure this is my lack of understanding and skill with the ESTK - could some of you who use it just step through some of the more simple but worthwhile things you do with it. Andrew
Since BridgeTalk seems to (mostly) work across CS2 apps on the same box, how about extending it to work across CS2 apps on multiple boxes? I'm thinking of a situation where you have to process several thousand images and you've got a couple dozen boxes at your disposal (and license, of course). You could send of a batch of images to each box in turn until all the images have been processed. Then again, if I really had to do this, I'd probably want to handle the task distribution and management myself. But I would still like to offload processing to batches to a second box so I can kick back and play Doom3 without the PS-induced latency.
I'm experimenting with creating an external data file to track Bridge selections. I've come across two problems, one of which I have found a fix for, the other not. If I obtain 'app.document.selections' following a 'select' event type, the list I get is actually the list prior to the latest selection. So if I had test1.jpg selected and switch to test2.jpg, app.document.selections[0] will be test1.jpg. The same applies to using 'deselect' that actual deselection does not show in the app.document.selections list when the event is triggered. The fix for this is to use event type 'preview' which returns the latest selections at the moment you change the selection. Unfortunately, preview does not update when you click when you deselect - and since deselect and select events both seem to come ahead of the updating of the selections list, using them does not work. Any suggestions / ideas on this. Andrew Here is the code I am currently using: onThumbnailEvent = function( event ){ if(
I recently upgraded from Photoshop Elements 3.0 to Photoshop CS2 and the one feature that I can't seem to find in Photoshop CS2 is an automated method for resizing photos and automatically attaching or inserting the photos into an email message. Elements 3.0 has a feature that allows you to select the photos you would like to send in Photoshop Organizer and then select a menu option that will resize the images for emailing and automatically attached the photos to new email message or insert the photos into the body of the message with a user selectable frame around each message. Although I still have Photoshop Elements 3.0 installed, I'd prefer to work in Photoshop CS2 as much as possible but I can't seem to find any similar feature either in Adobe Bridge or in Photoshop. Does anyone know if there's any easy way to automatically email photos from Adobe Bridge/Photoshop CS2 similar to the feature included with Photoshop Elements 3.0? Thanks in advance for your help.
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.