Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Script to rename PDFs

Return to Member Forum

  • Author
    Posts
    • #79224
      Scott Irwin
      Member

      I use the Page Exporter Utility script on a daily basis, and I love it. I turn my Indesign spreads into single page PDFs in a flash, but then I have to manually go through and rename them. I’ve tried all the name options but since my base name is used I get the following:

      When I export a spread, the base name is something like: Catalog_02-03_700.pdf

      The PEU script makes two pdfs and they are named:
      Catalog_02-03_700.P02.pdf
      Catalog_02-03_700.P03.pdf

      I then have to go in and manually rename the files to the correct page numbers to look like:
      Catalog_02_700.pdf
      Catalog_03_700.pdf

      I do this for hundreds of pages a week. Is there a script for quickly renaming the files to the correct page number?

    • #79266
      Lukáš Záleský
      Participant

      After export you can use other software to rename.
      for example:

      on PC:
      Total commander
      https://www.ghisler.com/download.htm

      MAC OS:
      https://mrrsoftware.com/namechanger/

      both are free ;)

    • #79290
      Scott Irwin
      Member

      Thanks Luky, I’ll download it and check it out.

    • #79363
      Scott Irwin
      Member

      Luky,

      I downloaded the namechanger app, but I can’t figure out how to make it work correctly. I drag the files I want to rename to the app, and then select the drop down menu options, but I’m not sure what options I need to use.

      I need to change all the files with the .P02 to the even page numbers, and .P03 to the odd page numbers. Can this be done with this app? If so, what parameters do I need to use in the app?

    • #79368
      Lukáš Záleský
      Participant

      You have to use nameChanger 2-times. I Made video for you, enjoy :)

      https://1drv.ms/1MZhaJx

    • #79381
      Scott Irwin
      Member

      Thanks for the video, but I’m still not seeing the result I’m looking for.

      If my file name is:
      5CATPWS1_74-75_702.P02.pdf
      5CATPWS1_74-75_702.P03.pdf

      I can simply use nameChanger twice in a row to remove the .P02 and .P03 from the end of the file name, which is great. But I still need to then go in and remove the page number that I don’t need. So in the above example I need the .P02 file to be page 74, and .P03 file to be page 75 so they end up looking like this:

      5CATPWS1_74_702.pdf
      5CATPWS1_75_702.pdf

      Basically all of the files that have the .P02 on them are going to end up being all the even PDFs, and .P03 will be the odd page PDFs. The printer needs those page numbered files for their impositions. So is there a way (even if I have to do multiple name changes) get to that result? Is that possible in nameChanger?

    • #79401
      Lukáš Záleský
      Participant

      more files wil be…
      5CATPWS1_74-75_702.P02.pdf
      5CATPWS1_74-75_702.P03.pdf
      5CATPWS1_74-75_702.P04.pdf
      5CATPWS1_74-75_702.P05.pdf
      5CATPWS1_74-75_702.P06.pdf

      In this case my video works…

      OR

      5CATPWS1_74-75_702.P02.pdf
      5CATPWS1_74-75_702.P03.pdf
      5CATPWS1_76-77_702.P02.pdf
      5CATPWS1_76-77_702.P03.pdf
      5CATPWS1_78-79_702.P02.pdf

      ?

    • #79412
      Scott Irwin
      Member

      More files would look like this because each spread has a spread # and page # associated in the file name…so you’d end up with a 76 page book and files that looked like this:

      5CATPWS1_02-03_701.P02.pdf
      5CATPWS1_02-03_701.P03.pdf
      5CATPWS1_04-05_724.P02.pdf
      5CATPWS1_04-05_724.P03.pdf
      5CATPWS1_06-07_710.1.P02.pdf
      5CATPWS1_06-07_710.1.P03.pdf
      5CATPWS1_08-09_740.P02.pdf
      5CATPWS1_08-09_740.P03.pdf

      All the way to the last page numbers.

Viewing 7 reply threads
  • You must be logged in to reply to this topic.
Forum Ads