Is it possible following batch processing using javascript...?

Hi Everyone,
Is it possible with in javascript following batch processing?
• Open all PDF files in folder
• Get which font to be used
• Get which color plate to be used (i.e.) CMYK or RGB
• Get page trim size width and Height.
• Close the file
• Past in Excel or note pad
Please help me,  i have do so many files do the same process.
Thanks in advance.
-yajiv

Some time ago I was looking for a way to find out a pdf’s page-count and this was one of the solutions I was presented with (Bridge might offer a better sollution, though):
#target photoshop
thePageNumber = getPDFPageCount ( File.openDialog("select pdf"))
alert (thePageNumber);
// by jezz, based on something by xbytor i guess;
function getPDFPageCount(f) {
f.open ('r');
var gotCount = false;
while (! gotCount) {
next_line = f.readln();
if ( f.eof ) {alert("Aborting the script\nWe've got to the end of the file without finding a page count");
     f.close();
     exit();
     if (next_line.indexOf ("/N ") > 0 && next_line.slice(0, 9) != "<</Length" && next_line.slice(0, 9) != "[/Separat") {
     var p = next_line.match (/\/N (\d+)\/T/)[1];
     gotCount = true;
     else if (next_line.indexOf ("/Pages") > 0 ) {
//      alert (next_line);
     var p = parseInt(next_line.substring(next_line.indexOf("/Pages") +6), 10)
     gotCount = true;
f.close ();
return Number(p);
I suppose this approach could be modified to address some of the features you are looking for.
But the issue might be a fairly complicated one, as a pdf may for example combine many different TrimBox-sizes.
Have you asked over in the Bridge Scripting Forum, too?

Similar Messages

  • Kill processes (using Javascript) on a 64-bits machine (Windows Vista, 7, 8, 8.1)

    Hi everyone. I have a simple VBScript sample that kills a process by name. It works fine on every OS, X86 and 64 bits :
    ---------------------------kill process sample----------------------------------------
    Set wsh = CreateObject("Wscript.Shell")
    wsh.Run "calc.exe",1
    Set Processes = GetObject("winmgmts:").InstancesOf("Win32_Process")
    For each Process in Processes
    Select Case LCase(Process.Name)
    Case "calc.exe" 
    Process.Terminate(1)
    I tried the "for" loop, the "forEach" loop and "switch" in javascript but none of them work like in VBScript.
    Could anyone help me converting this script sample to javascript, since VBScript became obsolete and God knows whether it will be available for HTA applications and Windows Script Host files in the near future.
    Thanks a lot in advance.

    Jvr, you said :
    "What you have done is one of the reasons why support for ActiveX is being dropped.  By allowing unsafe controls you have removed the most important security restriction.
    I highly recommend that you spend some time learning Windows but not from web sites or from people who are just hackers.
    If you are going to alter IE you might as well just use an HTA.  It doesn't reduce security and is much easier to use.
    You are trying to do what a lot of new and untrained people try.  You are trying to reinvent Windows but mostly because you do not have fundamental technical training.  Get the training and you will not be led down these pointless paths.
    NTVDM is not CMD.EXE.  NTVDM is used to emulate a 16 bit DOS environment. It is not required for NT or for CMD.EXE.  It is disabled by default on all modern versions of Windows.  16 bit applications can be a security issue and
    do make managing Windows harder."
    One of the best features of IE might be ActiveX technology. I could be wrong, but some controls are still highly used by websites, and a lot of softwares help rely on HHCTRL ActiveX. I don´t see it *currently* being dropped.
    Could be in the future, but not only IE uses Activex, a lot of programs make use of them, not to mention popular ones like Word, Excel.
    My friend, I use Windows for more than a decade, don´t tell me what I have to learn or not. You´ve got to be kidding because I know a lot but of course I am humble to admit I ´don´t know everything and can at times have doubts, other people can help
    just like I could help when someone has a doubt on something I know. Also I dont know why you are talking about hackers. As far as I know they *must* know the OS in order to exploit stuff and run their malicious code, not only know how to exploit general vulnerabilities,
    so I bet the real hackers have a lot to teach.
    I am not untrained, sorry but you must be high since you are not reading my posts correctly. I said I altered security setting for the *INTRANET ZONE*, not Internet, and also set the "Websites in less privileged zones can navigate to thiz zone" to deny.
    And if you are an expert you must know the intranet zone is disabled by default, which is my case, but if you add an IP address or website, then it will be enabled *only* for them. Furthermore an attacker would need to know what is the IP address I added and
    would need to bypass the cross site scripting filter and also the setting above that I disabled.
    Again, you´ve gotta be high. I never said CMD=NTVDM. NTVDM just emulates a 16 bits program which is Command.com, I said in the other post, didn´t you read?
    And you can´t tell if MSHTA, ActiveX and WSH will be totally removed from Windows in the future, it is only a possibility. They are useful. 16 bits apps are not but are still supported on 32-bits Windows. Check out on a 32-bits system, and tell me if
    you found some 16-bits apps including C:\windows\system32\command.com.
    Hope now you understood what I have written.
    cheers.

  • How to delete silence in batch process using Audition CS6

    I've started using Audition CS6 recently.
    I'm able to delete silence at the beginning and end of the source audio files using delete silence effect (from diagnostics window).
    I'm not able to record this as new favorite so that I can apply it in the batch process.
    How can I delete silence at the beginning and end of the source audio files (1000 or more files) using batch process?
    It will be of great help if I can get guidance on this, instead of manually editing these files.
    Thanks in advance for any assistance.

    yes, the favorite is not aware of the diagnostic panel (and delete silence action).
    and the silence at the beginning and end varies between the files, is there any way to deal with?
    it doesn't look productive to scan for the silence and delete the silences manually for each individual file (for more than 1000 files).
    can we create a macro or use some scripting in audition to deal with this in a batch process?
    Or is there any other tool that's recommended to have this part done in a reliable manner?

  • Branch process using javascript to call popup

    I am on Windows Vista, Oracle XE and Apex 3.1.0.00.32.
    The branch works when using region based button.
    I wanted to use a "button displayed among this region's items" for a "button" list in the sidebar. I created a button and used a branch based on :REQUEST = 'button_name'. The branch fires but I get an error "Internet Explorer cannot display the webpage."
    HTML header code
    <script language="JavaScript" type="text/javascript">
    function popup(pURL, pwidth, pheight) {
    html_PopUp(pURL,"winLov",pwidth,pheight);
    </script>
    Branch Code
    javascript:popup('f?p=&APP_ID.:10012:&APP_SESSION.:&REQUEST.::10012:P10012_ISS_ID:&P10011_ISS_ID.',500,350);
    Since the code works in the URL redirect on a Button in a region position but not in a Branches redirect to a URL I assume this functionality does not work? Can anyone shed light on this? If it doesn't work I will need to find another solution....
    Thanks,
    Sam
    I did search and found a thread that intimates it should work.
    link:calling javascript on a branch is this possible
    Edited by: slavanaway on Mar 23, 2009 4:14 PM

    Luis,
    I see that I did not put more detail into the issue than the title.
    I am trying to call a popup from a button among region items. The user makes a selection then some custom DDL fires and the popup closes and the calling page is refreshed.
    A button among region items does not have a redirect to URL like a button in a region position. So I made the branch that was conditional on the button. I think I knew that a "branch" is server side. I don't understand why the jvascript URL does not work.
    A button in a region position and a list that redirects to a URL both work. I wanted the list to look like button in a vertical row.
    I now have the functionality working with a list.
    So I am coming to the mountain to get enlightenment. The Branches on a page can not use javascript is my guess and being eternally curious I was wondering why. I hope knowing will help me save time and produce better apps in the future.
    As for the actual behavior. When the Branch for the button amonth the region items fires. I would get the error message and the URL would only show apex flows. I don't have the exact URL as I dis-assembled the list and branches.
    I think the branch goes to the server but either the javascript is not passed or it does not handle the javascript.
    Tx,
    Sam

  • Batch Processing using Bridge to PhotoShop

    - I am using CS4 on a PC.
    - I shoot RAW and from Bridge I go into Camera RAW and adjust my images.
    - Usually I save each one at a time however I would like to learn how to be able to edit each photo using Bridge and Camera RAW ( I’m already doing this), then be able to take all of the photos in the directory and batch process to save as a tiff or jpg for further manipulation.
    - I was using Canon’s DPP but want to do all my work in Adobe. The process in DPP is straightforward.
    I'm sure this is simple but I can't seem to find it in the menu's or Help.
    Thanks in advance for your help.

    Curt:
    Thank, this gave me the direction I needed. After a few tries I think I've got it down pat.
    Thanks again.

  • Batch processing using JPD suitability

    Hello,
    In our company, we are using Weblogic Integration 8.1.6 for batch DB processing mixed with some business logic. We have a few applications built around this: an event generator is fired and a JPD (with DB controls and other controls calling EJBs and WSs) runs to process large CSV files (8MB) into the DB, with some other queries for business data in between, on a daily basis.
    However, we have been facing (and still are facing) many problems with those JPDs. It seems to me that they are not such a good choice for long running batches. There is always something: memory is to low, memory is too high (yes! there was a time when we had to lower the instance memory from 1.5GB to 1GB, to prevent it from crashing, after endless trial and error), the transaction timeout is too short (in the descriptors or domain wide), processes cannot be monitored in the WLI console for unknown reasons, transaction handling is not clear (you cannot avoid transactions inside the JPD; it is forced by default - you can only disable it through the datasource) and more problems that happened throughout the past few years, which required rather tedious trial-and-error solving.
    My question is: are JPDs really suitable/intended for long batch processing? The event generators certainly invite you into using them for that purpose. Is anybody else using them for that? Or is everyone else happy with batch EXEs?
    Edited by: KhaledWLS on Sep 19, 2010 10:37 AM

    Please repost your question in the SOA Suite forum:
    SOA Suite
    This forum is for WebLogic Server and readers may not be familiar with WLI.

  • How to execute  a batch file using javascript

    Hi,
    I dont know java. i have a batch file to do my task. Im designing the front end with HTML.Can anyone tell the command to execute batchfile using javascript
    Message was edited by:
    viswanath_java

    Java and not JavaScript are not the same thing or even close to the same thing. You appear to be in way over your head. It might be a good time to fess up to your employer that you are underqualified.
    Apart from the JavaScript faux pas your question is also lacking because
    - you don't identify what this batch file is or does or needs to execute in
    - it is very difficult to understand how the front end for this will be HTML
    It seems you may one day want something like a Servlet. But you are long way from implementing this solution.

  • Where is it possible to batch process the size of images?--I am able to change pixel dimensions in image processor but not image size in inches.

    Hi- I need to batch process images for video project.  I am able to change the pixel dimensions in the image processor but don't seem to have the option to change image size in inches.  Please advise!  Thanks

    You don't need inches for video (or screen viewing in general). It all goes by pixel count. Inches is for print, nothing else.
    But to answer the question, you can run actions in the Image Processor, and this is where you set size in inches. Just bring up Image Size, uncheck "resample image", and specify size. You'll notice resolution changes to reflect the fact that the existing image pixels are now redistributed over the new print size.
    But again, screen doesn't care about size or resolution. It only counts pixels.

  • Batch process using Nik Software - is it possible?

    Hi,
    I'm using Nik Software (plug-ins) with Aperture and was wondering if there was any way to do a batch change? For example if I have to reduce the noise using Define2.0 and I have a profile I would like to use already, is there a faster way to process a set of pictures altogether rather than one by one (which I currently do now)? I've tried selecting multiple ones and opening it in Define2.0 but it seems that unless I view each picture in Define2.0 then some pictures still remain unprocessed.
    Thanks,
    Walter ...

    If you have the most up to date version of the Nik plugins, you can batch just as you are explaining. Simply select a handful of images and right click>edit with>Define, Viveza, Silver Efex Pro, etc.
    You do have a powerful graphic card to do this smoothly.
    Hope this helps,
    ChristopherDavid

  • Button on Interactive Report to fire a process using JavaScript

    I have a requirement to trigger a process from a button on an interactive report. One of the report columns has the triggering data allowed to make the process fire. The requirement is that the button says different things based on the value from another column in report.
    My button is an html button that when the process is allowed to run, is enabled and fires a javascript function. When the process is not allowed to run for the row where the button is placed, the button changes text, color and is disabled.
    The switching of the HTML button is working properly. The problem is that I am not able to grab the column value from the report to submit with the onclick() event.
    As best I can tell, there is not unique id tag on the report columns and the best that I am able to do is to apply one class to the button and another class to the column that contains the value that needs to be submitted on my onclick() event.
    I have considered using a link column that does a submit to a URL passing in the desired value but I would lose control of the appearance of my button.
    Does anyone have a suggestion?
    Thanks

    In debugging while clicking on back button for first time, I found that after 'Leave to screen 0' statement debugger goes to double click event of screen 100 and start processing from a statment written immediately after 'Call screen 200' statement.
    Yes, that's right. The processing will be continued from next stamtement after CALL SCREEN 200. But after the PAI will finish it shoud go to NEXT SCREEN which is 0.
    If that doens't work you can try leaving the screen 100 explicitly as well.
       CALL SCREEN 200. 
       LEAVE TO SCREEN 0.  "the processing will terminate screen 100 as well
    Try it out.
    Regards
    Marcin

  • Invoking a batch processing using ABAP proxy

    Hi guys,
    I need to develop a scenario where in the target a proxy starts a function module (or ?), but I need to run this function module then in a separate "thread", so the proxy processing would be finished. You know what I mean? Is it possible somehow?
    Thank you, Andrzej

    Hi Andrzej,
    You can Call the Function using Tasks in the ABAP Proxy.
    See:
    [http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPparallelprocessingusingRFC]
    [http://wiki.sdn.sap.com/wiki/display/Snippets/Easilyimplementparallelprocessinginonlineandbatchprocessing]
    [http://wiki.sdn.sap.com/wiki/display/ABAP/Parallel+Processing]
    Best Regards.

  • Run batch process by javascript

    Hi,
    I am created one Batch Sequences in the name of “Auto Update” which displayed below.
    Now I want to run this Batch Sequences "Auto Update" just by calling  batch name as "Auto Update" in javascript code.
    Or
    By using OLE Automation C#.
    So please advice me how can I do this?
    Regard
    Thirusanguraja Venkatesan

    Hi Thank you Gilad and Dave
    I am try to do set the Document Properties - > Initial View after creating PDF file from Post Script File.
    Input PDF Initial View:
    After my setting the Initial of the PDF file will as below:(What I am trying to do)
    This only I am trying to do by automation.
    Note:
    I am saw one discussion in this forum as my request in the below link
    http://forums.adobe.com/message/2306817
    From this discussion I am got one point that is Document open options (DOCVIEW) setting in Post Script file.
    With the help of pdfmark Reference (Adobe SDK) and above discussion I am tried to set DOCVIEW in post scrip
    Post Script:
    [ /PageMode /UseOutlines /Page 1 /View [/Fit] /DOCVIEW pdfmark
    The above script will set
    Document Properties - > Intial View
    Document Option
    Show: Bookmarks Panel and Page
    Page Layout: Default
    Magnification: Fit Page
    Window Options
    Show : File Name
    But my expectation is as shown below,
    Document Properties - > Intial View
    Document Option
    Show: Bookmarks Panel and Page
    Page Layout: Continuous
    Magnification: Fit Width
    Window Options
    Show : Document Title
    So please give me advice.
    What is correct way to meet my requirement by automation.
    If you can please provide me PSOT SCRIPT coding to set those setting in post script file it self, it is better to me.

  • Testing a Batch Process using JUnit

    Hello,
    I have written a java batch in CC&B. I want now to check it through Junit. I have created a test case for this which implements BatchJobTestCase. It generates couple of methods. I want to know how I will pass soft parameters to batch and how to inovke that batch.
    Thanks,
    Usman Ashraf

    For setting the soft parameters:
    One of the overridden Methods is setupRun. Mine looks like this:
    SubmissionParameters parameters = new SubmissionParameters();
    Properties properties = new Properties();
    properties.setProperty("PropertyName","PropertyValue");
    properties.setProperty("PropertyName","PropertyValue");
    properties.setProperty("PropertyName","PropertyValue");
    properties.setProperty("PropertyName","PropertyValue");
    parameters.setExtraParameters(properties);
    return parameters;
    I know that if you create a batch object and assign the result of this method to batch.setSubmissionParameters(result) the main thread of the batch can run.
    It looks like calling "submitBatchJob(parameters)" is supposed to run the whole thing, but i keep getting a null pointer exception  in com.splwg.base.support.batch.BatchJobExecuter.create

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

  • Is it possible to add or change OCR text in a batch process?

    Hello,
    This is my first submission.  Really hope you can help as if there's a solution to this it will significantly help our business.
    Is it possible to 'batch process' the adding or changing of OCR text in a PDF?
    This might sound like a strange process but let me explain what we do:
    1. We scan old, handwritten books and registers.  Typically these registers contain lists of information. Each page will be scanned to a filename like pge01.jpg, pge02.jpg, pge03.jpg etc.
    2. We transcribe the content of each page.  Each page will contain mulitple records (i.e. 20 records)  typical fields might be:
    Unique ID
    Surname
    Forename
    Year
    Address
    Filename (i.e. pge02.jpg)
    3. We provide this content back within database driven software so that when a user performs a search on say 'Surname=Jones' & 'Year=1945' then all of the scanned pages that match that contains handwritten text that matches that search criteria is displayed in a list.  The user can then click on a search result and see the scanned page containing that record.
    Rather than provide database driven software, we'd simply like to produce a standard PDF file.  Each page within the PDF will show each of the scanned pages (pge01.jpg, pge02.jpg, pge03.jpg etc.).  But where you would normally store the 'ocr recognised text' behind each image, we would like to show our transcribed content.
    If this is possible, then I realise that it's likely that you can't do field searches (i.e. 'Surname=Jones' & 'Year=1945') but at the very least I'd be able to type 'Jones' in to the search box and it would find all pages that contained the transcribed word 'jones'.
    If it's possible to add the transcribed data as 'ocrd text' then is it possible to do it in some sort of batch process?  We scan lots of big books and capture millions of records - so doing it manually is not an option.
    Any help that anyone can provide will be hugely appreciated.
    Thanks,
    Paul

    I don't think it's possible to manually add OCRd text, but you can add form
    fields with the text in them. And yes, it is possible to search the content
    of form fields, using a script.

Maybe you are looking for

  • How to fix blackscreen Bootcamp after SSD install

    Hello I have an iMac mid 2011 21,5". I decided to boost it a little and that's when my issues started. Got no big problem to remove the optical drive, replace it with an SSD & add few gigs of RAM, but when I started to install windows 8.1 pro with bo

  • OVD best practices for app-specific views?

    I have a requirement to create app-specific views of joined (OID+AD) ldap directory data. It occurs to me that logically I could take 2 approaches to this as laid out below as option1 & 2. Although I'm not sure how to actually create option 2. I've l

  • Arraycollection into XMLlistcollection

    Hi all, I am trying to create my xmllistcollection since days, and getting soo unsuccessful each time... I have a flat simple arraycollection like : id_order client_name orders_name 1 client_name 1 order_name 1 2 client_name 2 order_name 2 3 client_n

  • Expressions in PS?

    Is there a way to add simple expressions to Photoshop? In After Effects when you put "287/11" as a value, it automatically divides it for you. Can Photoshop do that and how?

  • Invalid character value for info object

    Hi Experts, Iam getting this error,when loading master data Value 'H4-LAMPE 'for characteristic 0Material is in External Format. 0Material : Data Record 1 ('000000000009') : Version 'H4-LAMPE ' is not valid. i have checked in transfer rule, the colum