Questions
Recently active
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.
I'm very confused about what the import and export language extensions do and when one should use them. I have a Bridge application with multiple source files. As long as I don't call code in another file from the startup execution path (before all source files are loaded) and only call across modules after Bridge is running (e.g. from events in Bridge), I don't seem to need import and export. All source files seem to be in the same namespace and all can see each other's global objects/functions. So, when would someone use import or export? And, what is the #engine that the manual discusses in relation to import and export? If some of my source files are library files that I intend to be used by multiple different files/applications, should I be using import/export for that use? Or is this only applicable when there are somehow multiple JavaScript engines involved? And when would that situation arise? --John
I am trying to run the following script and while the "navBar" opens up and becomes visible, I get an error message from bridge that says "could not locate remote server". ------- app.document.topNavbar.type = "html"; app.document.topNavbar.height = 100; app.document.topNavbar.file = new File("c:\\x.html"); app.document.topNavbar.visible = true; ------- The file exists and I can view it with an html editor, but it just won't show in Bridge. I also tried using the path "/c/x.html" with no success. Any ideas?
While scripting Bridge, is there a way to invoke a method on an external object such as a COM object or a DLL function? Doing everything in Javascript is dandy for basic procedures, but if it gets complex or we already have procedures compiled in COM DLLs we'd like to be able to use them!
Good Morning, I hope someone out there can help..... I am having trouble saving all the metadata info using Bridge. I've tried filling in the sections both in Bridge, and 'file info' in PS, and saving the metadata template, and for some reason, all saves ok, except the copyright status, and copyright info url sections. I have checked these check boxes are ticked before I save and close the file, and when I reopen the image, again, both these fields are empty. This happens regardless of if I use 'append metadata' or 'replace metadata', or select all in Bridge and set the metadata via the file info option. The information will only save if I apply to each individual file via photoshop, which is very time consuming, even if I automate an action... Adobe Technical Support have advised me to ask on the forum if there is a known script...please help! many thanks amanda
One of the things we did when we developed the Bridge Workflow Automation Scripts, was create a set of libraries to make bridge scripting easier and more productive. The libraries are AdobeLibrary1.jsx and AdobeLibrary2.jsx. There is an AdobeLibrary3.jsx, but it's primarily patches for the other two. Over the next few weeks, I am going to post some messages about those libraries to help get folks started bridge scripting. First up are some file handling utilities. getBridgeThumbnails and getBridgeFiles are two library functions that return the selected (in Bridge) Thumbnail objects or File objects. getBridgeFiles takes the output from getBridgeThumbnails and converts them to File objects. These functions also ensure that any Version Cue files that were selected are up to date on the local file system prior to returning the selected objects. The definition is: getBridgeThumbnails = function( mask, getFolderChildren, filesOnly, firstOnly ) Where: mask is a comma delimited list o
I have a script I'm working on that consists of multiple files. Just like I do in C++, each class has it's own file. I can get the script to run properly by using the #include directive, including all the script files from one master script file that lives in the startup directory. But, I can't get breakpoints for the debugger or execution errors into the debugger to work in any of the files except the master script file. How should I be configuring this for proper debugging with multiple source files? --John
I want to write a "thing" that will add fixed metadata to selected files. e.g. put in a copyright notice. I call it a thing because my question is what or where would be the simplest place to do this? I'm comfortable digging into Javascript for Bridge. I've done it for Photoshop. I'm wondering if I should use the Bridge Javascript interface, the SDK that Adobe has for metadata, or perhaps there is a way to do this as an action in Photoshop. What would be really nice would be something fairly sophisticated where I could save pre-filled templates.
I'd like to execute the equivalent functionality to some existing menu commands in Bridge from a Bridge script. In particular, I'd like to be able to turn off the favorites panel and the folders panel (View/Favorites Panel) and (View/Folders Panel). Using the published menu identifiers for them, I can tell if they are checked already (e.g. displayed already), but I haven't figured out how to actually call those commands. In case you are wondering why I'd like to turn thse off, I'm creating a new window/document and displaying a custom browse scheme. When using a custom browse scheme, the folders window shows nothing useful so I'd like to turn it off. Further, since I'm not displaying files and folders, I think it will be less confusing to users if they don't see the folders pane. Any ideas? --John
Yesterday my Bridge stopped opening files. I have to go to the file folder once I know the file name and open it the old fashioned way. Anyone know if there is a secret code to get it to open files again? This morning I went to the downloads and downloaded the latest Bridge update, but it did not debug it. Even when you go to Bridge> File> Open, nothing happens. Any help would be appreciated. Jackie Olson kenolson@mchsi.com www.kenolsonphoto.com
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.