Trying to make this rule work

I have an IMAP server so I want Apple Mail to move any email that has all of the following:
a) the email has been read
b) it is older than 10 days
c) it currently is in the inbox called "avenue B"
And then I want these emails to go to a specified folder on my computer, so they are off the server. (this step seems manageable)
I can't figure out how to indicate emails that are "read" or how to identify the rule to check only one inbox (I have 3). Or for that matter, it can check all three. But I only want it to move things from the inboxes, not from other folders.
I also want to do this with emails that are "sent" (in the sent folder on the server). And move them to a different folder on my computer.
Any ideas?
Thanks
Jon

good morning,
thank you both for reply
that adicionar_variaveis(function, [parameters]) isn't an error, that is a function i found some months ago, witch makes possible to add parameters to any function like this
function adicionar_variaveis (funcao:Function, que_variaveis:Array):Function {
    return function(event:Event):void {
        funcao.apply(null, [event].concat(que_variaveis));
then if you have
addEventListener(mouseEvent.CLICK, adicionar_variaveis(some_function, [some_value]));
function some_function(e:event, value:String) {
trace(value);
this value is correctly traced and debug doesn't fire any error

Similar Messages

  • Help with trying to make a app work

    i need help trying to make an app work ive updated everything all the requirements meet but it jus keeps freezing the app  is called pilot and wen i go to choose a plane it then jus shuts down the app

    So you have worked through each and every suggestion in this Apple support document including contacting the developer?
    iOS: Troubleshooting applications purchased from the App Store
    B-rock

  • How to make this script work

    Help me to make this script work, please!
    function(){
    app.findGrepPreferences.firstLineIndent  = "8 mm";
    app.findGrepPreferences.leftIndent  = "8 mm";
    app.changeGrepPreferences.firstLineIndent  = "8 mm";
    app.changeGrepPreferences.leftIndent  = "16 mm";
    app.selection[0].changeGrep();
    app.findGrepPreferences.leftIndent  = "16 mm";
    app.changeGrepPreferences.leftIndent  = "24 mm";
    app.selection[0].changeGrep();

    Hi,
    Its already replied, see below code:
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.firstLineIndent  = "8 mm";
    app.findGrepPreferences.leftIndent  = "8 mm";
    app.changeGrepPreferences.firstLineIndent  = "8 mm";
    app.changeGrepPreferences.leftIndent  = "16 mm";
    app.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    First run the above code, again you want to change leftIndent from '16 mm' to '24 mm' run below code:
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.leftIndent  = "16 mm";
    app.changeGrepPreferences.leftIndent  = "24 mm";
    app.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    by
    hasvi

  • How to make this app work?

    Hi
    Sorry for posting such a basic question...
    I am trying to make an app work in OC4J. It is the Oracle "pizzaria" sample app that uses JSF.
    I deployed it manually to a standalone OC4J 9.0.4.0.0 instance on windows XP.
    I changed the files http-web-site.xml and server.xml.
    When I try to run it through the URL http://localhost/pizzaria/faces/index.jsp, it simply gives me the error "Cannot find server or DNS Error", nothing else (not even in the log files).
    If I try http://localhost/ it gives me the OC4J welcome page.
    If I try http://localhost/noexistingapp/faces/index.jsp it gives me the 404 error (as expected).
    My first question is: why it gives me the apparently wrong "cannot find server error" instead of a 404 or 500 error when I try to access the app?
    Secondly, what could be wrong?
    Thanks!
    lc

    Do not mind - I found an error message in server.log (shown below). It seems to be a missing class, I'll check it. But I do not understand why I do not get an 500 error instead of a "Cannot find server" error when I try to access the page.
    Thanks
    04/03/01 11:22:27 Internal error in HttpServer
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
         void com.sun.faces.config.ConfigListener.<clinit>()
              ConfigListener.java:79
         java.lang.Class java.lang.Class.forName0(java.lang.String, boolean, java.lang.ClassLoader)
              native code
         java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader)
              Class.java:195
         void com.evermind.server.http.HttpApplication.initDefaultServlets()
              HttpApplication.java:4890
         void com.evermind.server.http.HttpApplication.initDynamic(com.evermind.server.http.HttpApplicationConfig)
              HttpApplication.java:701
         void com.evermind.server.http.HttpApplication.<init>(com.evermind.server.Application, com.evermind.server.http.HttpSite, com.evermind.server.http.HttpApplicationConfig, java.lang.String, java.lang.String, boolean)
              HttpApplication.java:497
         com.evermind.server.http.HttpApplication com.evermind.server.Application.getHttpApplication(java.lang.String, java.lang.String, boolean, long, com.evermind.server.http.HttpSite, boolean)
              Application.java:886
         com.evermind.server.http.HttpApplication com.evermind.server.http.HttpServer.getHttpApplication(com.evermind.server.http.HttpApplicationReference, com.evermind.server.http.HttpSite)
              HttpServer.java:688
         com.evermind.server.http.HttpApplication com.evermind.server.http.HttpSite.getApplication(com.evermind.util.ByteString)
              HttpSite.java:420
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:422
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:270
         void com.evermind.server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:112
         void com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run()
              ReleasableResourcePooledExecutor.java:186
         void java.lang.Thread.run()
              Thread.java:484

  • I have an Apple 10.5.8 and just purchased a Canon MX726 printer to use with my computer but I get a message saying the software is not supported.  My computer skills are fairly modest; is an attempt to make this printer work with this computer doomed?

    I have an Apple using Mac OS X10.5.8 and just purchased a Canon MX726 printer to use with my computer but I get a message saying the software is not supported.  My computer skills are fairly modest; is an attempt to make this printer work with this computer doomed?

    10.8 if you must, but on the link above...
    Canon PIXMA MX726 drivers for OS X 10.6/10.7/10.8/10.9
    MX720 series Scanner Driver Ver. 19.1.0 OS X 10.6/10.7/10.8/10.9
    26.75 MB
    Download
    ICA Driver Ver. 3.1.0 (OS X 10.6/10.7/10.8/10.9)
    3.44 MB
    Download
    Quick Menu Ver. 2.2.0
    2.31 MB
    Download
    Canon IJ Network Tool Ver. 4.2.0 for Intel Mac (OS X 10.5/10.6/10.7/10.8/10.9)
    4.38 MB
    Download
    My Image Garden Ver. 2.0.1
    290.88 MB
    Download
    Easy-PhotoPrint EX Ver. 4.5.0 (OS X 10.7/10.8/10.9)
    102.19 MB
    Download
    MX720 series CUPS Printer Driver Ver. 10.84.1.0 (OS X 10.7/10.8/10.9)
    13.76 MB
    Download
    Speed Dial Utility Ver. 1.3.0 (OS X 10.6/10.7/10.8/10.9)

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • I'm trying to make this work, but can't figure it out. Please help.

    I am trying to make a Presentation to email for others to see without a browser, but when I do, it doesn't show. I've downloaded Adobe Flash Player 10.0 r22, I've built the presentation, I've published the presentation and uploaded to my hosting. I have tried everythiing I can think of. It works on my machine; however, when I try to view it out of it's containing folder, it doesn't show anything but the preloader. Can someone please help me?
    I can send you an example of a working Presentation along with a Zip file containing my presentation with everything I've built if my explanation isn't quite clear. Please help.
    Thank you,

    Yes,
    I need to remove it from this forum.
    Sorry about that,
    R.A

  • Trying to get this code working

        So, I'm trying to make some smoke and I really like the way one looks I found online; however, I guess it was made in a previous version and some of the code is no longer support with the version I'm using with is CS3.
    Hopefully this is the right forum for this.  If not, please redirect me.  Any help getting this thing woring would be much appreciated.  The code comes from this site:
    http://www.pixelhivedesign.com/tutorials/Realistic+Flash+Smoke+Effect/
    He creates a movieclip called aPuff and then gives the movieclip an identifier of aPuff as well.  It seems identifiers are no longer used in CS3.
    // Realistic Smoke Effect - www.pixelhivedesign.com
    fadeSpeed = 1;    // Smoke fade speed.
    floatUpSpeed = 2; // Smoke float up speed.
    // Every frame attach a puff of smoke.
    this.onEnterFrame = function(){
      // Get next available depth.
      d = this.getNextHighestDepth();
      // Attach a puff of smoke.
      aPuff = attachMovie('aPuff','aPuff'+d,d);
      // Set initial scale to 10%.
      aPuff._xscale = aPuff._yscale = 10;
      // Put puff where the mouse is. (add small random)
      aPuff._x = Math.random() * 5;
      // Randomizes the starting animation for realism.
      aPuff.gotoAndPlay(Math.round(Math.random()*20));
      // Smoke will animate each frame.
      aPuff.onEnterFrame = function(){
        // Scale smoke up.
        this._xscale = this._yscale += fadeSpeed;
        // Fade smoke.
        this._alpha -= fadeSpeed;
        // Smoke floating up.
        this._y  -= floatUpSpeed;
        // When smoke is 100% scale, remove it.
        if(this._xscale >= 100){
          this.removeMovieClip();
    When I run this in CS3 I get a whole list of errors.  I’m super new to actionscript.
    Thanks again.

    Wrong forum.  That is AS2 code, not AS3 (CS3 can work with either).  Since you say you are getting a bunch of errors, you probably have the file's Publish Settings set up for AS3.  If you change them to AS2 that code might work.

  • Trying to make external speakers work

    Hi just trying to make some external speakers work. I have them plugged into the output port.When I go to sound preferences they line-out option is missing. The only option I have is Built in speakers. I realize they will not work if I dont have this option so I just need help making that option appear so that I can select it. Hopefully that made sense lol
    Thanks in advance for the help. I really appreciate it!
    -Brandi

    Hello 17crockett,
    It may help to reset your system's SMC and NVRAM.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    About NVRAM and PRAM
    http://support.apple.com/kb/HT1379
    Cheers,
    Allen

  • How can I make mail rules work?

    I'm using Mail Version 7.0 (1822). When I create a rule to move an article from the inbox into a mailbox, it doesn't work.
    I was hoping to create a series of nested mailboxes sorted by topics, (shopping, sports, hobbies, etc), but even the simplest of single level maillboxes doesn't work.
    The commands are fairly straightforward and easy to understand: If a heading contains the word ________, move the item to the mailbox named ____.
    When I apply the rule, nothing happens. Help would be appreciated.

    The flagging rule worked.  Then.... I tried once again to move the messages to the mailbox. This time, I noticed that the messages were, in fact, copied to the mailbox, but were not deleted from the inbox. Do I also have to specify that the messages be deleted from the inbox? The move command would involve both copy and delete in one action.

  • Do you really need the shoes to make this product work?

    I just saw some information on the TV about this. My question; if anyone can help with it, is do you REALLY need the shoes to make this work. I mean all it is is a little disk and a wireless plug-in for the Nano. It would really help me out if someone can tell me.

    You do not need the shoes to make it work. Check out this thread for ways people have gotten the sensor to work with non-nike+ shoes: http://discussions.apple.com/thread.jspa?threadID=559827&tstart=75

  • Can anyone make --this fix-- work for the FONT rendering issue?

    I found this bug report and proposed fix on the webkit buglist:
    http://bugs.webkit.org/show_bug.cgi?id=14070
    Here is a link that one says can be used to fix the
    rendering issue with bold fonts.
    If anyone can make this work for Safari 3 on XP please let me know....
    Here are the text and link to the how to:
    You can fix rendering issues by changing language for non-Unicode programs. The
    instruction:
    http://www.microsoft.com/globaldev/handson/user/xpintlsupp.mspx#EVE
    You should restart system after applying setting.
    Hope this helps someone
    If not, then call apple support and complain....
    maybe if their support phones are getting hot... then they
    will fix this horrible bug

    I don't believe this is a support issue, it's rather a Bugdev issue. Use the Bug-Report field in Safari to report this directly to the engineers. I also think the bug is known and will be solved, it's therefore not really in the range of AppleCare. (Beta Software is usually unsupported!)
    MacBook Pro, MacBook, ModBook, iMac, Mac mini, PowerMac G5, iBook, Apple TV   Mac OS X (10.4.9)  

  • Need advice on how to make this all work together

    Not really sure where to post this, so I decided to post here.  I'm trying to streamline devices and move more into the cloud.  Because of some weird network issues it is complicated.  
    Currently I have a MacMini at home.  I am a teacher so office-type documents are important.  I'm currently using Mac Office 2011.  I have a netbook that I use to show PowerPoint at school and to have access to documents.  I use Dropbox to keep them in sync.  I also have an iPhone 4 and 3rd gen iPad with unlimited 3G/4G data.
    The big fly in the ointment is that Dropbox is blocked on our school network.  This causes all kinds of problems because it means I have to sync my netbook in the mornings and afternoons or I get conflicts.  Its also a pain to get things off the net.  I have to use my school PC, then USB it to my netbook because it has no net access. 
    I also want to keep school and personal items completely separate. 
    Things I have been considering....
    Moving to iWork apps to make use of Apple's cloud.
    Replacing my mini with a MBP to use as a base at home, and to then be able to take to school.  I would not want to use it on my projector so that's an issue.
    Using an iPod Touch to show keynote presentations.
    Laptop thoughts usually creep in, but to be honest I've never really used them all that often.  I like lots of screen room. 
    I would prefer the iPad to be my main mobile computer.
    Looking forward to any input.

    I have a MBP, IPAD with retina display, and multiple iphones in the family. I have a Airport Extreme for my router and Apple TV hooked up to our lcd TV. The Apple TV is great because you can use any apple device to project whatever your working with onto the Apple TV with Airplay. Not sure if you would be able to connect your Apple TV to the school network, but if you could that would be the answer along with using the cloud. The key would be access to the school network.

  • Trying to make this...

    Hello everyone.
    I am trying to build a new portfolio site for my graphic design work and have an idea for the menu system I want to use. Here is an example of the menu that i want to create in action. http://www.triplicatedesign.com/default.aspx  Anyone know what you call this menu structure or have an idea about building it.
    Any help greatly appreciated.
    James

    Looks like a simple, unordered list menu to me.
    <ul>
    <li>list item 1</li>
    <li>list item 2</li>
    <li>list item 3</li>
    </ul>
    With a bit of CSS, you could style it to look better.
    CSS Express Drop-Down Menus  (tutorial)
    http://www.projectseven.com/tutorials/navigation/auto_hide/
    CSS Tab Designer creates 60+ CSS Styled Button and Tab Menus  (download)
    http://www.highdots.com/css-tab-designer/
    List-O-Rama  (DW Extension)
    http://www.dmxzone.com/go?5618
    CSS  Menu Maker (On-Line Menu Generator)
    http://www.cssmenumaker.com/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Can't figure out how to make this script work

    Hey Folks,
    Anyone here who would like to look at the following script and tell me where I made the error(s)?
    I want to put this script in a Batch so that I can run it on a directory of files all with filenames like
    Q-CAT 2010-01 Covers_v7bP01x.pdf and
    Q-CAT 2010-01 Covers_v7bP02x.pdf
    I put this script in the correct spot, but nothing happens... I tried the debugger console, and I get:
    Begin Job Code
    Processing File #1
    State P01 detected
    Batch aborted on run #1Error: NotAllowedError: Security settings prevent access to this property or method.
    End Job Code
    This is the script, it's supposed to run in Acrobat 9:
    /* Q-CatCoverPagesSaveAs */
    /* this script Crops CatCovers' Spreads and saves it into separate pages */
    /* ©20100521 - AOP-Creatives, Willy Croezen */ 
    // Begin Job 
    if ( typeof global.counter == "undefined" ) { 
    console.println("Begin Job Code"); 
    global.counter = 0; 
    // insert beginJob code here 
    // Main Code to process each of the selected files 
    try { 
    global.counter++ 
    console.println("Processing File #" + global.counter); 
    // insert batch code here. 
    function doCropPages()
       this.setPageBoxes({
          cBox: "Crop",
          rBox: cropLeft
        app.beginPriv();
    console.println("Save LeftPageName");
    //       this.saveAs(this.path.slice(1, fname.indexOf(pageSide)) + leftPageName);
        app.endPriv(); 
       this.setPageBoxes({
          cBox: "Crop",
          rBox: cropRight
       app.beginPriv();
    console.println("Save RightPageName");
    //      this.saveAs(this.path.slice(1, fname.indexOf(pageSide)) + rightPageName);
       app.endPriv();
    //Declaration List
    var Units = "mm"; 
    var i = this.path.search(/[^:/]+\.pdf$/);
    var fname = this.path.slice(i, this.path.length - 4);
    var cropRect = this.getPageBox("Crop"); 
    //Check if filename contains P01, indicating the Outside spread of a Catalog Cover. If so, crop accordingly
    if (fname.indexOf("P01") != 0)
    console.println("State P01 detected");
       var pageSide = "P01";
       var leftPageName = "P260.pdf";
       var rightPageName = "P001.pdf"; 
       var cropLeft = new Array();
          cropLeft[0] = cropRect[0];
          cropLeft[1] = cropRect[1];
          cropLeft[2] = cropRect[2];
          cropLeft[3] = cropRect[3] + 277.5; 
       var cropRight = new Array();
          cropRight[0] = cropRect[0];
          cropRight[1] = cropRect[1];
          cropRight[2] = cropRect[2] + 223.5;
          cropRight[3] = cropRect[3] - 62;
       doCropPages();
    else
       //If filname does NOT contain P01, check if filename contains P02, indicating the Inside spread of a Catalog Cover. If so, crop accordingly
       if (fname.indexOf("P02") != 0)
    console.println("State P02 detected");
          var pageSide = "P02";
          var leftPageName = "P002.pdf";
          var rightPageName = "P259.pdf";
          var cropLeft = new Array();
             cropLeft[0] = cropRect[0];
             cropLeft[1] = cropRect[1];
             cropLeft[2] = cropRect[2];
             cropLeft[3] = cropRect[3] + 223.5; 
          var cropRight = new Array();
             cropRight[0] = cropRect[0];
             cropRight[1] = cropRect[1];
             cropRight[2] = cropRect[2] + 277.5;
             cropRight[3] = cropRect[3];
          doCropPages();
       else
          // If filename doesn't contain P01 OR P02, give Error notice
    console.println("Document is not correctly named! Should have P01 or P02 in it");
    catch(e) {
    console.println("Batch aborted on run #" + global.counter + "Error: " + e);
    delete global.counter; // so we can try again, and avoid End Job code
    event.rc = false; // abort batch
    // End Job
    if ( global.counter == global.FileCnt ) {
    console.println("End Job Code");
    // insert endJob code here
    // may have to remove any global variables used in case user wants to run
    // another batch sequence using the same variables, for example...
    delete global.counter;

    Hy Folks,
    This thread can be closed, as I fixed the script! It turned out that I needed to put the function definition above the body-code for the script to find it. After that it was small details.
    I created a conversion variable (UnitsConv) for the margins so you  can simply enter the desired dimensions in mm, instead of px, which I  thought was easier.
    This script now perfectly processes the files  you put to it in a batch-operation (if correctly named with P01 and P02  in the filename.) and saves the resulting pages into the specified  temp-directory. This time the filenames reflect the original filenames,  for easy identification later, with the new pagenumbers appended to  them.
    For your information (and perhaps for use as the base for a custom  script for yourself) I give you the final working version below.
    This script will be trimmed down and become part of a larger script, or scriptset, which I will be using to automate the workflow of creating al different versions of lowres and highres catalogs that we need.
    Kind regards,
    Willy Croezen
    /* Q-CatCoverPagesSaveAs v1.0*/
    /* this script Crops CatCovers' Spreads and saves it into separate pages */
    /* ©20100521 - AOP-Creatives, Willy Croezen */
    // Begin Job
    if ( typeof global.counter == "undefined" ) {
    console.println("Begin Job Code ");
    global.counter = 0;
    // insert beginJob code here
    // Main Code to process each of the selected files
    try {
    global.counter++
    console.println("Processing File #" + global.counter);
    // insert batch code here.
    function doCropPages(crL,crR,lPName,rPName)
       this.setPageBoxes({
          cBox: "Crop",
          rBox: crL
          console.println("Save LeftPageName to: D:/temp/" + lPName);
          this.saveAs("/D/temp/" + lPName);
       this.setPageBoxes({
          cBox: "Crop",
          rBox: crR
          console.println("Save RightPageName to: D:/temp/" + rPName);
          this.saveAs("/D/temp/" + rPName);
    //Declaration List
    var UnitsConv = (72 / 25.4);
    var i = this.path.search(/[^:/]+\.pdf$/);
    var fname = this.path.slice(i, this.path.length - 4);
    var cropRect = this.getPageBox("Crop");
    //Check if filename contains P01, indicating the Outside spread of a Catalog Cover. If so, crop accordingly
    if (fname.indexOf("P01") != -1)
    console.println("Value fname.indexOf(P01) = " + fname.indexOf("P01"));
    console.println("State P01 detected");
       var pageSide = "P01";
       var leftPageName = fname + "P260.pdf";
       var rightPageName = fname + "P001.pdf";
    // Create array of crop-values. Sequence is left, top, right, bottom
       var cropLeft = new Array();
          cropLeft[0] = cropRect[0];
          cropLeft[1] = cropRect[1];
          cropLeft[2] = cropRect[2] - Math.floor(277.5 * UnitsConv);
          cropLeft[3] = cropRect[3];
       var cropRight = new Array();
          cropRight[0] = cropRect[0] + Math.floor(223.5 * UnitsConv);
          cropRight[1] = cropRect[1];
          cropRight[2] = cropRect[2] - Math.floor(62 * UnitsConv);
          cropRight[3] = cropRect[3];
       doCropPages(cropLeft,cropRight,leftPageName,rightPageName);
    else
       //If filname does NOT contain P01, check if filename contains P02, indicating the Inside spread of a Catalog Cover. If so, crop accordingly
       if (fname.indexOf("P02") != -1)
    console.println("State P02 detected");
          var pageSide = "P02";
          var leftPageName = fname + "P002.pdf";
          var rightPageName = fname + "P259.pdf";
    // Create array of crop-values. Sequence is left, top, right, bottom  
          var cropLeft = new Array();
             cropLeft[0] = cropRect[0];
             cropLeft[1] = cropRect[1];
             cropLeft[2] = cropRect[2] - Math.floor(223.5 * UnitsConv);
             cropLeft[3] = cropRect[3];
          var cropRight = new Array();
             cropRight[0] = cropRect[0] + Math.floor(277.5 * UnitsConv);
             cropRight[1] = cropRect[1];
             cropRight[2] = cropRect[2];
             cropRight[3] = cropRect[3];
          doCropPages(cropLeft,cropRight,leftPageName,rightPageName);
       else
          // If filename doesn't contain P01 OR P02, give Error notice
    console.println("Document is not correctly named! Should have P01 or P02 in it");
    catch(e) {
    console.println("Batch aborted on run #" + global.counter + "Error: " + e);
    delete global.counter; // so we can try again, and avoid End Job code
    event.rc = false; // abort batch
    // End Job
    if ( global.counter == global.FileCnt ) {
    console.println("End Job Code");
    // insert endJob code here
    // may have to remove any global variables used in case user wants to run
    // another batch sequence using the same variables, for example...
    delete global.counter;

Maybe you are looking for

  • Update the authorization object value for more than 1000 role

    I need to remove one of the activity value (06) from authorization object S_SCD0. I do a search and found out that there are more than 1000 roles which having the activity value = 06 for authorization object S_SCD0. However, I don't think I can creat

  • Error In ICWC

    Hi All, After creating the Service Ticket in ICWC it showing an error that Enter Organization Unit sales. I have Created new Org Structure and assigned Profile to it and under that i have created position and under that i have assigned a user.When i

  • The font that won't quit ??

    Greetings, I'm a real newbie. I've had my computer for a month now. I'm having a grand old time learning all about it !! I've run into a "huge" ( to me) problem. At one point a week or so ago I was playing with the font's in Safari. I changed the sta

  • Appleworks 6.2.9 and OS 10.4.2 Problem

    When I use the Assistant in Appleworks to prepare an envelope, Appleworks crashes at the moment I try to select the Page Setup. I have tried deleting Appleworks and reinstalling from 6.2 CD and then the 6.2.9 Update to no avail. I may have more than

  • I want to know if firefox, mozilla, thunderbird or any of your programs are related to google, internet explorer or the government?

    Seems like the US Government have their finger in all things global so wondering if your search engine is truly safe from government interaction? I've been researching Rense & Moret and not liking what I hear about the US Government and NASA using in