CS4 open script using Bridge batch processing

I wrote a script in CS to open a logo file (.psd) and copy it onto a photo
Since upgrading to CS4 the script will not work with batch processing in bridge. It does work in Photoshop on a single image however.
Here is my open script....when I batch process it brings up an open dialog instead of just opening the file
///CODE
var activeDoc = activeDocument;
var logoDoc = open(File("/c/stlg.psd"), OpenDocumentType.PHOTOSHOP, false);

That didn't work either :(
I was looking at the OpenDocument.jsx sample in the scripting samples directory and tried batch processing it....it opens a photoshop sample psd file and it worked...though I don't understand the code or why my code above won't work
/////OpenDocument.jsx code
//var strSamplesFolderDirectory = localize( "$$$/LocalizedFilenames.xml/SourceDirectoryName/id/Extras/[LOCALE]/[LOCALE]_Samples/value =Samples" );
//var strSampleFileNameLayerComps = localize ("$$$/LocalizedFilenames.xml/SourceFileName/id/Extras/[LOCALE]/[LOCALE]_Samples/Layer_Com ps.psd/value=Layer Comps.psd");
var fileRef = new File(app.path.toString() + "/" + strSamplesFolderDirectory + "/" + strSampleFileNameLayerComps);
open (fileRef);
fileRef = null;

