Delete first page and move the second and the third one to the end of the document

Hello Guys,
First of all thanks for anyone that dedicated some time reading my post.
I have the following "quest" for almost 1000 pdf files with different pages within.
a) Delete the first page (I managed with the batch processing)
b) Move page 2 and 3 after the last page of that document
Already searched already with the "batch processing" however i didn't find any useful option.
In my opinion (please guys correct if i'm wrong), the only way that I can do it, is with  a javascript.
I found one on the web, and modified a little bit and tried however it doesnt work:
// Creazione file temp per copy delle pagine 2 e 3
var tempDoc = app.newDoc("/C/copytemp.pdf");
// Copy delle pagine 2 e 3
tempDoc.insertPages({
          cPath: "/C/PDF Originali/*.pdf",
          nStart: 2,
          nEnd: 3
// Copy le pagine 2 e 3 alla fine del documento:
this.insertPages({
          nPage: 100,
          cPath: "/C/copytemp.pdf"
// Cancella pagine 1 a 3
this.deletePages({nStart: 1, nEnd: 3});
Anyone would be so kind to share any solution external or non from to help me out with that quest? I would really appreciate it!
Thanks !

Gilad, thanks for the fast response, actually i don't know if i'm doing something wrong.
Let me explain you my steps.
1) Batch Processing
2) New Sequence - Execute Javascript
3) Past your script
4) Run Command on: Ask when sequence....
5) Select output location: Ask when sequence....
But nothing happens. Would u be so kind to help with that?
Thanks again!

