Skip to main content
Participant
December 6, 2021
Question

How to sweep templates in a batch

  • December 6, 2021
  • 6 replies
  • 659 views

I want to sweep templates for almost 100 Books and each book contains 1000's of FM files. 

    This topic has been closed for replies.

    6 replies

    K.Daube
    Community Expert
    Community Expert
    December 8, 2021


    Vijay5C39 (referred to as OP - Original Poster - earlyer in this thread),

     

    We are still struggling to understand your problem. All contributers until now have chimed in with assumptions (JJMack: PhotoShop and the like).

    • What is the task which you need to apply to the book files (change layout, appearance of tables etc.)
    • Are the books created with FrameMaker? Your post suggests this.
    • Are they loaded with images (photos) which you need to process in PhotoShop (change brightness or else)?
    • Any further details?

    And it would be helpful for our mind to know a real name.

    Klaus Daube

     

    Vijay5C39Author
    Participant
    December 8, 2021

    Hello Everybody! Thank you so much for helping me. I have provided in depth details below. I refered Import Format as Template Sweep 

     

    Task Description:

    We want to Import Formats in Bulk.  We have a list of Templates and a folder structure where there are lots of Book. As we know a Book consists of lots of FM Files.  What we are looking forward is without opening the Book physically in Adobe Framemaker we want to loop through all the Framemaker files and import those templates into the FM files.

     

    Current Issue:

    Currently I am using “F_ApiSimpleImportFormats” function in the FDK library. We open a Book Manually and pass the Book ID and Import Formats. 

     

    Expected solution:

    We are looking forward for a solution to generate the Book  ID without opening the book and  pass it to “F_ApiSimpleImportFormats” method to do the above functionality.

     

    EX: If there are 3 Books in a file location and each Book has 3 FM files within them, then I need to Import Format without opening the Books physically in Adobe Framemaker.

    Matt-Tech Comm Tools
    Community Expert
    Community Expert
    December 8, 2021

    It sounds very much like you'll be writing your own script(s) or be hiring someone like Rick Quatro (frameexpert in the thread above) to script it for you.

    -Matt

     

    -Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
    Barb Binder
    Community Expert
    Community Expert
    December 7, 2021

    And in addition to defining "sweep", I'm trying to figure out how this question relates in any way to Photoshop. 🤔 🤔

     

    ~Barb

    ~Barb at Rocky Mountain Training
    Dave Creamer of IDEAS
    Community Expert
    Community Expert
    December 7, 2021

    I'm still wondering what the OP meant by "sweep"...

    David Creamer: Community Expert (ACI and ACE 1995-2023)
    LinSims
    Community Expert
    Community Expert
    December 7, 2021

    At this point, I'm assuming it's a typo for "swap". It would help if the OP came back and said something.

    LinSims
    Community Expert
    Community Expert
    December 7, 2021

    If you're working in FrameMaker and need to do large scale renamings of formats so that a template with the right formats can be imported, look into Rick Quatro's FindChange Batch plugin. You can set up a master file with the old format name matched to the new name and rename everything in multiple files at the same time. Once you get the format names updated, it's a matter of importing the correct formats and everything's done. The FindChange Batch plugin handles pretty much all formatting properties, including master pages, table designs, paragraph/character tags, variables, and so on. Saved my bacon more than once, so I can recommend it without reservation.

    frameexpert
    Community Expert
    Community Expert
    December 7, 2021

    Thank you very much Lin! One minor correction: the script you want is FindChangeFormatsBatch.

    JJMack
    Community Expert
    Community Expert
    December 7, 2021

    When it come right down to it. Photoshop is not designed to be a Batch images Processor.  100 Book templates that will contain 1000 FM files means that the Batch will process 100 Templates files and process 1000 FM files  for each template and save at least one output file for each template.  The Batch process would  process 100 Template Files + 100,000 FM Files + 100  output file.   How long do you think it will takes Photoshop to process 100,0200 Files.,  When my  slow 2GHz Windows 10 PC is running a well performing good version of Photoshop  I would estimate that batch job would require around 2 days to complete.  I think Photoshop may be able to process 2,500 files per hour. around  40 - 42 files per minute.  On a faster machine Photoshop may be able to process a file a second the batch job would only take 28 hours. Actions and Scripts do not execute as fast as compiled programs.

    JJMack
    K.Daube
    Community Expert
    Community Expert
    December 7, 2021

    Photoshop is not designed to be a Batch images Processor.

    → You may have a look at ImBatch (https://imbatch.com/)

    Since You are talkink mainly about Photoshop the relation to FrameMaker is unclear.

     

    JJMack
    Community Expert
    Community Expert
    December 7, 2021

    If you do a search for Adobe Batch file processing  this link will pop up https://helpx.adobe.com/photoshop/using/processing-batch-files.html  which is about Adobe Photoshop Script Image Processor. I was just trying to state that Photoshop is not really suited for large batch jobs that would process 100,000 files. I know nothing about Adobe FramsMaker. It sounded like Sweeping 100 Book template that contain 1000 files each would be a larger batch job. That  the if they need to process 100,000 files they should look for a Batch Process application designed to process many file perhaps using many threads to process multiple files concurrently. Photoshop is not that. I was searching Batch and saw the question so I replied.

     

    It is also unclear what sweeping templates involves. Most of the Batch  image processor I found on the web were  for Image file conversions , Image resizing and image watermarking..etc

    JJMack
    K.Daube
    Community Expert
    Community Expert
    December 6, 2021

    What does 'sweep' mean in detail?

    • Apply a modified template to the 100'000 FM files?

    Keep in mind that changing names of formats or consolidating two (or more) formats into one would require not only to modify the template but also each file!

    Before we can provide some ideas for the task we need more details...