Batch processing with a re-save Script

i have a script that i use to re-save a master file that may or may not have many layers, channels and/or paths.  when i have the master file open, i run the script and it flattens the image, deletes all the channels and paths, and then does a "save as" step saving the file as a tiff with lzw compression.  this all takes place without any user input or dialogs.  the script is copied at the bottom for reference.   i have made an action out of this script and it works fine everytime.  the problem is that when i try to batch process multiple file with this action, it seems that regardless of which options i choose in the batch processing window for saving (e.g. "none", save and close", etc.), the action is interrupted with the usual "save as" dialog window and even though lzw is specified in the script, i also have to manually select this option in the dialog.  does anyone know how to accomplish what i am trying to do (batch "save as" with lzw compression to files that are saved as uncompresseed tiffs) without having to stop for any dialogs?  please help!!!!  thanks.
johnh h.
if(documents.length){
var saveFile = new File(activeDocument.fullName.fsName);
SaveTIFF(saveFile);
function SaveTIFF(saveFile){
    tiffSaveOptions = new TiffSaveOptions();
    tiffSaveOptions.embedColorProfile = true;
    tiffSaveOptions.alphaChannels = true;
    tiffSaveOptions.byteOrder = ByteOrder.IBM;
    tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;
    activeDocument.saveAs(saveFile, tiffSaveOptions, false, Extension.LOWERCASE);
    activeDocument.close();

hey michael,
your reply made me curious to try something i hadn't tried before which was to run the "batch" processing from within photoshop and to my surprise it worked.  however if i repeat the exact same thing from within bridge (although in bridge i am selecting multiple files instead of the enclosing folder) it runs into the same problem.  so you have 1/2 solved my problem.  did you actually get it to run properly from bridge (bridge/tools/photoshop/batch) or did you run it from within photoshop itself?  please let me know... i am very curious to detmine the source of the problem.  thanks.  i appreciate the help.

Similar Messages

  • Batch processing with an image overlay

    Is it possible to do batch processing with an image overlay in FW CS4?
    I'm trying to resize several hundred images and place rounded corners on them.
    If this cannot be done in FW, does anyone know of another program that could accomplish this?

    Hi Marje,
    It's possible to include both resizing and image overlay in a custom Fireworks command that can be used in batch processing.  To get started, you could check out this tutorial that deals with the first step.
    That article describes how to perform image resize and overlay (in that case, a watermark), and then how to record the steps and turn them into a custom command that can be later used in batch processing.
    Once you saved the custom command, click File >> Batch Process, and follow the steps below:
    In the first window, select the images you want to process.
    On the next screen, open the Commands dropdown menu and select the custom command you created (it'll probably be on the bottom of the list), and click the Add button to include it in the batch process list.
    Finally, on the next screen select the location of the processed files, and optionally save the batch script for later use.
    Good luck!

  • How to use batch processing with jpg pictures taken with iphone cameras?

    How to use batch processing with jpg pictures taken with iphone cameras?

    Open the editor . Go to file>process multiple files
    Sent from my iPad

  • Batch Process Export As and Save As JPEG Question?

    What is the method for creating scaled JPEGs from PNG files with batch processing (File | Batch Process...)?
    Application environment: Fireworks CS4.
    Using History panel, I manually captured instructions
    Modify | Transform | Numeric Transform (13%)
    Modify | Canvas | Fit Canvas
    File | Save As (JPEG)
    History panel's saved JavaScript file script:
    fw.getDocumentDOM().scaleSelection(0.11999999731779099, 0.11999999731779099, "autoTrimImages transformAttributes");
    fw.getDocumentDOM().setDocumentCanvasSizeToDocumentExtents(true);
    fw.saveDocumentAs(null, true);
    Running this sequence as a batch job requires manually selecting JPEG and "okaying"
    CS4 documentation for saveDocumentAs is defined with different argument list: fw.saveDocumentAs(document) .  CS4 documentation also has: fw.exportDocumentAs(document, fileURL, exportOptions) to export JPEG (80% quality).  CS4 feature File | Image Preview... | Export does not create a history record for guidance.  I cannot find an example of either instruction save a file to a local folder in JPEG format.  My objective is to add an additional batch step Rename (prefix) for the JPEG output, and script this a a batch process.

    Joyce,
    Thank you.  Your suggestion helped clear my mental log jam.
    Fireworks batch scripting seems to work in reverse.
    Using "Batch Process..." scripting interface 'Export' (as JPEG) option first, 'Rename' (add Prefix) option second, and then follow these by using the history panel's 2 previously saved steps (Numeric Transform, Fit Canvas), batch process now works.  PNG file (list) is saved in targeted folder as a reduced scale JPEG with a prefixed file name.
    Batch Process allows the entire newly defined command sequence to be saved (script.js).  Placing this (renamed) file into Firework's batch look-up directory for scripts (C:\Documents and Settings\account_name\Application Data\Adobe\Fireworks CS4\Commands) does not work.  The file name does not display in "Batch Process" window "Batch options:" Commands drop-down list.
    Batch Process only works by recreating the above steps each use.
    The new (JavaScript) file is 26 KB.  Is script file size limited in Fireworks "Batch options:" feature?

  • Batch processing with JTA not possible?

    hi ng,
    i'm hoping that someone can tell me if it is actually possible to use JTA transactions in non-app server spawned threads and, if so, how to do it.
    The problem we have is that we need a demon thread executing updates over a cached cluster (hence the need for JTA), but sun 7 uses a thread local to store the context and transaction info, if we try to perform JTA transactions in our own thread it bombs out from trying to lookup the missing data.
    We've tried to re-create what is expected in the thread local and bind it in but this is a large hack involving changing accessibility levels etc and we can't even get it to work anyway.
    The other option we've considered is to do the processing in a servlet but that would make the process widely accessible.
    Any help would be most appreciated.
    Thanks,
    Cam

    Hi Marje,
    It's possible to include both resizing and image overlay in a custom Fireworks command that can be used in batch processing.  To get started, you could check out this tutorial that deals with the first step.
    That article describes how to perform image resize and overlay (in that case, a watermark), and then how to record the steps and turn them into a custom command that can be later used in batch processing.
    Once you saved the custom command, click File >> Batch Process, and follow the steps below:
    In the first window, select the images you want to process.
    On the next screen, open the Commands dropdown menu and select the custom command you created (it'll probably be on the bottom of the list), and click the Add button to include it in the batch process list.
    Finally, on the next screen select the location of the processed files, and optionally save the batch script for later use.
    Good luck!

  • Batch processing with AE on mac

    Hi guys
    I tried with Apple Script to make some barch processing on mac, using
    tell application "Adobe After Effects CS5"
         DoScript ";"
    end tell
    and... it opens the After effects UI.
    I tried using a jsx file with the variant
    DoScriptFile ... and same result
    I tried with aerendercore, which seems to work... but  the use of the function app.newProject() creates errors....
    Does anyone have any successfull attempt?
    I works without any problem on windows with
    afterFx -r "script.jsx"

    Hi Marje,
    It's possible to include both resizing and image overlay in a custom Fireworks command that can be used in batch processing.  To get started, you could check out this tutorial that deals with the first step.
    That article describes how to perform image resize and overlay (in that case, a watermark), and then how to record the steps and turn them into a custom command that can be later used in batch processing.
    Once you saved the custom command, click File >> Batch Process, and follow the steps below:
    In the first window, select the images you want to process.
    On the next screen, open the Commands dropdown menu and select the custom command you created (it'll probably be on the bottom of the list), and click the Add button to include it in the batch process list.
    Finally, on the next screen select the location of the processed files, and optionally save the batch script for later use.
    Good luck!

  • Batch process with History Command

    I want to batch process to resize pictures and have a final product as follows:
    Size: 220 x 140 (this detail is not important, but should be cosistant throughout).
    The final image has a feather of 10 pixels on all sides.
    I tried using the History steps in which I first resized the image to desired dimensions and to achieve the feather effect I used a mask (paste as mask from the Edit menu in Fireworks cs4) using a white rectangle 5 px smaller on all sides (210 x 130) with a feather = 10px.
    I saved the history as a command, but it does not run because it has difficulties recording steps where I have to tamper the rectangle (size, align, move etc.).
    Another problem is that resizing the image does not honour the height consistently (but the proportions) which causes a problem with the rectangle size used for masking.
    I don't mind doing this in 2 or 3 separate runs, but the final style of images should be with a feathered edge.
    Would really appreciate some expert advice to run the process/es to achieve the required result.
    Thank you!
    zabberwan

    Both these should do it...
    Image Processor Pro
    http://russellbrown.com/scripts.html
    Picture Processor
    http://www.scriptsrus.talktalk.net/PP.htm

  • Automator query: I want to batch process with a program that doesn't offer batch processing.

    After much searching and experimenting I'm resorting to asking the direct question to see if you good folks can help me.
    I would like to be able to automate some image processing with the software "SketchMee". Unfortunately this is not something that the stand alone can do on it's own. I assume Otto can help me. I would like to essentially have a directory with "raw" (unprocessed) images. Have automator...
    1. open file in SketchMee (SketchMee will automatically render with previous settings)
    2. save new file in new directory
    3. repeat 100's and/or 1000's of times.
    Seems pretty straight forward but I'm having trouble making it happen.
    Does anyone have any advice or info for me here?
    Note: this is not a process that can be done in iPhoto, Photoshop or Graphics Convertor.

    Way better, IMHO of course, is Photoshop Elements.  It is not free but you can find deals on it but if not it really isn't too expensive.  For the amateur or advanced amateur it is far better than DPP (free included software) and even Lightroom.
    Lightroom is designed more for a person that takes 1000's and 10,000's of photos.  It has limited editing featuers.
    PSE is also more user friendly that full blown Photoshop.  Which you can not purchase any longer as it must be rented from Abode on a monthly basis.
    There is the free Gimpshop but it is the least user friendly of the bunch and has a steep learning curve.  But it is free.
    Lightzone is a free copy-cat version of Lightroom.
    But when you are ready for the best photo editing and RAW conversion software there is, there is nothing at the top except Photoshop.
    EOS 1Ds Mk III, EOS 1D Mk IV, EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 85mm f1.2 L II USM, EF 70-200mm f2.8 L IS II,
    Sigma 120-300mm f2.8 EX APO, Photoshop CS6, ACR 9, Lightroom 6

  • Missing something obvious (batch process with ffmpeg)

    I have a number of video clips in .mov format. I want to trim the first four seconds from each, and save with a new name. This script works fine:
    #!/bin/sh
    ffmpeg -i clip1.mov -vcodec copy -acodec copy -ss 00:00:04 clip1trim.mov
    ffmpeg -i clip2.mov -vcodec copy -acodec copy -ss 00:00:04 clip2trim.mov
    ffmpeg -i clip3.mov -vcodec copy -acodec copy -ss 00:00:04 clip3trim.mov
    and etc. I have quite a number of these.
    Being 'typing lazy' I figured something like this would work:
    #!/bin/sh
    for f in *.mov;
    do
    echo "Procesing $f"
    ffmpeg -i "$f"  -vcodec copy -acodec copy -ss 00:00:04  "${f%.mov}trim.mov"
    done
    I know only enough shell scripting to be dangerous, but I figured the problem had to do with quoting or shell substitution -- two topics I am weak on.
    Instead it tries to run each file and throws this error:
    "Unable to find a suitable output format for ' -vcodec'"
    Anyway, I appreciate any help.
    Andy

    #!/bin/sh
    for f in *.mov
    do
    echo "Procesing $f"
    ffmpeg -i "$f" -vcodec copy -acodec copy -ss 00:00:04 "${f%.mov}trim.mov"
    done
    Your script actually looks rather good.
    I can not see anything wrong with it from a scripting point of view.
    You might try running the script using
    sh -x your.script
    which should show you want the actually ffmpeg command looks like after the substitution has occurred.

  • Batch Processing with an Action

    Hello everyone,
    I created an Action within Photoshop CS5.  I saved this action to an .atn file which then I loaded into the CORRECT directory for PSE 10. 
    Once in PSE I can go to Actions and I can see and properly use said Action.  So I know it works.
    My question/problem:  Is it possible to Batch process using "Process multiple files" or something else using this Action?  I know is CS5 the option is there and it is fairly straight forward, however I did not see this option anywhere within PSE.
    I am hopeful that I'm missing something or there is just some trick that I don't know about. 
    I appreciate any help that is provided.  Thanks in advance.

    You would need to open the BatchWin,atn file located in (this is for win 7 and vista x64) into cs5 (these are just actions that elements uses for process multiple files)
    (be sure to put a copy of the original file somewhere in case you ever need it)
    C:\Program Files (x86)\Adobe\Photoshop Elements 10\Locales\en_US\Support Files
    Then add your action to the list, without any open steps in the action and you'll have to add the save step at the end of the action (the format you want to save the files in).
    Then save the action set and put it back into Support Files Folder.
    example of an action added:
    example of how it looks in elements:

  • Batch processing with filename filter

    Hi guys,
    Does anyone have any idea how to run a specific action in batch along with a filename filter?
    My problem is I have a folder with subfolders ie...  0001, 0002, 0003, 0004 etc   all these folders have approx 100 jpg files with the same filenames in each.
    a sample of my images are: landscape-oraange.jpg , landscape-blue.jpg , landscape-red.jpg , portrait-orange.jpg etc etc
    I was wonder of a way to just run the specific batch action on filenames containing a certain word, for instance to apply to all files containing the word "landscape" and exclude all other files.
    I cannot copy all files under the subfolders to a seperate folder and run this way... as all filenames are the exact same as the other folders.
    Does anyone have any advise?
    Thanks again guys,   Jamie.

    This might provide not quite what you are looking for but something similar.
    Insert the correct Action and Set names in the line
    app.doAction("Action 3", "Set 1")
    and change the variable theIdentifier to the name part you want to use as a criterium.
    This would work only if there are no spaces in the names by the way.
    // 2012, use it at your own risk;
    #target photoshop
    // select folder;
    var theFolder = Folder.selectDialog ("select folder");
    if (theFolder) {
    // define the name part to look for;
    var theIdentifier = "Untitled";
    var theFiles = theFolder.getFiles(new RegExp(theIdentifier+"\\S*.(jpg|tif|eps|psd)$", "i"));
    // work through the files;
    for (var m = 0; m < theFiles.length; m++) {
    // open image;
    var theImage = app.open(theFiles[m]);
    // perform action;
    app.doAction("Action 3", "Set 1")

  • How to manage automated batch processing with save for web?

    Hi All,
    This has been driving me insane. I am currently in PhotoshopCC and I know that several versions back I had no problems doing this but now I cannot create a generic action that I can then have save out to different folders.
    What I used to be able to do and want to do again:
    I have a project that requires me to turn a print magazine into a website quarterly. I receive the files packaged from InDesign and I want to process the images to specific sizes and then save as web optimized.
    For each article I want to be able to select the source folder and then a unique folder to save to for each article, so that optimized  images for each article remain with the article files.
    I never had an issue  doing this until a version or two back, since then I can only create an action that will save for web to whatever folder is in the action.
    I resorted to using image processing scripts and never realized I was not resampleing  the images down to 72 dpi and am having an attack of how could I be so stupid.
    If anyone can direct me to creating an action that can accomplish the save for web with the ability to control what folder my files save to I'd really appreciate it.
    Thanks,
    Rose

    http://russellbrown.com/scripts.html akk you need is the Image Processor Pro.jsx and Image Processor Pro.xml  from his services install package just rename the file extension to Zip and extract its contents and copy the two files to your Photoshop's path presets\scripts\

  • Batch processing with Script Events Manager

    Hello all,
    I use the Script Events Manager to run a group of actions on a single file during the file open event.
    This workflow works well when dealing with a small quantity of files.
    Is there an efficient way to apply simultaneously a group of actions to folder of images?
    The PSCC Batch processor, Image Processor and Image Processor Pro only allow the use of one action at a time.
    I have try creating a combo action which includes a group of actions to run in the Batch Processor and Image Processor.
    When doing so I receive an error message from the Image processor and dialogs that from the Batch processor that suspend
    the program activity. I have had no luck with a combo droplet as well.  

    My system has 8 Gb of Ram and 4 processors. I doubt it's the system. I've had problems with CS Master Collection since day one. My main complaint is the ******* tabs and interface. Everything is so chunky. CS2 was smooth as butter. They keep making their products use more RAM and it's ridiculous. The tabs don't help, they only make life harder.
    Thanks for the suggestions, I was hoping not to have to reinstall PS, but looks like it's the only option.

  • Downloading 4.0 onto XP it takes a long conection process, with boxes on unresponsive script and a java scipt app saying type error and is all very annoying so what can I do I want the old firefox back a

    I downloaded Firefox 4.0 replacing an earlier Firefox version. I have XP on my computer. When I now click on the Firefox icon after a time a window saying Unresponsive script and underneath script chrome etc comes up. I then press stop script and another window comes up Java Script application and type error. Eventually I get on to the internet but it's all very frustrating. I wish I had ignored the request to download 4.0
    Please help

    I can assure you that the sympton is indeed identical. For as the computer got worse, eventually it refused to start up and made 3 beeps. It has done this before, but today more times than before (just like when it first had this problem). Where-ever you go on the internet, it will tell you that the 3 beeps suggest the RAM is at fault. So, the same 3 beeps, means the same problem, which is the RAM.
    With that in mind, I re-ask my question with the same reasoning and justification; am I still covered under warranty? (Reasoning/Justification: Considering the original problem was not entirely fixed, though something else was to make the MacBook Pro last a little longer before the reoccurance of this problem).

  • Batch Process/Actions Automation with CS3 - Save 2 Files at Once

    Trying to figure this out is making my head spin. Say I have three files in a folder called house.tif, apple.tif, and dog.tif. I want to run a batch process on those to save two separate PDF files for each, one high res and one low res, that would ideally stay in the same folder and be named house_lowres.pdf and house_highres.pdf, apple_lowres.pdf and apple_highres.pdf etc.
    How can I do that with Actions and Batch Processing without overwriting any files?
    Thanks!
    Kim

    I was wondering if you had a chance to look more into it?
    Thanks a lot,
    Didier-

Maybe you are looking for