Script for batch processing

Hello
I need help
I created a batch sequence which set watermark and security to pdf files from one directory. Now i want to create another sequence: 1. set security to none and 2. delete watermark.
I have a problem with set security to none because every time i need change preferences for batch process to security method=password security by hand.
Maybe there is a way to change this settings with java script in batch "execute java script"?
Or how i can change with batch sequence a security method from passsword security to "none" if i know password
Thanks in advance

Create a "blank" batch process (ie, without any action), but under the Output Options tick the box to optimize the files and set the optimization settings you want to use.

Similar Messages

  • Creating script in Batch Processing

    I am having issues creating a script in batch processing for any user, including the admin. The error is "Permission Denied - 70". I've rebooted servers, checked shared/NTFS permissions on the folder locations for the application. This is FDM 11.1.1.1, SS and HFM are 11.1.1.2.
    Not finding anything as of yet, and we really need this to work.
    Any help would be great!
    Thanks,
    --Ed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Ed,
    This has to do with OS permissions ... not permissions inside the application.
    Please make sure that the user you are running the software as has full control of the NTFS FileShare.
    Thank you,

  • Save for Web with Optimize File Size for Batch Process

    I have a client who needs to be able to run a batch process on jpg images ranging in size from 600KB to 2.5MB optimizing their file size as close to 200KB as possible. The feature is included in Photoshop's save for web optimize dialog but it doesn't work for batch processes. If you record an action with the optimize to file size option set it processes all the images in the batch based on the quality settings required to resize the image you used during recording, meaning if the image you recorded was 1.5MB the quality setting might be 70 percent to hit the 200KB mark but that wouldn't be the correct quality setting for a 600KB file nor a 2.5MB file those would either be too small or too large.
    I've done quite a bit of searching both online and in the photoshop scripting forums but I haven't been able to find anything that would point me in the right direction.
    My client's paying for this work so if there's someone who knows how to script this who'd rather be paid than just do some pointing we can arrange for that quite easily.
    Thanks in advance for your assistance and suggestions.
    In case it's of importance we're using Photoshop CS4.

    If you don't mind spending a few bucks on a shareware prog, Jpegsizer has the option to save to a filesize.
    You can find it here.
    http://www.tangotools.com/jpegsizer/register.htm
    There is a free trial version, but you can't save files.

  • Shell script for batch compilation of forms 10g on AIX 5.3L AS

    Hi All,
    Can anybody provide me the Shell script for batch compilation of forms 10g and reports 10g on AIX 5.3L AS?
    Regards,
    SAM

    Hi Alex,
    I tried with the below script as well as the one you had posted.
    ORACLE_HOME=/opt/oracle/OraHome_3
    export ORACLE_HOME
    TNS_ADMIN=$ORACLE_HOME/network/admin
    export TNS_ADMIN
    LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/jdk/jre/bin/cla
    ssic:$LIBPATH
    export LIBPATH
    cd ../forms
    for i in `ls *.pll`
    do
    echo Compiling Library $i ....
    $ORACLE_HOME/bin/frmcmp module=$i userid=mydbuser/mydbuser@mydb
    batch=yes module_type=library
    compile_all=yes window_state=minimize
    done
    export ORACLE_HOME=/opt/oracle/OraHome_3
    export ORACLE_TERM=vt220
    export LD_LIBRARY_PATH=/opt/oracle/OraHome_3/lib:/opt/oracle/OraHome_3/jdk/jre/l
    ib:/opt/oracle/OraHome_3/jdk/jre/lib/i386:
    cd ../forms
    for i in `ls *.pll`
    do
    echo "Compiling Library $i ...."
    /opt/oracle/OraHome_3/bin/frmcmp module_type=form userid=mydbuser/mydbuser@mydb
    module=$i batch=yes compile_all=no
    window_state=minimize upgrade=no
    done
    echo "PLL Compilation done"
    But there was a same kind of error thst turning up all the time.
    Compiling Library Agf.pll ....
    Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.4.0 Production
    FRM-10043: Cannot open file.
    Form not created
    I hence updated the permissions on the pll as below
    -rwxrwxrwx 1 oracle oinstall 335872 May 19 16:31 Agf.pll
    But the problem is still persisting.
    My environment details are as below.
    I am working on Win XP machine. Connected to my AS via telnet and xmanager. I have set my DISPLAY to my local IP.
    Is there any thing more that I need to do? If so then let me know.
    Regards,
    SAM

  • Labview for batch processing

    dear sir,
     i am using labview7.0 for scada application  using dsc module. In this application we are aquiring data from instrument. Now i want to develope scada software using labview dsc module for batch processing. But i donot have any idea about batch processing. Please help me to know more about batch processing. And how can i develope the scada software for that
    thanking you
    falgandha

    Hello,
    Batch processing typically involves raw materials that are
    combined to mix or react in a certain sequence over a period of time to
    produce the completed output. Often, different recipes are used to
    combine the materials in different ways and with different sequences to
    change the outcome. Automation is used in batch processing to precisely
    control quantities, times and sequences (description found with a Google search of 'batch processing'), and you can use LabVIEW DSC to control your system.  This is accomplished by using data items called tags bound to your hardware.  To send a command to your hardware, you would write a new value to a tag bound to that hardware.  Hardware could include PLC's, Fieldpoint controllers, RTU's, Modbus devices, etc.  Most commonly, you will connect the tags to your hardware via an OPC server.  OPC servers are available from NI, the PLC manufacturer, and several 3rd-party vendors such as Kepware.
    Providing you with more detailed information will be difficult without a more specific question I can help you with  The DSC Module help and shipping examples will get you started with creating your application, so I'd recommend giving those a look.  If you have a more specifc question about how to do something in LabVIEW, let us know and we'll be glad to help!
    Cheers,
    Matt Pollock
    National Instruments

  • Image Sequences and Batch Processing: Can opening files from different folders as image sequences be set up as an action for batch processing?

    I have an ongoing series of tasks that necessitates opening the contents of a series of folders as image sequences.
    I'm used to setting up some fairly complex actions, including ones that are intended to be applied to all of the contents of materials in various subfolders, but for some reason I cannot get an Open-with-Image-Sequence-Checked action to set up in a way that will batch process correctly.
    Complicating matters is that the file prefixes (i.e., the letters before the sequential numbers) and the folders will always have different names from the last time the process had to be carried out.
    The steps I would like the action to carry out would be the following:
    1. Open Subfolder 1 - that is, Photoshop shouldn't be looking for a specific folder. It's just *any* subfolder to the current parent folder.
    2. Select first file in sequenced set of files.
    3. Open as an image sequence.
    4. Open Subfolder 2.
    5. Select first file in sequenced set of files.
    6. Open as an image sequence.
    ...rinse and repeat until Photoshop runs out of subfolders to check.
    Am I asking the impossible?
    Thanks!

    I'll look around there,  because I had posted something about this and was told to look here ps-scripts - Browse /Image Processor Pro/v3_0 at SourceForge.net  
    then this is the image here:
    is the result I received.  Granted I'm new to using scripts and actions for image processing large amounts of files.  

  • How to use the same (selection) paths in multiple images for batch processing?

    I have a whole bunch of photos I need to batch process, but, when creating an action for this, I stumbled upon the problem that the paths I selected with the pen tool, and saved under the "Paths" tab need to be in every image for to be used in the action. I did try to solve it for some time, but couldn't figure out. Any ideas?
    Many Thanks
    Carlos

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • Action script for batch-opening psd layer files flat? (alt+shift?)

    hi
    i am daily batch processing with an action script to make flat tiffs from psd layer files, like 10-100 files every couple of days in my workflow.
    until now i could not fine a solution to begin the batch processing-action with opening layer files FLAT.
    the reason is: i am working with huge files, 5-20GB .psb files, (16bit, ECI-RGB, 50x100cm, 300dpi) and it takes a couple of seconds to open with my pcie-SSD.
    that multiplies the time it takes to open 50 of such files. i would gain a lot of time, if photoshop cs6 would not open it with layers, but flat.
    there is a workaround i am using daily: (osx) hold alt+shift, then click on the layer file in the finder and cs6 opens it flat.
    but that did not work in the action script. it doesnt store the keyboard command alt+shift.
    any idea how i could save time and use the alt+shift command in the action script or any other solution please?
    thanks
    peter

    I just tried to record this using ScriptListener, and it didn't record it either.  No indo in the ExtendScript SDK on this either.  I don't think that this is possible at this time.  Maybe someone who know more than I do can find a way.

  • Best practices for batch processing without SSIS

    Hi,
    The gist of this question is in general how should a C# client insert/update batches records using stored procedures. The ideas I can think of are:
    1) create 1 SP with a parameter of type XML, and pass say 100 records at a time, on 1 thread.  The SP reads the XML as a table and does a single INSERT.
    2) create 1 SP with many parameters, that inserts 1 records.  I can either build a big block of EXEC statements for say 100 records at a time, or call the SP 1 and a time, on 1 thread.  Obviously this seems the slowest.
    3) Parallel processing version of either of the above: Pass 100 records at a time via XML parameter, big block of EXEC statements, or 1 at a time, and use PLINQ to make multiple connections to the database.
    The records will be fairly wide, substantial records.
    Which scenario is likely to be fastest and avoid lock contention?
    (We are doing batch processing and there is not a current SSIS infrastructure, so it's manual: fetch data, call web services, update batches.  I need a batch strategy that doesn't involve SSIS - yet).
    Thanks.

    The "streaming" option you mention in your linked thread sounds interesting, is that a way to input millions of rows at once?  Are they not staged into the tempdb?
    The entire TVP is stored in tempdb before the query/proc is executed.  The advantage of the streaming method is that it eliminates the need to load the entire TVP into memory on either the client or server.  The rowset is streamed to the server
    and SQL Server uses the insert bulk method is to store it in tempdb.  Below is an example C# console app that streams 10M rows as a TVP.
    using System;
    using System.Data;
    using System.Data.SqlClient;
    using System.Collections;
    using System.Collections.Generic;
    using Microsoft.SqlServer.Server;
    namespace ConsoleApplication1
    class Program
    static string connectionString = @"Data Source=.;Initial Catalog=MyDatabase;Integrated Security=SSPI;";
    static void Main(string[] args)
    using(var connection = new SqlConnection(connectionString))
    using(var command = new SqlCommand("dbo.usp_tvp_test", connection))
    command.Parameters.Add("@tvp", SqlDbType.Structured).Value = new Class1();
    command.CommandType = CommandType.StoredProcedure;
    connection.Open();
    command.ExecuteNonQuery();
    connection.Close();
    class Class1 : IEnumerable<SqlDataRecord>
    private SqlMetaData[] metaData = new SqlMetaData[1] { new SqlMetaData("col1", System.Data.SqlDbType.Int) };
    public IEnumerator<SqlDataRecord> GetEnumerator()
    for (int i = 0; i < 10000000; ++i)
    var record = new SqlDataRecord(metaData);
    record.SetInt32(0, i);
    yield return record;
    IEnumerator IEnumerable.GetEnumerator()
    throw new NotImplementedException();
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Script for Batch Exporting XML from IDCS3 files

    Does anyone have a script they would share for batch exporting XML from IDCS3 files? I do not know anything about scripting so I do not know how to write one myself. I've also searched around and cannot find anything. I would appreciate any help with this anyone can offer.
    Thanks,
    Janine

    Or use below Code:
    try {
         inFolderName= Folder.selectDialog ("Input Folder:");
         outFolderName= Folder.selectDialog ("Output Folder:");
         if ((inFolderName != null) && (outFolderName != null))
              var idFileFolder = new Folder(inFolderName);
              var files = idFileFolder.getFiles("*.indd");
              for(myCounter = 0; myCounter < files.length; myCounter++)
                   var theDocument = app.open(File(files[myCounter]));
                   with ( theDocument ) {
                   myXMLFile = new File(outFolderName + "/" + name.replace(".indd","") + ".xml" );
                   exportFile( ExportFormat.xml, myXMLFile );
                   close(SaveOptions.no);
    catch (err ) {
    alert("All files export");
    Shonky

  • Digital Signature automatically inserted for batch processing

    hey guys... hope you can shed some light...
    Is it possible to generate a non-interactive form with a digital signature already in-place?
    We're generating invoices in batch processing and need to have a digital signature in place when we email the PDF to our vendor. The digital signature will always be the same.
    I did see this in the LCD help:
    "You can use Adobe document services to sign a document, validate a
    signature, select the collection of objects to lock, or certify a PDF
    document programmatically. This workflow is ideal when a large number
    of documents require a signature because they can be signed in a batch
    process.
    To sign PDF documents in Adobe document services, configure the web
    service for secure access using the secure sockets layer (SSL). For
    details about this configuration, see the Adobe document services
    Configuration documentation."
    I have a link to the older ADS config document [-Here-|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30a9630b-4f89-2a10-6fab-e311b3ffd9a6] and am in the process of looking through it.
    However, has anyone done something like this already?

    Otto,
    thanks!
    I hadn't checked out the demo - i didn't even know there was a demo program provided . BTW, it's FP_TEST_07.
    I do believe you're correct that it needs to be an interactive form - that wont be an issue for us.
    There is some documentation floating around that we're trying to piece together - we have our Basis team configuring the ADS for SSL connections.
    From what I've seen, I think we have to store our signature in the ADS and attach it at run time.
    Too many moving parts - I don't like it when I have to get more than 1 group involved to complete a develoment item.
    I'll keep this thread updated as we progress.

  • Is it possible to create a hot folder for batch processing?

    I know that it's possible to make a droplet for preflight, but is it possible to create a droplet or a hot folder for another batch processes (mine crops the pages)? Or at least make a keyboard shortcut? It's so unproductive to go Advanced>Document Processing>Batch Processing>Run>Close (Adobe spoiled us with custom shortcuts in other programs)...

    HenrikAppleJespersen wrote:
    is it possible to create a hot spot with apple Airport express 2 generation and use it i a hotel with ethernet wall socket and use it with my Ipad 2?
    Yes, it is one of the things AirPort Express was specifically designed for.

  • How to display custom error message in Job log for batch processing

    Hi All,
    I am rexecuting one R/3 report in batch mode and i want to display all the custom error i have handled in job log when its executed from SM36,SM37. The custom error are like 'Delovery/Shipmet doe not exits' or others which we can display in online mode like message e100(ZFI) or any other way and accordingly we can handle the program control like come out of the program ro leave to transaction'Zxxx' or anything. But i want my program to be executed completely and accumulate all the error in job log of batch processing.
    Can anyone tell me how can i do so...
    Thanks,
    Amrita

    Hi,
    Thats what i have done from the begining. I have written message like this:
    Message i100(ZFI).
    I was hoping to see this message in the log. But i cant see. Can you help me pleae...

  • Optimal workflow for batch processing LR files with Nik plug ins

    I have a series of 40 or so landscape images that I would like to efficiently apply a couple of Nik filters to using Color Efex.  I'd appreciate any suggestions re: the most efficient workflow to accomplish this task in a batch processing approach, as my current approach of taking each image into Photoshop, while preserving Smart Filter benefits, is terribly inefficient.  Thanks in advance.

    Hi,
    Sorry but File->Process Multiple Files is the only way and functionalities with which you can batch process your images in PSE. However you can add action in Window->Action Player and apply to your images opened in workspace -
    http://tv.adobe.com/watch/learn-photoshop-elements-11/adding-actions/
    http://forums.adobe.com/message/4736578
    The functionality is available in full functionality product Photoshop via File->Automate->Batch where you can load actions in action panel and they would appear in this dialog box but this is not available in Elements.
    The best way to do here is to load actions in Window->Action Player and open all your images and click on play button one by one and then use Process Multiple Files to save all these in one go as per your preferences of file type, size, name etc.
    Thanks,
    Garry

  • Script for batch delet redundant layer

    I have thousands files in the different folders, each file has same layer named “Job Info”. Can someone help me to write a script for del this layer folder by folder?
    I expected the script tells me that I have to select a folder, then it can automatically open the files, del “job info” layer then save file, rewrite, close file

    Hi Ashram,
    Sorry, I misunderstood your question. Please try the below.
    var folder = Folder.selectDialog ("Select the root folder");
    var myfiles = [];
    var _layers = ["test1", "test2", "test3"];
    getsubfolderfiles(folder);
    for(var i =0;i<myfiles.length;i++)
            var doc = app.open(myfiles[i],false);
            for(var j=0;j<_layers.length;j++)
                try
                    app.activeDocument.layers.add({name:_layers[j]})
                catch(e){}
            doc.save();
            doc.close();
    function getsubfolderfiles(folder)
        var filelist = folder.getFiles();
        for(var i =0;i<filelist.length;i++)
            if(filelist[i] instanceof Folder)
                getsubfolderfiles (filelist[i]);
            else if(filelist[i] instanceof File)
                if(filelist[i].name.indexOf(".indd") > -1){
                    myfiles.push(filelist[i]);
    Hi HarveyLiu,
    Try this,
    var folder = Folder.selectDialog ("Select the root folder");
    var myfiles = [];
    getsubfolderfiles(folder);
    for(var i =0;i<myfiles.length;i++)
            var doc = app.open(myfiles[i],false);
            try{
                var _layer = doc.layers.item("Job Info");
                _layer.remove();
                var link, image, frame,
                links = doc.links, counter = 0;
                for (var i = links.length-1; i >= 0; i--) {
                    if (links[i].status == LinkStatus.LINK_MISSING) {
                        try {
                            link = links[i];
                            image = link.parent;
                            frame = image.parent;
                            frame.remove();
                            counter++;
                        catch (err) {
                            $.writeln(i + " - " + err);
            catch(e){}
            doc.save();
            doc.close();
    function getsubfolderfiles(folder)
        var filelist = folder.getFiles();
        for(var i =0;i<filelist.length;i++)
            if(filelist[i] instanceof Folder)
                getsubfolderfiles (filelist[i]);
            else if(filelist[i] instanceof File)
                if(filelist[i].name.indexOf(".indd") > -1){
                    myfiles.push(filelist[i]);
    Regards,
    Chinna

Maybe you are looking for

  • Excise values not appearing in MIRO

    Dear All I have  created a PO , Made GR  Part 1,2 has been captured , Due to some reasons we cancelled the GR , then we made a new GR for that PO Now i get in to MIRO i am not getting the Excise Conditional values , i get only my VAT values. Kindly t

  • Multiple users on same external drive

    I want the three itunes users to be able to see the whole library of songs when each is logged on. At present when a new song is imported the others do not automatically have it shown in their song list. How can I make it so everyone sees all the mus

  • Can I create a new itunes account for my kids and still keep old music on both?

    My kids currently have ipod nanos.  They are getting ipod touches for christmas.  Originally we setup a "family" itunes account on my computer.  We now want to set them up their own account on their own laptop.  Can we transfer old music from nano to

  • I updated to V 37 today; that made DownThemAll's download manager stop working.

    Both menu items 'Downthemall' and 'DtAOneClick' work fine, I still get a list of links and/or files on the current web page, but when I activate the download manager by clicking 'Start' or 'Add paused'. I get a totally grayed out download manager win

  • 11g R2 Installation (silent mode) error on RHEL5

    Please help me, I´m trying to install database 11g R2 using silent mode: I have passed all preinstallation tasks ./runInstaller -silent -responseFile /Oracle/req/db_install.rsp Starting Oracle Universal Installer... Checking Temp space: must be great