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);

Similar Messages

  • 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.

  • Acrobat 8 Pro - how can I backup batch-processing scripts

    Is there a way to backup batch-processing scripts?

    Batch processes are saved locally as SEQU files, with the batch's name being the file name. You can get the path to the folder where they're located by running this code from the JS console:
    app.getPath("user", "sequences")

  • Scripts for starting/stopping managed servers

    All,
    Could someone provide me with some sample scripts for starting/stopping managed Weblogic servers?  I'm specifically looking for ways to start/stop them WITHOUT starting the AdminServer.  I'm running WLS 10.3.6 on Windows Server 2003, and I have NodeManager set to start automatically as a Windows service.
    I know how to set my managed servers up as Windows services so that they will start automatically at boot, but this requires the AdminServer to be running, which I do not want.  I just want a few scripts for starting/stopping the managed servers (and maybe some hints as to how to make them start automatically without starting the AdminServer).
    Thanks in advance,
    Tom

    Hello Puneet,
    Admin console is an web application deployed into AdminServer. Hence if you shutdown AdminServer then you wouldn't able to access Admin console.
    Managed Server would function in MSI mode, however you will not be able to make any configuration or administration activities like deployment , any configuration changes , etc.
    Hello PRISM,
    Can you confirm your requirement about why you don't want AdminServer to be running?
    As I said,  you will loose the administration capability if you don't have admin server running.
    Regards
    Rosario

  • Batch processing "save for web" color shift problem

    In Illustrator CS3, when batch processing "save for web and devices," there is a dramatic color shift in resulting files.
    Is there a workaround for this problem?
    Thanks!
    Karen.

    Make sure the color mode of your documents is RGB (not CMYK) and that your workspace is sRGB.

  • What price do I pay only for Photoshop cc after 12 months

    What price do I pay only for Photoshop cc after 12 months

    No one can forecast the future, but the most likely answer is: The same as the price you're paying now.  There is no variable promotional pricing on the Photoshop plans.

  • Scripting for Photoshop - Warm Up ?

    Hi, I've been looking though the Photoshop Scripting guide, and looking for any tutorials to get warmed up with scripting for Photoshop, but I can't find any ?

    https://www.google.com/search?num=50&newwindow=1&safe=off&site=&source=hp&q=photoshop+scri pting+tutorial&oq=photoshop+scripting+tutorial&gs_l=hp.13..0l2j0i30j0i5i30l2j0i8i30l5.4462 8.60489.0.71161.28.28.0.0.0.0.92.1562.28.28.0.eqrwrth.1.0.0...1.1.16.hp.HVzjgJ5O9iw

  • I would like to set a capture time so it stops after 90 mins

    i would like to set a capture time so it stops after 90 mins so if I am not there it stops recording is this possible?

    Thanks. I had tried that, but was still having problems. Then I realized that I was using three addresses on both devices.  Once I changed it to only one email on one iPad and a different email on the other, it worked great. Your message encouraged me to dig deeper and think differently. It worked. Thanks again!

  • After full charge i can use my macbook only for 2hrs and after 20 min my battery percentage decrease from 100% to 87% and it will happend every 20 min .. pls help me

    after full charge i can use my macbook only for 2hrs and after 20 min my battery percentage decrease from 100% to 87% and it will happend every 20 min .. pls help me

    Hi,
    How old is your MBP? how many cycle batter do have ?
    I will also recomend to use the software http://www.macupdate.com/app/mac/24141/battery-health-monitor
    to monitor battery life.
    You should be able to read everything from the software.
    Please post results.
    Regards,
    Mirek

  • How do I start the script for Photoshop CS6 in Bridge CS6 image processor ?

    I am new to Bridge and I am lookiing for a way to batch process images. I opened 'preferences' and did not find Photoshop CS6 under the script list. How do I open and run the image processor? Thanks for any help!!

    I have clicked on 'tools' within Bridge but there is no 'Photoshop' in the drop-down menu.
    Misread your post a bit and see you want the image processor, however, this should be in the same location as the Batch option. If you don't have Photoshop in that list it means the start up script is not active or not installed properly.
    First check Bridge preferences / Start up scripts and see if Photoshop is listed inhere and has a checkmark in front. If no checkmark then set it to on, restart Bridge and try again. If no Start upScript at all first try restart Bridge holding down option key (Mac) or ctrl (Win) and choose reset preferences.
    If still no luck try a reinstall of PSCS6 to also reinstall Bridge again. (you first have to uninstall PSCS6, be sure to have a back up of custom settings etc).

  • 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;

  • Complicated question: dialog box-batch processing script

    I am adapting the working script I found on this forum.
    Script: Open files as layers in Photoshop
    https://forums.adobe.com/thread/1313579
    The goal of the adaptation is to include a javascript Folder dialog to set the save folder destination at run time and
    use this folder destination for the remaining script batch processing functions.
    Presently, the script loads a Bridge stack as Photoshop layers and saves the layered tiff using the Folder dialog.
    The folder dialog is manifesting every time the script encounters a Bridge stack.
    The question is what is the correct script logic to set the destination folder once at run time and keep this destination
    folder for the stack batch processing.
    #target bridge
    var stacks = app.document.stacks;
    var stackCount = stacks.length;
    for(var s = 0;s<stackCount;s++){
          var stackFiles = getStackFiles( stacks[s] );
          if(stackFiles.length> 1){
               var bt = new BridgeTalk;
               bt.target = "photoshop";
               var myScript = ("var ftn = " + psRemote.toSource() + "; ftn("+stackFiles.toSource()+");");
               bt.body = myScript;
               bt.send(5);
    function getStackFiles( stack ){
          var files = new Array();
          for( var f = 0; f<stack.thumbnails.length;f++){
               files.push(stack.thumbnails[f].spec);
          return files;
    function psRemote(stackFiles){
    app.bringToFront();
    var thisDoc = open(File(stackFiles[0]));
    var Name = decodeURI(app.activeDocument.name).slice(0,-4);
    thisDoc.layers[0].name = decodeURI(Name);
    for(var a = 1;a<stackFiles.length;a++){
        open(File(stackFiles[a]));
        Name = decodeURI(app.activeDocument.name).slice(0,-4);
        activeDocument.activeLayer.duplicate(thisDoc);
        app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
        thisDoc.layers[0].name = Name;
    var tifOptions = new TiffSaveOptions();
    tifOptions = new TiffSaveOptions();
    tifOptions.embedColorProfile = true;
    tifOptions.imageCompression = TIFFEncoding.TIFFLZW;
    tifOptions.alphaChannels = false;
    tifOptions.byteOrder = ByteOrder.MACOS;
    tifOptions.layers = true;
    var theFolder = Folder.selectDialog ("Select Folder");
    if (theFolder) {
            var myFile = new File( theFolder + "/" + app.activeDocument.name);
            app.activeDocument.saveAs(myFile, tifOptions, true);  
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

    I am thinking the Folder dialog is not correct for this application.
    On a second thought a persistent dialog to set the save folder path and run the script from the persistent dialog can make sense.
    Any ideas?

  • Batch processing photographs in Photoshop Elements 11

    Hi everyone,
    I've been scanning in a lot of old photographs of late.  Many (probably all) of them would benefit from application of the "dust & scratches" filter, but it doesn't appear as an option in the "process multiple files" pull-down.  I've heard about "autohotkey" being used as an alternative mechanism for doing batch processing, but can't find an example online that works with Photoshop Elements 11.  Would anyone care to share any tips on how I could automatically process my scanned photographs in ways that "process multiple files" doesn't offer?
    Thanks in advance for any assistance anyone can offer.
    Best regards,
    Andrew.

    One way which i've been doing this is to use the Image Processor script from photoshop in pse 11.
    (only works in pse 11 or possibly future versions of photoshop elements)
    You can download the PSE 11 Image Processor.zip, extract the file (right click on the zip and press Extract All)
    https://workspaces.acrobat.com/?d=ZOP9CgDC38plXHju4uVLkQ
    and then copy the Image Processor.jsx to:
    C:\Program Files (x86)\Adobe\Photoshop Elements 11\Presets\Scripts (64 bit version of windows 8)
    C:\Program Files\Adobe\Photoshop Elements 11\Presets\Scripts (32 bit version of windows 8)
    Start or restart pse11 and in the Expert mode it should be listed under File>Automation Tools>Image Processor
    (an image doesn't have to be open to run the script)
    Then we just need to know if you want the Dust and Scratches to use the same settings all the time or you want to be able to adjust the filter between photos.
    (so we could send you the action to use with the image processor)
    The image processor is similar to process mutiple fles except you can choose to run action that you have loaded in Window>Actions on the processed photos.

  • Batch load script for Order Management with Oracle R12 EBS

    Hello,
    I am looking for a way to load a million dummy test records into Order Management. For example, I would like to automate a batch process to generate a million new sales orders for Oracle 12.1.1 EBS on Linux platform. If anyone has an idea on how to script this, would appreciate your help.

    Two questions:
    1. How would I modify the following script to generate a million new orders for OM:
    2. How can I register and create a concurrent program with the script?
    SET SERVEROUTPUT ON;
    DECLARE
    v_api_version_number NUMBER := 1;
    v_return_status VARCHAR2(2000);
    v_msg_count NUMBER;
    v_msg_data VARCHAR2(2000);
    -- IN Variables --
    v_header_rec oe_order_pub.header_rec_type;
    v_line_tbl oe_order_pub.line_tbl_type;
    v_action_request_tbl oe_order_pub.request_tbl_type;
    v_line_adj_tbl oe_order_pub.line_adj_tbl_type;
    -- OUT Variables --
    v_header_rec_out oe_order_pub.header_rec_type;
    v_header_val_rec_out oe_order_pub.header_val_rec_type;
    v_header_adj_tbl_out oe_order_pub.header_adj_tbl_type;
    v_header_adj_val_tbl_out oe_order_pub.header_adj_val_tbl_type;
    v_header_price_att_tbl_out oe_order_pub.header_price_att_tbl_type;
    v_header_adj_att_tbl_out oe_order_pub.header_adj_att_tbl_type;
    v_header_adj_assoc_tbl_out oe_order_pub.header_adj_assoc_tbl_type;
    v_header_scredit_tbl_out oe_order_pub.header_scredit_tbl_type;
    v_header_scredit_val_tbl_out oe_order_pub.header_scredit_val_tbl_type;
    v_line_tbl_out oe_order_pub.line_tbl_type;
    v_line_val_tbl_out oe_order_pub.line_val_tbl_type;
    v_line_adj_tbl_out oe_order_pub.line_adj_tbl_type;
    v_line_adj_val_tbl_out oe_order_pub.line_adj_val_tbl_type;
    v_line_price_att_tbl_out oe_order_pub.line_price_att_tbl_type;
    v_line_adj_att_tbl_out oe_order_pub.line_adj_att_tbl_type;
    v_line_adj_assoc_tbl_out oe_order_pub.line_adj_assoc_tbl_type;
    v_line_scredit_tbl_out oe_order_pub.line_scredit_tbl_type;
    v_line_scredit_val_tbl_out oe_order_pub.line_scredit_val_tbl_type;
    v_lot_serial_tbl_out oe_order_pub.lot_serial_tbl_type;
    v_lot_serial_val_tbl_out oe_order_pub.lot_serial_val_tbl_type;
    v_action_request_tbl_out oe_order_pub.request_tbl_type;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('Starting of script');
    -- Setting the Enviroment --
    mo_global.init('ONT');
    fnd_global.apps_initialize ( user_id => 123
    ,resp_id => 456
    ,resp_appl_id => 789);
    mo_global.set_policy_context('S',785);
    -- Header Record --
    v_header_rec := oe_order_pub.g_miss_header_rec;
    v_header_rec.operation := oe_globals.g_opr_create;
    v_header_rec.order_type_id := 1005;
    v_header_rec.sold_to_org_id := 7157;
    v_header_rec.ship_to_org_id := 5480;
    v_header_rec.invoice_to_org_id := 5181;
    v_header_rec.order_source_id := 0;
    v_header_rec.booked_flag := 'N';
    v_header_rec.price_list_id := 7018;
    v_header_rec.pricing_date := SYSDATE;
    v_header_rec.flow_status_code := 'ENTERED';
    v_header_rec.cust_po_number := '99478222532';
    v_header_rec.sold_from_org_id := 83;
    v_header_rec.salesrep_id := -3;
    v_header_rec.transactional_curr_code:= 'GBP';
    v_action_request_tbl (1) := oe_order_pub.g_miss_request_rec;
    -- Line Record --
    v_line_tbl (1) := oe_order_pub.g_miss_line_rec;
    v_line_tbl (1).operation := oe_globals.g_opr_create;
    v_line_tbl (1).inventory_item_id := 27893;
    v_line_tbl (1).ordered_quantity := 1;
    v_line_tbl (1).unit_selling_price := 2000;
    v_line_tbl (1).calculate_price_flag := 'Y';
    DBMS_OUTPUT.PUT_LINE('Starting of API');
    -- Calling the API to create an Order --
    OE_ORDER_PUB.PROCESS_ORDER (
    p_api_version_number => v_api_version_number
    , p_header_rec => v_header_rec
    , p_line_tbl => v_line_tbl
    , p_action_request_tbl => v_action_request_tbl
    , p_line_adj_tbl => v_line_adj_tbl
    -- OUT variables
    , x_header_rec => v_header_rec_out
    , x_header_val_rec => v_header_val_rec_out
    , x_header_adj_tbl => v_header_adj_tbl_out
    , x_header_adj_val_tbl => v_header_adj_val_tbl_out
    , x_header_price_att_tbl => v_header_price_att_tbl_out
    , x_header_adj_att_tbl => v_header_adj_att_tbl_out
    , x_header_adj_assoc_tbl => v_header_adj_assoc_tbl_out
    , x_header_scredit_tbl => v_header_scredit_tbl_out
    , x_header_scredit_val_tbl => v_header_scredit_val_tbl_out
    , x_line_tbl => v_line_tbl_out
    , x_line_val_tbl => v_line_val_tbl_out
    , x_line_adj_tbl => v_line_adj_tbl_out
    , x_line_adj_val_tbl => v_line_adj_val_tbl_out
    , x_line_price_att_tbl => v_line_price_att_tbl_out
    , x_line_adj_att_tbl => v_line_adj_att_tbl_out
    , x_line_adj_assoc_tbl => v_line_adj_assoc_tbl_out
    , x_line_scredit_tbl => v_line_scredit_tbl_out
    , x_line_scredit_val_tbl => v_line_scredit_val_tbl_out
    , x_lot_serial_tbl => v_lot_serial_tbl_out
    , x_lot_serial_val_tbl => v_lot_serial_val_tbl_out
    , x_action_request_tbl => v_action_request_tbl_out
    , x_return_status => v_return_status
    , x_msg_count => v_msg_count
    , x_msg_data => v_msg_data
    DBMS_OUTPUT.PUT_LINE('Completion of API');
    IF v_return_status = fnd_api.g_ret_sts_success THEN
    COMMIT;
    DBMS_OUTPUT.put_line ('Order Import Success : '||v_header_rec_out.header_id);
    ELSE
    DBMS_OUTPUT.put_line ('Order Import failed:'||v_msg_data);
    ROLLBACK;
    FOR i IN 1 .. v_msg_count
    LOOP
    v_msg_data := oe_msg_pub.get( p_msg_index => i, p_encoded => 'F');
    dbms_output.put_line( i|| ') '|| v_msg_data);
    END LOOP;
    END IF;
    END;
    /

  • Can i batch process/save for web various images to the same exact KB size? not just the quality perc

    Hello,
    I have a batch of 500 jpg images all in different sizes 732 KB, 634 KB, 664 KB etc... I need to compress / save for web down to 130 KB the entire batch.
    I've managed to create an action which compresses them lower than 130 KB at different sizes depending on how light or dark the images are,  but still not to an exact number. Is there a way to create such an action or script?
    I'm working off of Photoshop CS5, iMac 10.5.8
    thank you for time,

    Thank you for your response eartho, I have a client which needs them at that size for their site.
    I figure i'll compress them as close as possible to 130 KB, but when I automate the batch resize certain images don't fall under 130 KB which is forcing me to go through the entire batch and look for those, and thus compress them individually.

Maybe you are looking for

  • HP Laser Jet 1320n and mac os 10.7.4

    When trying to add the 1320n Laser Jet printer to my computer it says "The selected printer software is available from Apple - Click to download and add this printer."  When I do this a Set Up window appears then I receive the message: "The software

  • Calculation of peaks in queries

    Hello, I'm facing a problem concerning a query, and I need help to find the best choice. The aim is to display maximum issues of stock movements for one day, using infocube containing movements from standard extractor 2LIS_03_BF. More precisely, the

  • Photo viewer not displaying photos properly

    when i go to photos viewer n open any pic,d pic open wit a blur image n a ring on top of it keeps rotating keepin d pic in blur state. When zoom the pic shows properly but d ring still keep rotating. However not able to view d pics in small size. Its

  • Macbook pro hot

    Hi, I have a Macbook pro early 2011 model and tends to heat up very quickly to around 65c where its hot to touch.The fans also reach up to a speed of 2400rpm making it very noisy and very hot. Is there something wrong with my mac, or all is well. Tha

  • Help with an SQL Query on the Logger

    We are running UCCE 8.5(3) and need help with an SQL query. When I run the below I would also like to see skill group information(name preferably)? Any help would be greatly appreciated! select * from dbo.t_Termination_Call_Detail where DateTime betw