Similar Messages

  • I have rearranged all icons on the second and third pages to have a just a photo on my home, but if i switch off the iphone when i restarted it all the icons come back in the old position on the home and second page. I have ios5.

    I have rearranged all icons on the second and third pages to have a just a photo on my home, but if i switch off the iphone when i restarted it all the icons come back in the old position on the home and second page. I have ios5.

    you can suggest it here - http://www.apple.com/feedback/iphone.html
    And it is only a problem if you want a blank first screen.  Personally, it would drive me nuts always having to swipe over one page to get to my apps - the only time I unlock my iPhone is to use it or run an app, so no, I have no need nor desire to have a first screen with no icons at all.
    But, if they'd put it in as an option so people like yourself can also have what they want, that's fine too    So send them your feedback (they actually do listen - iOS 5 includes a number of things people have been asking for on these forums, like being able to delete individual entries from the call history, inproved alerts/notifications, being able to opt out of all the location based data they collect,...).

  • I signed up for sync on one computer and got a pairing code on the second computer but now I can't bring up the pairing screen on the first computer. Why not?

    I set up sync on the first computer, then got a sync code on the second computer. Now I can't bring up the sync screen on the first computer to sync them together.

    Hi shopper104, <br>
    # Click the Home button (or type about:home in the location bar) to bring up the default Firefox home page.
    # At the bottom of the home page, click the Sync link to open the Sync settings window.
    # Then click the Pair a device link and the Firefox Sync Setup window will open.
    # Enter the twelve character code generated on your other device and click Next.
    # When the code is accepted you will see a Device Connected message and your device will immediately begin syncing. Click Finish to close the setup window.
    <br><br>
    More information can be found in these articles:
    * [[Firefox Sync - Take your bookmarks, tabs and personal information with you]]
    * [[How do I set up Firefox Sync?]]
    * [[How do I add a device to Firefox Sync?]]
    Hope that helped you! Please report back.

  • I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    Hi Crushed,
    Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
    Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
    Regards,
    Ian.

  • I have itunes set up on a PC with all my music, apps, etc. I want to stop using PC and move my iTunes and files to a Mac I bought and synch my iPhone with the Mac. Can I just synch iPhone with Mac iTunes and will it copy all my stuff onto Mac, or will I h

    I have itunes set up on a PC with all my music, apps, etc. I want to stop using PC and move my iTunes and files to a Mac I bought and synch my iPhone with the Mac. Can I just synch iPhone with Mac iTunes and will it copy all my stuff onto Mac, or will I have to copy files from PC onto Mac?

    Here are some of the links to get you started.
    https://discussions.apple.com/thread/3727530?start=0&tstart=0
    http://support.apple.com/kb/HT4527
    http://www.macworld.com/article/1146958/move_itunes_windows_mac.html

  • In a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    in a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    Question already asked and answered several times.
    It's a bug striking in long documents.
    Select a word somewhere higher in the page then use the arrows to reach the wanted insertion point.
    Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 15:44:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • TS3694 my phone has switched off for the second time this week, however when connecting to itunes the restore process wont complete. the error is 2006 however i have tried a number of USB cords, and none seem to be working.

    my phone has switched off for the second time this week, however when connecting to itunes the restore process wont complete. the error is 2006 however i have tried a number of USB cords, and none seem to be working.
    I am in the noerthern [parts of australia and accessing an apple store is not possiable for another month. this is my only soucrce or telecommunication. please help

    This is what it says about error 2006
    Error 2000-2009 (2001, 2002, 2005, 2006, 2009, and so on)
    If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604 above. If the issue persists, it may be related to conflicting security software. If the errors persist on another computer and known-good USB cable, the device may need service.

  • Get line that contains and then get the second and fourth line after that.

    So I have a text file and I want it to find all the lines in the file that contain an @ symbol and then I want it to get that line and the line second and fourth from that line. Then I would export it like this:
    $linewith@ + ":" + $secondline + ":" + $fourthline
    Finding the lines with an @ symbol is easy, but how would I tell it to get the second and fourth line after the line with an @ symbol?
    So I would get the lines with something like this:
    foreach ($line in [System.IO.File]::ReadLines($filename)) {
    if($line.contains("@")){}

    That worked perfectly thanks man! Here is the entire code. I'm sure it could been cleaned up. I'm still learning powershell. 
    $username = "Username"
    $password = "Password"
    $url = "http://URL"
    $ie = New-Object -com InternetExplorer.Application
    $ie.visible=$false
    $ie.navigate($url)
    while($ie.ReadyState -ne 4) {start-sleep -m 100}
    $ie.document.getElementById("username").value = "$username"
    $ie.document.getElementById("password").value = "$password"
    $ie.document.getElementById("click").click()
    start-sleep 20
    $ie.Document.body.innertext | Out-File -FilePath c:\web.txt
    $links = $ie.Document.getElementsByTagName('A')
    $logout = $links | where {$_.innerText -eq 'logout'}
    $logout.click()
    start-sleep 5
    (gc C:\web.txt) | ? {$_.trim() -ne ""} | set-content C:\web.txt
    ( Get-Content C:\web.txt | Select-Object -Skip 2 | ForEach-Object { $_.TrimStart( " " ) } ) | Set-Content C:\web.txt
    start-sleep 5
    $fileContents = Get-Content C:\web.txt
    foreach ($line in $fileContents) {
    if ($line -like '*@*') {
    $line + ":" + $($fileContents[$line.ReadCount+0]) + ":" + $($fileContents[$line.ReadCount+3]) | Out-File -FilePath c:\finish.txt -Append

  • Bug: when you have two or more reminder pop-ups on BB10, you can't edit 2 or more of them because the second and beyond are lost...

    I notice that when you have two or more reminder pop-ups on BB10 (tasks, calendar, etc.), you can't edit 2 or more of these because the second and beyond get lost and will never pop-up again.  

    Hey JVanB,
    Thank you for your feedback.
    To better understand your issue, for example If you have two reminders and select 'View Event Details' on the 1st reminder,  does the 2st reminder popup before the Details of the1st reminder displays? 
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • TS1389 I purchased a song on iTunes that is now appearing twice on my library; the first download only plays 37 seconds of the song, the second download will not play & prompts me to authorize the computer to allow it to play.  Suggestions?

    I purchased a song on iTunes that is now appearing twice on my library; the first download only plays 37 seconds of the song, the second download will not play & prompts me to authorize the computer to allow it to play.  Suggestions?

    Im having a similar promblem! Only its doesnt work on my Itunes library and the song ends at 49 seconds. Have you fixed your problem yet?
    p.s. my discussion is on the following page but no one has responded yet as I only just posted it.
    https://discussions.apple.com/thread/4097402

  • I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.

    I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.
    From what I read, I have 2 choices: 1. to install OSX and then upgrade to Mavericks, but I'm not sure if this would be possible (to upgrade directly from OSX to Mavericks); and 2. to use a software called Super Duper.
    I wouldn't like to have to use a third party software to do this, so the question is: is there a better way to install directly the Mavericks not having to use a third party software?

    Install the new drive in the computer.
    Install the old drive in an external USB or Firewire enclosure.
    Boot the computer from the Recovery HD on the external drive.
    Use Disk Utility to partition and format the new internal drive.
    Clone your external drive to the internal drive.
    How to replace or upgrade a drive in a laptop
    Step One: Repair the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Step Two: Remove the old drive and install the new drive.  Place the old drive in an external USB enclosure.  You can buy one at OWC who is also a good vendor for drives.
    Step Three: Boot from the Recovery HD on the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the Recovery HD then click on the downward pointing arrow button.
    Step Four: New Hard Drive Preparation
      1. Open Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your new hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status of
          the drive in DU's status area.  If it does not say "Verified" then the drive
          is failing or has failed and will need replacing.  Otherwise, click on the
          Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions from
          the drop down menu to one. Set the format type to Mac OS Extended
          (Journaled.) Click on the Options button, set the partition scheme to
          GUID  then click on the OK button. Click on the Partition button and
          wait until the process has completed.
      4. Select the volume you just created (this is the sub-entry under the
          drive entry) from the left side list. Click on the Erase tab in the DU main
          window.
      5. Set the format type to Mac OS Extended (Journaled.) Click on the
          Options button, check the button for Zero Data and click on OK to
          return to the Erase window.
      6. Click on the Erase button. The format process can take up to several
          hours depending upon the drive size.
    Step Five: Clone the old drive to the new drive
      1. Using Disk Utility still opened.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Check the box labeled Erase destination.
      5. Select the destination volume from the left side list and drag it to the
          Destination entry field.
      6. Select the source volume from the left side list and drag it to the
          Source entry field.
      7. Double-check you got it right, then click on the Restore button.
    Destination means the new internal drive. Source means the old external drive.
    Step Six: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.

  • Hay. i change the screen LCD in IPAD 2 3G but i don't know what happen. She was working and every thing it's ok. One time i turn off the ipad and turn on more time, i don't see good in LCD the  brightness is to low and i can see any thing

    Hay. i change the screen LCD in IPAD 2 3G but i don't know what happen. She was working and every thing it's ok. One time i turn off the ipad and turn on more time, i don't see good in LCD the  brightness is to low and i can see any thing!! and i want to know why is happen

    Assuming you mean that you performed the repair yourself, it would seem that you either obtained a defective screen or you did some sort of damage when you replaced the screen. You can try asking for assistance on ifixit.com, a site dedicate to those attempting their own repairs, or you can take the iPad to a shop and pay them to try to correct the problem for you. Apple will no longer touch your iPad now that you've attempted your own repairs.
    Regards.

  • Downloaded an E.P. and all of the songs play fine except one which skips itself. The play count goes up and if I click later in the song it will play, but it doesn't play automatically, how do i fix this?

    Downloaded an E.P. and all of the songs play fine except one which skips itself. The play count goes up and if I click later in the song it will play, but it doesn't play automatically, how do i fix this?

    many thanks.
    I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • I recently purchased a new macintosh and now lightrrom 5 on my old one how do i transfer the program.

    I recently purchased a new macintosh and now lightrrom 5 on my old one how do i transfer the program.

    I purchased a new computer and I would like to use my old lightroom account on my new computer, how do i do this

  • I am trying to download Elements 12. I've downloaded the two parts on your web site but when I run the second part it comes up with a message saying 'The file archive part of Adobe Photoshp Elements 12 is missing...'. What shoudl I do?

    I am trying to download Elements 12. I've downloaded the two parts on your web site but when I run the second part it comes up with a message saying 'The file archive part of Adobe Photoshp Elements 12 is missing...'. What should I do?

    Hello
    I’ve managed to get it to work now but not as straightforward as I’d have liked and difficult to find out how to get help.
    Rory

  • HT4854 Will the second computer receive updates if they are logged into the App Store with their own accounts?

    Will the second computer receive updates if they are logged into the App Store with their own accounts?

    No.
    Each Apple ID stores its own list of software purchases.

Maybe you are looking for

  • Control +, -, or control zero disabled in new version. Why?

    Version 31.5.0, first offered to Release channel users on February 24, 2015 Zoom in and zoom out is disabled. Using control key and plus or minus keys is disabled. Why?

  • ERP part lean WM?

    hello, we are not using currently Lean WM as this is managed outside of SAP. But to use small part of this functionality like picking and packing and handling untit as well as Two step picking can we create a dummy warehouse to use this functionality

  • How to insert records from form to database?

    Hi all, i manage to make a connection from my form in adobe designer 7 to my database Oracle 9i, now i want to add some buttons to the form and navigate, delete or add data from my form to the database, anyone has ideas to accomplish this?, i made a

  • Error code 1618 when trying to restore ipad2

    my ipad2 was working fine until yesterday when I went to use it and was telling me to activate and when I tried to it says the activation server is unavailable to try through itunes. So when I tried that it said that Ihad to restore the ipad so I did

  • Exporting .mp4s in CC 2014

    Several codecs, including H.264, look as if they have been removed from CC 2014 (http://blogs.adobe.com/aftereffects/2014/06/adobe-media-encoder-h-264-mpeg-2-wmv-after-eff ects.html). In this recent reference document (http://helpx.adobe.com/pdf/afte