Similar Messages

  • Station global variable per UUT using a batch process model

    Hi,
    I have 4 UUTs which are tested using individual COM ports. I am using 4 Station Global variables to store the 4 Com ports - COM port assignments are in no particular order and vary depending on test station PC.
    Example:
    S1= Com12
    S2= Com14
    S3= Com10
    S4= Com9
    Using a batch process model I want to test all UUTs in parallel - I am trying to figure out what is the best/easiest way to pass S1 for UUT1, S2 for UUT2 and so on!
    Any help appreciated.
    Thanks & Regards,
    Shane.
    Solved!
    Go to Solution.

    The easiest way is to use the Runstate.TestSockets.MyIndex property to index an array.  Each batch socket will get an index (0 to n-1, where n is the number of sockets) when it is created.  Then you can create an array (of strings? I can't tell if you just have strings or need a container) and use the property to index the array.
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • Bridge batch processing script for Photoshop stops after ten mins

    I have a javacript to help batch process collections of images in Bridge by sending them (in layers) to Photoshop CS5. It works perfectly, except it stops running after about ten minutes (around 6-10 images) so that I have to keep restarting the script. This behaviour has only started since the script was installed in the Bridge startup folder so that it could be started from the (right click) menu. The script does not seem to time out when run via ExtendToolkit.
    Does anyone know why this is happening?

    Thanks again Paul. Can I ask you where the best place to insert that would be? The script is below - I'm sure you'll recognise it :6).
    I've also been wondering if its possible to alter the script so that the files in bridge are opened in PS as Smart Objects (in layers)? There is a script 'Open as Smart Object in Layers' but I haven't been able integrate it into your fantastic script.
    #target bridge
    if( BridgeTalk.appName == "bridge" ) {
    processDocs = new MenuElement("command", "Process selected docs", "at the end of Thumbnail");
    processDocs.onSelect = function () {
    var sels = app.document.selections;
    var selectedFiles = new Array();
    for(var a in sels){
        selectedFiles.push(sels[a].spec);
          if(selectedFiles.length> 1){
               var bt = new BridgeTalk;
               bt.target = "photoshop";
               var myScript = ("var ftn = " + psRemote.toSource() + "; ftn("+selectedFiles.toSource()+");");
               bt.body = myScript;
               bt.send(5);
    function psRemote(selectedFiles){
    app.bringToFront();
    for(var f in selectedFiles){
    var thisDoc = open(File(selectedFiles[f]));
    /*run an action if required */
    /* app.doAction("atn", "atnSet"); */
    /*script listener code goes here...
      You will need to remove the //===== lines or the script will fail 
    /* end script listener code */
          var saveFile = new File('~/desktop/'+(new Date().getTime().toString())+'.psd');
          app.activeDocument.saveAs(saveFile);
          app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

  • How to use a custom script in a batch process?

    I was recently told that I can Photomerge, crop and save 2 separate folders of images to a 3rd folder in a batch process if I created a custom Javascript.  Are there any examples of how to integrate a custom script as an action in a batch process?

    if you recieve an image from mms you can save the object to gallery and then select it as wallpaper
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Script to open images using bridge for photoshop

    hi,
    i am looking for photoshop script to open set of selected images using bridge into photoshop and handle those images into a layers for the active document.
    Thanks,
    Thulasiram.S

    I'm not 100% sure what you are looking for, but this is not the best forum to be looking. You either want the Bridge scripting forum, or the Photoshop one:
    http://forums.adobe.com/community/bridge/bridge_scripting
    http://forums.adobe.com/community/photoshop/photoshop_scripting
    Also, please trim the links from your signature in the future. (I did it for you this time.)
    Harbs

  • Bridge - Batch Processing has stopped working...help

    I am using Photoshop for Windows in CS2. Have been for years. Work with batch processing and Web Gallery all the time...for years.
    Batch Processing and Web Gallery stopped working (along with other Photoshop features). I upgraded to Windows 7, and photoshop/bridge/indesign, etc work once again.
    Batch Processing and Web Gallery still don't work. When I select items Bridge and click "Tools", "Photoshop", "Web Photo Gallery" it clicks over to photoshop, as if the process is about to begin. But then Photoshop lies there doing nothing. No action menu pops up if I select "Batch" no "Web Photo Gallery" dialog box initiates if I select the gallery.
    Any assistance, that can save me the $1000 on a CS upgrade, will be greatly apprecieated.
    Thank you for your time.

    Look in edit/preferences/scripts and make sure there is a checkmark for both Bridge and Photoshop.  Without that they can't talk.

  • Opening PNG files in Batch Processing, Elements 9

    I shoot in RAW and save my edited photos in PNG format.
    If I try to use Elements 9 to batch-process of folder full of PNGs (source>browse), I can see them listed in the open menu, but grayed out. Elements says "The source folder you have selected is empty." Remember, I can SEE the list of PNG files in this view.
    If I save my photos in TIFF format and put them in the very same folder, Elements will recognize them and batch-process them without any problem.
    Anybody know what's going on? If any program should recognize Adobe's own PNG format, it should be Elements.
    I'm running a Mac with OSX 10.6.7.

    Check your settings - see my example screenshot.
    The file size will be determined by a combination of the pixel dimensions, resolution and quality.
    Resolution makes a big difference. 72 is fine for web use or viewing on a computer monitor but between 240 and 300 dpi is necessary for printing.

  • Printing Adobe PDF using mass/batch processing

    I've got Purchase Order, Contracts and RFQ forms created using Adobe PDF print forms. Currently, immediate processing is used to print/email/fax the forms (that means that after a PO/Contract/RFQ is created, it is immediately printed/emailed/faxed). An enhancement I'm working on is to allow for mass/batch processing so that the forms will be printed/emailed/faxed at a set time each day. The issue I'm facing is that using mass processing, the PDFs become corrupted (for example, the first PDF form is sent ok but subsequent forms become corrupted or become a duplicate of the first one). When customers receive the corrupted PDF, they get the error that the form cannot be opened.
    Does anyone have a suggestion on how to accomplish batch/mass processing using Adobe PDF forms? Right now, the immediate processing path is working fine since the there is low volume. However, the goal is to switch to mass processing once volume increases.

    I copied and made modifications to the SAP standard print program SAPFM06P and called it ZSAPFM06P. I also made copies of the include files. So for immediate output processing, each time a Purchase Order PDF is created it calls the print program ZSAPFM06P. This process works great no matter how many PDFs are created from POs.
    The issue is with BATCH/MASS PROCESSING. Here is the scenario:
    - Purchase requisitions are created anytime during the day.
    - Every 15 mins., the purchase reqs are batched together and an automatic process starts that converts them to purchase orders.
    - Creating each PO calls the print program ZSAPFM06P and depending on the communication strategy, the POs are either printed, emailed or faxed to the customer.
    The problem seems to be that when multiple POs are created, some get corrupted and some become duplicate of other POs. However, using immediate processing, this is never the case no matter how many POs are created.
    I checked the program and the internal tables and variables used in the code do get cleared/reset each time a PO is created so I don't see how using immediate processing works while batch processing doesn't even though they both call the same program.
    I hope this makes it clear a little bit.

  • FDM Scripting Query for last imported source file using Batch Processing

    Hi Experts,
    I'm currently in the processing of automating the FDM load process on our version of FDM 9.3.3 using batch processing and the FDM Task Manager. Most of the process works fine including an email alert which notifies users of when a data load has taken place.
    As part of that email alert I am trying to attach the source file that has been loaded in batch processing. I have managed to get an attachment using the following FDM Script Object of:
    "API.MaintenanceMgr.fPartLastFile(strLoc, True, False)".
    But have noticed that using this only attaches the last "manually" imported file rather than the last file imported using the batch processing.
    My question is: Is it possible for someone to steer me into the right direction of either a more appropriate API or if I have missed a step in my script.
    Any help as always would be much appreciated.
    Cheers
    Pip

    Unfortunately the batch process does not work the same way as on-line. I am assuming you are using the normal batch load and not Multiload (although the batch is simisar).
    the batch file name gets recorded on the tBatchContents table, and moved to the import/batches folder under the folder for the current batch run. However, if successful the file gets deleted (and from memory does not get archived). To add the import file to the e-mail, after a successful load, i think you will need to store a copy of it prior to importing the file.

  • Batch Processing when Integration script is used

    Can we set up batch processing when we are using integration scripts to connect to source tables? If yes, then what are the settings required ?
    Thanks

    You need to create an empty flat file in the Openbatch folder (assuming you are using the single period load). the format for the file name is in the admin guide. I generally add this to the batch script before the batch process section.

  • Batch Processing only working on open image

    I am trying to run a Batch process on several folders of photos.  In order to use the Batch process I need to have an image open, so I open a random image and run the batch process.  I'm not using any custom made actions, only the defaults.  Instead of taking the photos in a given folder, running the batch process, and creating a new folder for these images, Photoshop keeps running the batch process on the open image.  Not sure what I am doing wrong? Any help would be appreciated.

    Try using File - Scripts - Image Processor

  • Bridge will no longer batch process an old watermarking action that i made it says "place" unavailable in Bridge with cs5, does anyone know why?

    I am using cs5 and in Bridge my action that I have used for 2 years all of the sudden says it is unavailable when I try to use the batch process function in Bridge.  I have run updates, reset bridge and photoshop and shut the computer down.  Please help if you have had this happen to you.

    That is a very common error message actions produce when  for some reason the document current state does not support the command or feature used in the action step that gets the error.  With our seeing a screen capture of the error message and being able to see the document window, the layers palette and the actions palette   Its not possible to tell you why the actions is getting that error message.  Most likely its because of the document current state. For example place is not valid for a bitmap mode document.

  • No error generated if batch process load file uses wrong naming convention

    Another interesting one...
    When using the batch processing functionality of FDM, which can be executed by either:
    - FDM Workbench (manually)
    - Hyperion FDM Task Manager (scheduled)
    - upsShell.exe (scheduled and executed from a batch script)
    ..., one has to name the data file (to be loaded) using a specific file naming convention (i.e. "A~LOCATION~CATEGORY~PERIOD~RA.csv" format, for example). However, if one does not name the file correctly and then tries to process the file using batch processing functionality using any of the above three methods, FDM happily moves the file out of the OpenBatch folder and into a new folder, but the file is not loaded as it does not know where to map it to (as expected). However, there are no errors in Outbox\Logs\<username>.err to inform the user, so one is non the wiser that anything has gone wrong!
    When using FDM Workbench, an error is displayed on the screen (POV - "Batch Completed With Errors, ( 1 ) Files Contained Errors"), but this is the only indication of any error. And normally, one would be scheduling the load using upsShell.exe or Hyperion FDM Task Manager anyway...
    Has anyone else noticed this, or am I doing something wrong here? :-)

    Yes, as per my original post the only feedback on any POV errors appears to be when using the FDM Workbench Batch Processing GUI.
    Regarding the "Batch Process Report in FDM" you mentioned, are you referring to Analysis | Timeline accessible via FDM web client? Unfortunately this does not appear to provide much in the way of detail or errors, only general events that occurred. I cannot locate any batch process report, other than the log output I defined when calling upsShell.exe. However, this contains no POV errors...

  • Document Upload in ADF protocol using Open script

    Hi ,
    My transaction is to upload a document into a portal.
    I have recorded this transaction in OPEN SCRIPT using ADF protcol.
    When i playback the script, it uploads a document with no contents in it.
    if i open the uploaded file it has only "Null". The content is missing.
    How do i resolve this?
    Thanks,
    Pradeep

    One more observation.
    While recording the Contents of the file are getting stored in a resourceFile.
    http.postdata(http
                                                .param("{{@resourceFile(2283.postData.rsc, OracleBinary, true)}}")),
    But while playing back the script , no content goes
    Thanks,
    Pradeep

  • How to force Functional Module to use Batch-Process ?

    Hello all,
    I am calling a FM via synchronous RFC. No matter what I try the functional module is started
    in a dialog process in the remote system. This is inconvinient because sometimes the process takes too long and a timeout occurs. I also tried transactional RFC and asynchronos RFC but no  difference here.
    The FM will always be executed in a dialog process.
    How can I tell the functional module to use a batch process ?
    Thank you for your answers,
    Axel

    hi,
    use
      CALL FUNCTION 'HR_START_BATCHJOB_IN_OTHER_SYS'
        EXPORTING
          repid                = 'sy-repid'              "           "Program name
          variant              = 'VAR'
        JOBNAME =
        CALL_BACK_DEST =
        CALL_BACK_ID =
      IMPORTING
        JOBCOUNT =
        INDX_ID =
        TABLES
          valutab              = it_sel.
    you can set your program in batch mode using the above function module
    Yogesh N

Maybe you are looking for