Help with Batch Editing Loop CD's in Logic

Helo there. I've been given the task of organizing and editing someone's loop library. I've filtered through and narrowed down the CD's I'd like to cut up and export as individual files. I already have a naming convention that works for us, however, I'm wondering if there's a streamlined process for doing this.
My current plan is to import each CD's tracks (anywhere 20-45) into a single Logic Project folder. As of now, I have to go through and manually splice each track (even though there is distinct silence between the parts I want to export individually). Copy each part to a new track then export them all when I'm finished.
I guess what I'm looking for is any advice to speed this process up (other than coffee!) Has anyone had to do anything like this before? Is there a quicker way of cutting up these tracks than doing it manually?
Any help would be appreciated

*Strip silence* the audio into regions:
Then *'save regions as'* from the audio bin.

Similar Messages

  • I need help with Cool Edit 2000

    I need help with Cool Edit 2000. Can someone help me?

    Message edited by moderator: maybe don't publicly post your serial?
    Quite! Never a good idea, even with really old software...
    jackm36094786 wrote:
    Steve: What I have is a Serial # (?) xxx ID # 105368761 and a case # 3009176.I also have the program on my Gateway computer but I don't know how to use it.  Is this of any assistance?
    The program software should install fine (others report using it successfully) but the difficulty has always been registering it. To do this you need to find a program (that often people discard, unfortunately) called ce2kreg.exe and run that. That's where you enter your registration details, and how you get rid of all the noises that CE2000 will put all over your audio otherwise (unless you severely restrict the facilities you can use).
    It used to be the case that if you'd lost the registration program but had the serial numbers, that Adobe would send you a copy of ce2kreg.exe, but somehow I doubt that they'd be willing to do this any more - it was a long time ago now, after all.

  • I need help with my for loop in this array

    Ok well, I can't get my code to work. Also, please remember that this is just my draft so it isnt pretty. I will fix it up later so please look at it. The thing I want to do is look into the array for a time that matches what the user entered and return the toString() of that one. I know there is something wrong with my for loop but I cant figure how to fix it. please help. here is what i have so far:
    import javax.swing.JOptionPane;
    public class Runner
        public static void main (String[] args)
            String timeStr;
            int time, again, optiStr;
            Inbound[] in = new Inbound[25];
             in[0]=new Inbound ("",0,"On Time num0");
             in[1]=new Inbound ("",2,"On Time num1");
             in[2]=new Inbound ("",3,"Delayed num2");
             in[3]=new Inbound ("",4,"On Time");
             in[4]=new Inbound ("",5,"On Time");
             in[5]=new Inbound ("",6,"Canceled");
             in[6]=new Inbound ("",1,"Canceled num6");
             in[7]=new Inbound ("",8,"On Time");
             in[8]=new Inbound ("",9,"Delayed");
             in[9]=new Inbound ("",10,"On Time");
             in[10]=new Inbound ("",11,"Delayed");
             in[11]=new Inbound ("",12,"On Time");
             in[12]=new Inbound ("",13,"Delayed");
             in[13]=new Inbound ("",14,"On Time");
             in[14]=new Inbound ("",15,"On Time");
             in[15]=new Inbound ("",16,"On Time");
             in[16]=new Inbound ("",17,"Canceled");
             in[17]=new Inbound ("",18,"On Time");
             in[18]=new Inbound ("",19,"On Time");
             in[19]=new Inbound ("",20,"Canceled");
             in[20]=new Inbound ("",21,"On Time");
             in[21]=new Inbound ("",22,"Delayed");
             in[22]=new Inbound ("",23,"On Time");
             in[23]=new Inbound ("",24,"Cancled");
             in[24]=new Inbound ("",7,"On Time num24");
            do{
                timeStr = JOptionPane.showInputDialog ("In military time, what hour do you want?");
                time = Integer.parseInt(timeStr);
                if (time<=0 || time>24)
                 JOptionPane.showMessageDialog (null, "Error");
                 optiStr = JOptionPane.showConfirmDialog (null, "If you want Incoming flights click Yes, but if not click No");
                if (optiStr==JOptionPane.YES_OPTION)
    //(ok this is the for loop i am talking about )
                    for (int index = 0; index < in.length; index++)
                      if ( time == Inbound.getTime())
                   JOptionPane.showMessageDialog (null, Inbound.tostring());  //return the time asked for
    //               else JOptionPane.showMessageDialog (null, "else");
                }//temp return else if failed to find time asked for
    //             else
    //               if (optiStr==JOptionPane.CANCEL_OPTION)
    //                 JOptionPane.showMessageDialog(null,"Canceled");
    //              else
    //                {Outbound.run();
    //                JOptionPane.showMessageDialog (null, "outbound");}//temp
                  again=JOptionPane.showConfirmDialog(null, "Try again?");
            while (again==JOptionPane.YES_OPTION);
    }any help would be greatly appriciated.

    rumble14 wrote:
    Ok well, I can't get my code to work. Also, please remember that this is just my draft so it isnt pretty. I will fix it up later so please look at it. The thing I want to do is look into the array for a time that matches what the user entered and return the toString() of that one. I know there is something wrong with my for loop but I cant figure how to fix it. please help. here is what i have so far:
    >//(ok this is the for loop i am talking about )
    for (int index = 0; index < in.length; index++)
    if ( time == Inbound.getTime())
    JOptionPane.showMessageDialog (null, Inbound.tostring());  //return the time asked for
    Inbound.getTime() is a static method of your Inbound class, that always returns the same value, I presume? As opposed to each of the 25 members of your array in, which have individual values?
    Edited by: darb on Mar 26, 2008 11:12 AM

  • Help with resultset and looping thru a sql filed

    Hi,
    I have a SQL statement which connects two tables with accounting number, the table2 have multiple rows for one accounting number in table1.
    So I did if else condition in accounting number in resultset as following:
    List<AccRecord> retval = new ArrayList<AccRecord>();
    while(rs.next())
    //instance of account record
    AcciRecord acct1 = new AccRecord();;
                   if(acc_No != accountNumber)
                           //then get all data from table1                    
                   acc1.setEmpId(rs.getInt("ACC_ID"));
                             acc1.setEmpId(rs.getString("Acc_Name"));//and other 20 fields like this
              else if(acc_No == accountNumber) //this is where it breaks down if same acc number has more than one row in table2,we don't //want to get all other data again from table1
                                                 //also get all data associated with that accounting number from table2
                                 Other other1 = new Other();                         
                                 other1.setEmpId(rs.getInt("EMP_ID"));//these are datas from table2
                                 other1.setjobCode(rs.getString("JOB_CD"));
                                 other1.add(crew1);
    retval.add(acc1);
    }My question is how can I make logic right, in above code for the first account number it will go to else if condition (coz very first time acc number is never going to be different then previous accounting number,so it won't get my accounting data, the way I have compared it)
    I want to code like for one accounting number it brings all accounting data and for that accounting number it also brings all employee data (which is in table2) which will more than one entires,
    So..when accounting number is same as previous it shouldn't get all data again from table 1 ,it should go to only else if condition to get data from table 2 , it should go to my if block only when there is a new accounting number, in other words when there is next record in table1
    Can anybody help me??
    Please...
    Thanks
    Edited by: ASH_2007 on Mar 28, 2008 11:55 AM

    hi there,
    thanks for ur feedback
    but it is always going to contian accno .. so it will never go in your condition
    May be I haven't explained it well
    I need something which gets all data for every new account number in table 1
    Now for that same account number, table2 have 3 rows including that account number 3 times (I am connecting this 2 tables with acc no, table 1 doesn't have duplicate acc no but table 2 does)So my resultset runs 3 times for the first record in table 1, because for that accno table 2 has 3 entries
    This is because my sql is as follow,,which I have to,,I can't change due to requirements...
    SELECT A.accNumber, A.Date, B.EMP_ID, B.JOB_CD
    FROM Table A,  Table B,  (SELECT SSA.accNumber FROM Table SSA, Table SSB       
        WHERE SSB.EMP_ID = ?  AND
       SSA.accNumber = accNumber) C          
    WHERE A.accNumber = C.accNumber                                            
       AND A.accNumber = B.accNumber                        
    //so if I do: like this in my resultset
    while(rs.next())
    Integer accNumber = rs.getINt(accNumber);
    accno =accnumber;
    if (accno != accNumber)
    { get all account data
    else if(accno == accNumber)
    { get all other data
    }but question is it will not satisfy my if condition , because for a new record ,in this case,in first record acc number will never match...
    I appreciate your help and time
    Please help me
    THnaks
    Edited by: ASH_2007 on Mar 28, 2008 1:54 PM

  • Help with batch processing

    Hi, I am having trouble with batch processing. I want to apply adaptive noise reduction (ANR) to several files from the same source tapes. So, following the help instructions, I create a script from one file. When I try to apply it to the other files, instead of applying ANR to them, it simply saves them as is. The steps I perform are as follows:
    I select the entire wave (I have also tried it without first selecting)
    I open the scripts box in the file menu
    I click on open/new script collection and create a new script
    I title the new script
    I click 'record'
    I close the scripts box
    I run ANR on the file
    I go back to the scripts box and click 'stop current script'
    I click add to collection
    I close the scripts box
    I open the batch processing box
    I select the files, then the script, then I click to start processing
    When I try to apply this to script to other files, it saves them but doesn't apply ANR.
    Can anyone suggest what I am doing wrong? Also, in the scripts box, there are three options for the type of script that I can create. One is highlighted: 'Scripts start from scratch.' Is that the correct one to use? If not, how do I select one of the others? I click on them but nothing happens. Finally, when creating a script, do I save the file before or after clicking 'stop record'? I have tried it both ways but don't know which is correct (neither seems to make a difference).
    Just to be as thorough as possible, below is the text of one of my scripts, in case that contains any clues. Thanks so much for any and all help!!
    Collection: doubletnr
    Title: d2
    Description:
    Mode: 2
    Undo: 0
    Selected: none at 0 scaled 109479495 SR 44100
    Freq: Off
    cmd: Channel Both
    Selected: 0 to 109479494 scaled 109479495 SR 44100
    Freq: Off
    Comment: Restoration\Adaptive Noise Reduction
    cmd: {EA93BBBE-0B8F-47D6-AC6D-B67B46524E41}
    1: 52,AAA€ÛÚZ€AAQ€ãýÇÛÚÚAAA€Ďč¸āĂ}úƒÓ~ip€k•iëåÁëåÁ
    2:
    3: 13
    4: 0
    5: 0
    6: 3190728
    7: 0
    8: 0
    9: 0
    10: 1
    Freq: Off
    End:

    This is what my script looks like. Although I was worried about the strange characters in the script, it does work.
    Make sure that the script you use is suitable for the sample rate and bit depth of the file. E.g. if you have 44100/32-bit files, then don't use a script that was recorded on a file with e.g. 48000/16-bit. If required, resample or make different scripts for different rates/depths.
    Collection: Test ANR AA Forum
    Title: Test ANR AA Forum
    Description:
    Mode: 4
    Undo: 1
    Selected: 0 to 9233563 scaled 9233563 SR 44100
    Freq: Off
    cmd: Channel Both
    Selected: 0 to 9233563 scaled 9233563 SR 44100
    Freq: Off
    Comment: Restoration\Adaptive Noise Reduction
    cmd: {EA93BBBE-0B8F-47D6-AC6D-B67B46524E41}
    1: 52,AAA€ÛÚZ€AAQ€ãýÇÛÚÚAAA€Ďč¸āĂ}úƒÓ~ip€k•iëåÁëåÁ
    2:
    3: 13
    4: 0
    5: 0
    6: 154705552
    7: 0
    8: 0
    9: 0
    10: 1
    Freq: Off
    End:

  • Help with multiclip editing in FCP

    Can someone please help me with multiclip editing. I have followed all the steps in the tutorials I have watched but I am unalble to switch between the two angles in the time line. Also the red line in the time line is telling me to render everything first . Is that normal or is it because I am using the 5.0 version of FCP?

    To switch between angles, the timeline should not be rendered. Once you render it, it may play more smoothly, but you can't switch.
    Also, sometimes you may have trouble switching many HD files, so it might work better to use Media Manager to make lower resolution proxies for your editing, then bringing the full-res files back for your final output. If the computer can't handle the load, it may refuse to do multiclip editing.
    Finally, you may need to switch Playhead Sync back to "Open" from time to time. For some reason, the Viewer sometimes switches to "Sync Off".
    By the way, your question actually belongs on the Final Cut Studio forum:
    https://discussions.apple.com/community/professional_applications/final_cut_stud io

  • Help with do while loop

      This program that reads a character representing a geometrical
      figure, then asks the user to enter the required data (ex. Radius for
      a circle, length and height for a rectangle, etc.  ...) .
      The program should then print the area and circumference.   Figures are: circle(c), square(s), rectangle(R), triangle (t).
      The program should repeat until a figure with area <10 are read
       import javax.swing.JOptionPane; // program uses class JOptionPane
        public class Sh7q6
       // main method begins execution of Java application
           public static void main( String args[] )
             String outputStr; // The output string
             String str; // The entered characher
             char n; // The character entered
                   double a; // aera
             double radius; // the radius of a circle
             double area; // the area of a circle, square, rectangle, triangle
             double circumference; // the circumference of a circle
             double m; // The square side length
             double circumference1;  //  the total for a * a
             double length;  // the length of a rectangle
             double width;  // the width of a rectangle
             double circumference2;  //  the total for 2*(length + width)
             double base; // the base of a triangle
             double side1; // the first side of a triangle
             double side2; // the second of a triangle
             double hight;
             double circumference3;  //  the total for ( base + side1 + side2 )
             do
             // display the information in a JOptionPane message dialog
                str = JOptionPane.showInputDialog("Enter a character specifying a geometrical shape" +
                   "\n" + " Circle = c" + "\n" + "Rectangle = R" + "\n" + "Square = s" + "\n"
                   + "Triangle = t" );
                n = str.charAt(0); // return the caracter
                switch (n)
                   case 'c':
                   case 'C':
                   // convert String inputs to double values for use in a calculation
                      radius = Double.parseDouble(
                         JOptionPane.showInputDialog("Enter the radius of a circle:"));     
                      area = 3.14 * Math.pow ( radius, 2); // calculate the area      
                      circumference = 2 * 3.14 * radius;// calculate the circumference
                      outputStr = String.format("The area of a circle is: %.2f%n" +
                         "The circumference of a circle is: %.2f", area, circumference);
                   // display result in a JOptionPane message dialog
                      JOptionPane.showMessageDialog(null, outputStr , "The result",
                         JOptionPane.INFORMATION_MESSAGE);
                      break;
                   case 's':
                   case 'S':
                   // convert String inputs to double values for use in a calculation
                      m = Double.parseDouble(
                         JOptionPane.showInputDialog("Enter the square side length:"));     
                      area = Math.pow ( m, 2); // calculate the area         
                      circumference1 = 4 * m;// calculate the circumference
                      outputStr = String.format("The area of a square is: %.2f%n" +
                         "The perimeter of a square is: %.2f", area, circumference1);
                   // display result in a JOptionPane message dialog
                      JOptionPane.showMessageDialog(null, outputStr , "The result",
                         JOptionPane.INFORMATION_MESSAGE);
                      break;
                   case 'r':
                   case 'R':
                   // convert String inputs to double values for use in a calculation
                      length = Double.parseDouble(
                         JOptionPane.showInputDialog("Enter the length of a rectangle:"));
                      width = Double.parseDouble(
                         JOptionPane.showInputDialog("Enter the width of a rectangle:"));     
                      area = length * width ; // calculate the area     
                      circumference2 = 2* (length + width); // calculate the circumference
                      outputStr = String.format("The area of a square is: %.2f%n" +
                         "The perimeter of a square is: %.2f", area, circumference2);
                   // display result in a JOptionPane message dialog
                      JOptionPane.showMessageDialog(null, outputStr , "The result",
                         JOptionPane.INFORMATION_MESSAGE);
                      break;
                   case 't':
                   case 'T':
                   // convert String inputs to double values for use in a calculation
                      base = Double.parseDouble(
                         JOptionPane.showInputDialog("Enter the base of a triangle:"));
                      side1 = Double.parseDouble(
                         JOptionPane.showInputDialog("Enter the first side of a triangle:"));
                      side2 = Double.parseDouble(
                         JOptionPane.showInputDialog("Enter the second side of a triangle:"));
                      hight = Double.parseDouble(
                         JOptionPane.showInputDialog("Enter the hight of a triangle:"));     
                      area = 0.5 * base * hight; // calculate the area      
                      circumference3 = base + side1 + side2;// calculate the circumference
                      outputStr = String.format("The area of a triangle is: %.2f%n" +
                         "The circumference of a yriangle is: %.2f", area, circumference3);
                   // display result in a JOptionPane message dialog
                      JOptionPane.showMessageDialog(null, outputStr , "The result",
                         JOptionPane.INFORMATION_MESSAGE);
                      break;
                   default:
                   // display result in a JOptionPane message dialog
                      JOptionPane.showMessageDialog(null, " The letter you entered doesn't " +
                         "represent either a circle or a rectangle or a square" , "ERROR",
                         JOptionPane.ERROR_MESSAGE);
             while (  area > 10 );
             System.exit(0);
          } // end method main
       } // end class Sh7q6the Q is how can i say when the area < 10 stop the loop in the while logical expression..

    the Q is how can i say when the area < 10 stop the loop in the while logical expression..You're almost already doing that. You're doing this:
             while (  area > 10 );As soon as the area is 10 or below, that expression will evaluate to false and the loop will end.
    If you want to still loop when the value is 10, then change it to:
             while (  area >= 10 );

  • Help with a nested loop

    basically i need to make a diamond shape out of asterisks. There should be 11 in the middle and decreasing by 2 each line above and below it, until it reaches 1. Now i've come up with a for loop that prints what i need for the top half of the diamond(but the asterisks are not centered). How would i center them and also print the bottom half of the diamond? here's what i have so far.
    import java.io.*;
    class diamond{
         public static void main(String[] args)
         int a;
         int b;
              for(a = 1; a <=11; a++)
                   for(b = 1; b <= a; b++)
                        System.out.print('*');
              System.out.println();
    }here's what it outputs:
    Press any key to continue . . .

    public class Diamond {
        private static final int MAX = 11;
        private static final int MIN = 1;
        public static void main(String[] args) throws Exception {
            for(int a = MIN; a <= MAX; a++) {
                for(int b = MAX; b >= MIN; b--) {
                    if(b <= a) {
                        System.out.print(" *");
                    } else {
                        System.out.print(" ");
                System.out.println();
            for(int a = MIN; a <= MAX; a++) {
                for(int b = MIN; b <= MAX; b++) {
                    if(b <= a) {
                        System.out.print(" ");
                    } else {
                        System.out.print(" *");
                System.out.println();
    }And here's my output:
               *

  • Online help with Batch Capture

    I'm trying to online a sequence in a tapeless workflow.  I'm using Log & Transfer along with Batch Capture but Batch Capture keeps looking for a deck.  How do I get it to look for my Hi-Res digital files?

    Yeah...that's the problem.
    You directly imported it and worked with it natively? What is this footage? From what camera?
    The only way to offline/online with tapeless is to bring in the footage via Log and Transfer.  Log and Transfer to ProRes Proxy...then you can Batch Capture to a higher data rate ProRes format.

  • Need help with "batch saving workflow" quicktime / automator

    Hi, my goal:
    I have a lot of folders with (windows) DV-avi files I need to change container to apple mov.
    The best way - I found out - to just change the container from avi to mov - without touching the video and audio stream or metadata - is:
    open the file in quicktime pro 7
    save as self contained movie (same filename, same location).
    wait til finished.
    open next file...
    As far as I understand, the script should open and handle many files automatic, file by file - always waiting til process is finished, before starting with next file.
    A probably similar thing I found is a script for batch encode..... but I need batch save , because I don't want to "touch" the source media
    on run {inputFiles}
      if inputFiles is equal to {} then
        set inputFiles to (choose file with prompt "Select the file(s) to convert:" with multiple selections allowed without invisibles)
      end if
      open inputFiles
    end run
    on open droppedItems
      tell application "Finder" to set inputFolder to (container of first item of droppedItems) as Unicode text
      set outputFolder to (choose folder with prompt "Select output folder:" default location (inputFolder as alias)) as Unicode text
      set exportPreset to (choose from list {"Movie", "iPhone", "iPod", "HD 480p", "HD 720p"} with prompt "Choose QuickTime Export Preset:") as Unicode text
      if exportPreset is equal to "false" then
        return
      end if
      repeat with currentItem in droppedItems
        repeat until getProcessPercentCPU("CoreMediaAuthoringSessionHelper") is equal to ""
          delay 30
        end repeat
        tell application "Finder" to set fileName to name of currentItem as Unicode text
        convertFile(currentItem, outputFolder & fileName & ".mov", exportPreset)
        delay 30
      end repeat
    end open
    on convertFile(inputFile, outputFile, exportPreset)
      tell application "QuickTime Player"
        set thisMovie to open inputFile
        export thisMovie in (outputFile) using settings preset exportPreset
        close thisMovie
      end tell
    end convertFile
    on getProcessPercentCPU(processName)
      do shell script "/bin/ps -xco %cpu,command | /usr/bin/awk '/" & processName & "$/ {print $1}'"
    end getProcessPercentCPU
    As I can’t get it to work myself, I ask for help…….
    Appreciate your answer
    all the best from austria

    You don't need to go through the double export process. You can either place the edited and rendered 720p sequence in the 352x288 sequence and then export, or you can scale the image down on export in the QuickTime Conversion export module, or in Compressor. Any QuickTime can read uncompressed video.

  • Need help with an infinite loop please

    Can somebody please help me out with displaying text that's been imported from another file onto a JTextArea? this is the code i've been trying to get to work, and it does, but it is stuck in an infinite loop and i can't see why. I've tried adding a counter before the while loop, and displaying and incrementing it inside the loop. The counter gets to 32 (the last line of the file) then goes back to 1 and starts again. Any help, or explanations would be awesome, thanks.
    String line;
         while ((line=reader.readLine())!=null){
              System.out.println(num);
              append(line+" \n");
         }                              

    think you will have to post some more of the code, is that within any sort of loop itself , has it its own method ? is it an event handler ? ..btw the append sould be fine .. is this a subclass of a TextArea ? where is this bit of code ?
    Message was edited by:
    odd_function

  • New bee looking for applescript help with text edit app

    I have a huge text files (20+) , I want to find a list of words like weather, farmers, ploughing. I want to find these words one at a time, as my text file is 250+ Mb in size.
    I want applescript to count the how many times each word appears in the text.
    Paste that occurrence of word into an spreadsheet file in a row named after text file , and in a column named weather, farmers, ploughing.
    Please help.
    Thanks much.
    CF
    PS so far I can open the text files with applescript, that is about the extent of my ability in programing.
    Message was edited by: coldfusions onco

    For a file of that size, you would need to use some shell utilities to get decent performance. To count words, the following script breaks up the text into words, then counts the number of times the specified word is found (a dictionary file is used as an example, so the match is equivalent to 'contains'):
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set theFile to "/usr/share/dict/web2" -- a 2.5MB list of words
    set someWords to {¬
    {theWord:"weather", theCount:0}, ¬
    {theWord:"farmers", theCount:0}, ¬
    {theWord:"ploughing", theCount:0}}
    repeat with anItem in someWords
    set aWord to quoted form of theWord of anItem
    try -- break up into individual words, then search and count
    set theCount of anItem to (do shell script "tr -cs '[:alpha:]' " & quoted form of linefeed & " < " & theFile & " | grep -ic " & aWord) as integer
    end try
    end repeat
    someWords
    </pre>
    Is this related to your Automator post?

  • Help with Batch Labeler (extremely Urgent)

    Good Afternoon Eeveryone,
    I am in need of help to create a Batch file to stamp the filename of the PDF document in the document itself.
    This is for audit and control purposes.
    i have the following javascript to add the filename as a header.
    app.addSubMenu({ cName: "Header",cUser: "Set/Remove Header", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "(Filename)", cParent: "Header", cExec: "SetHeader(1)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Header",cExec: "{}"});
    app.addMenuItem({ cName: "(Filename)", cParent: "Header", cExec: "RemoveHeader(1)"});
    //Set/remove Header
    function SetHeader(ARG)
    var re = /.*\/|\.pdf$/ig;
    var FileNM = this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "yyyy/mmm/dd  HH:MM"
    var Box2Width = 50
    for (var p = 0; p < 1; p++)
      var aRect = this.getPageBox("Crop",p);
      var TotWidth = aRect[2] - aRect[0]
      if (ARG<=3 || ARG==9)
       { var fd = this.addField("xftDate", "text", p, [20,1600, TotWidth-30-30,30]);
          fd.value = "Nº:" + FileNM;
           fd.textSize=12; fd.readonly = true;
           if (ARG==1){ fd.alignment="left" };
           if (ARG==2){ fd.alignment="center" };
           if (ARG==3){ fd.alignment="right" };
      if (ARG==4 || ARG==5 ||ARG==9)
       {  var hStart=(TotWidth/2)-(Box2Width/2)
           var hEnd=((TotWidth/2)+(Box2Width/2))
           if (ARG==5){var hStart=(TotWidth-Box2Width-30); var hEnd=(TotWidth-30);}
           var fp = this.addField(String("xftPage"+p+1), "text", p, [hStart,30,hEnd,1450]);
           fp.value = "Page: " + String(p+1)+ "/" + this.numPages;
           fp.textSize=12;  fp.readonly = true;
           fp.alignment="center";
    function RemoveHeader(ARG)
    if (ARG<=3 || ARG==9) {var x = this.removeField("xftDate");}
    if (ARG==4 || ARG==9)
       {  for (var p = 0; p < this.numPages; p++)
          {var x = this.removeField(String("xftPage"+p+1)); }
    I found this on another Thread and made some changes to suit my needs, now i need this to reproduce to a large ammount of pdf files, and that works with adobe reader.
    i have this batch file that i also took from another thread, if i click on it it works fine, i change the directory where it sends the files but when i drop a file on it it gives a error saying it cant "create object acroexch.app"
    '//////  User settings /////////////////////////////////////////////////////////
    fileSaveDir = "c:\Temp"    '/->state an existing folder for saving changed files
    mode = 1         '/->  0=work hidden; 1= show acrobat
    test = 1             '/-> 0= don't show messages; 1=show messages
    '    // set WSH objects
    set oWsh = CreateObject ("Wscript.Shell")
    Set oArgs = WScript.Arguments
    Set fso = CreateObject("Scripting.FileSystemObject")
    '    // test basic files/folders
    if not fso.FolderExists(fileSaveDir) then : msgBox("Folder """ &fileSaveDir &""" don't exist") : wscript.quit : end if
    if oArgs.Count = 0 then :    MsgBox("Drag & Drop files on this") : Wscript.quit : end if
    '    // set acrobat basic objects
    Set App = CreateObject("Acroexch.app")
    if mode > 0 then app.show
    Set AVDoc = CreateObject("AcroExch.AVDoc")
    Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
    '    // write  acro-js to a variable for later executing
    Ex = "  // set Date and filename as footer  "&vbLF _
      & "  var re = /.*\/|\.pdf$/ig;  "&vbLF _
      & "  var FileNM = this.path.replace(re,"""")+"".pdf"";  "&vbLF _
      & "  var AcDate = new Date();  "&vbLF _
      & "  var AcDateFormat = ""yyyy/mmm/dd  HH:MM"";  "&vbLF _
      & "  for (var p = 0; p < this.numPages; p++)   "&vbLF _
      & "  {   "&vbLF _
      & "    var aRect = this.getPageBox(""Crop"",p);  "&vbLF _
      & "    var TotWidth = aRect[2] - aRect[0];  "&vbLF _
      & "    var fd = this.addField(""xftDate"", ""text"", p, [30,15, TotWidth-30-30,30]);   "&vbLF _
      & "    fd.value =  util.printd(AcDateFormat, AcDate) + ""   ("" + FileNM +"")"";   "&vbLF _
      & "    fd.textSize=6;   "&vbLF _
      & "    fd.readonly = true;  "&vbLF _
      & "    fd.alignment=""left"";  "&vbLF _
    '    // kernel: batch processing of js-code
    for each xFile in oArgs
        if test = 1 then : OK = msgbox("Change file: " & xFile,1) : if OK = 2 then WScript.quit : end if
        If not fso.FileExists(xFile) Then : msgbox("File doesn't exist") : wscript.quit : end if
        If AVDoc.Open(xFile,"") Then
            set PDDoc = AVDoc.GetPDDoc
            AForm.Fields.ExecuteThisJavaScript Ex
            outFile = fileSaveDir &"\" &mid(xFile,InstrRev(xFile,"\")+1)
            if test = 1 then : OK = msgbox("Script executed"&vbCr&"SaveAs: "&outfile,1) : if OK = 2 then WScript.quit : end if
            If fso.FileExists(outFile) Then fso.DeleteFile(outfile)
            PDDoc.save 1, outFile
            App.CloseAllDocs
        else
            msgbox("Coudn't open file!") : wscript.quit
        end if
    next
    OK = msgbox("Batchjob finished!" &vbCr &"Close Acrobat?",1) : if OK = 1 then app.exit
    Set AVDoc = Nothing : Set PDDoc = Nothing
    Set APP = Nothing : Set AForm = Nothing

    thanks for all the replies, the documents are forms usage rights, the first javascript is running fine and dandy doing exactly what i want, all i need is something to run that javascript on multiple pdf at once.
    since this is for audit purposes i really could use this otherwise i would have to manually write over 400 document filename/numbers on eveyr piece of paper..
    =X

  • Help with Exporting Edited Version of Picture

    With iPhoto I an trying to edit (crop and adjust the color) of photographs. I have tried exporting the photo, but the cropping does not come over. Color changes come fine, but no cropping.
    HELP?!?!?
    Thanks.
    B2

    Cropping takes a few steps. Click Crop, choose a constrain ratio if you want, adjust the crop box to where you want it. Finally, click Crop again to perform the crop. When you click Done or select another photo you should get the message "Saving Changes" (or something to that effect) to let you know it worked.
    Are you doing all of these steps?

  • Need help with batch processing picture packages

    Hi, I am having trouble batch processing picture packages is CS2.  (Windows).
    I have hundreds of images that need to be processed into picture packages and would love to find a speedier way to do this.
    I know how to create an action.  I know how to batch process from this action.  I also know how to create picture packages, but I cannot get the final result I am after - please read on....
    I have seperated all the images into their seperate folders for each style of picture package required.
    I can create an action for the picture package required and then do a batch process on the particular folder, but this leaves all the picture packages open on the desktop - as when you chose the close and save in the batch process - this only closes and saves the original image - the picture package has been created as a new document and is on the desktop still open - named Picture Package 1, Picture Package 2 - etc etc.
    I hope I am making some kind of sense here... (??!!)
    What I would like to happen is that the picture package will be saved over the original file (or to a new folder) with the original file name of the original image or maybe even with an adjustment to file name (e.g - orignal file name sc1234.jpeg - new file name sc1234packA.jpeg)
    So is this possible to do??  I'm thinking there must be a way.... i'm sure there are many group photographers out there who come across this everyday??
    Otherwise I have to save each picture package manually to original file name (via searching though files to match the original image to the picture package....) Very time consuming.
    Thanks for your help (in anticipation)...
    Jodie

    hmm - thanks for that - sounds like I will have to try and find some info and assistance regarding the scripting - it may be something I need to look into at a later time in the future....
    At the moment though I will have to plod along with this method I guess!
    Thanks for your assistance...
    Jodie

Maybe you are looking for

  • In P6 version7 not able to copy project with the baseline.

    Hi, In P6 version 7 it is not able to copy project with the baseline. It copies only the schedule. Please help. regards, Baber.

  • Macbook possible virus

    my daughter is having issues surfing web on macbook. intially all runs well but after visiting a couple of sites the computer seems to slow down to a near standstill causing her to have to reboot. any pointers?

  • Thread Pool Size

    What can be the maximum thread pool size used in java. What happens if i put up a thread pool size in range of 10k or 20k. how does affect system performance ??? Its quite urgent for me to know. Can someone help out ??? Regards Hrushi

  • IMac keeps crashing Kernal Log help please

    Hello, I have a imac mid 2007 runnibg Lion 10.7.2 upgraded 4gb Ram 2Ghz - It doesn't matter what application Iam in, I constantly get Kernel panic, then the screen freezes and I have to switch off manually. I have a wireless keyboard so not able to r

  • Audio In and Out Question (Any iDevice)

    How would I get audio from my iPod and loop back in my iPod LIVE as a "Microphone" while hearing it LIVE? Is there any way with audio cables and such I could accomplish this? Thanks! -William