How to automate a redundant task on PC to "Include Prefix when Numbering Pages"

I work in book publishing and we're generating indices using the book feature. The big problem is that for the print version we need the folios styled a certain way "without a prefix" but to create our index in the book feature, the prefix needs to be turned on.
Is there any way to do any kind of drag and drop so I don't have to open every chapter of the file to turn the prefix on? Though it doesn't take long, it's repetitive and has to be done every time we update our books. (The "Section Prefix" information is alreay inserted, it's just a matter of toggling it on or off depending on what doing in the InD file.)
I do not write scripts. It seems like a simple task but would take me months to figure out. If you can send me to someone who can figure out how to automate this task, I would greatly appreciate your help.
Macgrunt was able to help me but then I realized I was on a PC. Is this something that can be done in Javascript?

Here's a version that batch-processes the selected folder with InDesign documents as you asked in PM.
Main();
function Main() {
    var inddFile, doc,
    inddFolder = Folder.selectDialog("Choose a folder with InDesign documents.");
    if (inddFolder == null) exit();
    var inddFiles = inddFolder.getFiles("*.indd");
    if (inddFiles.length == 0) ErrorExit("Found no InDesign documents in the selected folder.", true);
    for (var i = 0; i < inddFiles.length; i++) {
        inddFile = inddFiles[i];
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
        doc = app.open(inddFile);
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;   
        sections = doc.sections;
        for (var j = 0; j < sections.length; j++) {
            sections[j].includeSectionPrefix = true;
        doc.close(SaveOptions.YES);
function ErrorExit(error, icon) {
    alert(error, scriptName, icon);
    exit();
You can also use this script to run a script or a set of scripts on a bunch of files. (Warning! It's not totally tested)

Similar Messages

  • How to automatically retrieve a task Input/Output structure in SAPUI5?

    Hi guys,
    I am trying to figure out a way to automatically retrieve the complex type specified as a task input/output without hard coding the name of the complex type. So far I have a process with two reporting activities and a task, built as a custom technologies with specified Input and Output from the process context. Then I built a UI where I created an OData model, whose properties I bound to properties of the model, but this happened by exactly specifying the name of the complex type in the controller:
    // bind customer data (i.e. the task input data) to the panel
      customerDataPanel.bindElement("/InputData('" + taskId + "')", {expand : "Customer"});
    and the exact attribute names in the view:
      oMatrix.createRow(
       new sap.ui.commons.Label({text : "First Name", design : sap.ui.commons.LabelDesign.Bold }),
       // property binding of a text field to the attribute in Customer object
       new sap.ui.commons.TextField({value : "{Customer/firstName}"})//property binding
       oMatrix.createRow(
       new sap.ui.commons.Label({text : "Last Name", design : sap.ui.commons.LabelDesign.Bold }),
       new sap.ui.commons.TextField({value : "{Customer/lastName}"})//property binding
       oMatrix.createRow(
       new sap.ui.commons.Label({text : "Street", design : sap.ui.commons.LabelDesign.Bold }),
       new sap.ui.commons.TextField({value : "{Customer/address-street}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "City", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-city}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Zip", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-zip}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Country", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-country}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Currency", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/currency}"})   //property binding
      oMatrix.createRow(
        new sap.ui.commons.Label({text : "RequestNr", design : sap.ui.commons.LabelDesign.Bold }),
        new sap.ui.commons.TextField({value : "{Customer/requestNr}"})   //property binding
    Is it possible for this binding to happen automatically in some kind of way without me specifying every single attribute name? As you can imagine in a real project, there will be even more complex types used in the UI and it is not feasible at all to have to specify each and every single attribute's name.
    Any suggestions will be much appreciated.

    Hi Deepa,
    How about adding another action to the "Add Company" Button which will also trigger the search?
    See:
    http://help.sap.com/saphelp_nwce711/helpdata/en/48/17fbc3a3050be8e10000000a42189d/frameset.htm
    And:
    http://help.sap.com/saphelp_nwce711/helpdata/en/ae/facedea03743f18aaf2edf12465fd8/frameset.htm
    For more details.
    Hope this helps.
    Regards.
    Omer.

  • How can I make firefox highlight new unread items on Drudge when the page auto-refreshes

    So I read Drudge Report and checkit a few times a day. It would be nice to have the unread news items highlighted. The new items that appear after the page auto refreshes. It just occurred to me whilst writing this that I would have to open every link on the page to make the task of highlighting new content easier. I don't know but if there's a way to have the new unread items highlighted it would save time scanning the whole page for new stuff.
    Thanks,
    Mark

    Have you tried to subscribe to the page?
    '''https://support.mozilla.org/en-US/kb/how-subscribe-news-feeds-and-blogs?esab=a&s=subscribe&r=0&as=s'''

  • How to automate the data load process using data load file & task Scheduler

    Hi,
    I am doing Automated Process to load the data in Hyperion Planning application with the help of data_Load.bat file & Task Scheduler.
    I have created Data_Load.bat file but rest of the process i am unable complete.
    So could you help me , how to automate the data load process using Data_load.bat file & task Scheduler or what are the rest of the file is require to achieve this.
    Thanks

    To follow up on your question are you using the maxl scripts for the dataload?
    If so I have seen and issue within the batch (ex: load_data.bat) that if you do not have the full maxl script path with a batch when running it through event task scheduler the task will work but the log and/ or error file will not be created. Meaning the batch claims it ran from the task scheduler although it didn't do what you needed it to.
    If you are using maxl use this as the batch
    "essmsh C:\data\DataLoad.mxl" Or you can also use the full path for the maxl either way works. The only reason I would think that the maxl may then not work is if you do not have the batch updated to call on all the maxl PATH changes or if you need to update your environment variables to correct the essmsh command to work in a command prompt.

  • How do I stop the task panes from opening automatically when I open a PDF?

    How do I stop the task panes from opening automatically when I open a PDF?
    When I open some of my PDFs the task panes open too. I do not want them to as I have never used them in reader for any purpose. I use reader to READ PDFs. I don't need the task panes and don't want them opening when reader starts.

    Adobe seem to have decided that they are so important that you must see them. Perhaps because it is their chance to sell you stuff. It seems to vary between releases, are you on the latest? Curiously, many people have no idea how to open and close these panels.

  • How to Automatically generate .XSL file of XML file ???

    Hello Everyone,
    I have UI which provide the facility to create own format by using drag and drop utility. I have also xml file which contains the data. Now task is how to automatically generate the .xsl file of the dynamically designed format for the data stored in xml form.
    If you have any idea about the solution of the above problem.
    I will thankful for any help regarding this…
    Thanks
    B. Kumar

    XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. .xsl is the extension of the XSL file.Thank you, I am aware of all that.
    When we design any format by using drag & drop utility, System has to generate the .xsl file (extensible stylesheet for the xml document).Why? To accomplish what?
    And then .xsl file is used to display the data which is stored in xml document on the webpage with designed format.So you need to define the mapping between XML and HTML? and you're hoping to do that automatically?
    That's a job for a user interface designer. Not a tool.
    In brief we need to write a parson
    Parser
    which will take any designed format and generate the .xsl file for that design, to display the data which is stored in XML document.Doesn't make sense. It would make more sense if you started from a schema. Starting from an actual XML document, i.e. an instance of the schema, no, not even slightly.

  • How to automate Import/export Essbase data 11.1.2

    Hi,
    After migration from Dev to Test environment using LCM (EPMA Planning, Shared services) I have questions:
    1) How to automate export from source and import in Destination?
    2) If we have enabled MSAD in shared services, What should be standard practice to sync provisioning in both environment?
    Regards
    Kumar

    Hi John,
    I see only Native directory
    Application Group>Foundation>shared services> - Native directory
    - Task flows
    Application Group>Foundation>shared services> - Native directory>assigned Roles> foundation>shared services
    I feel MSAD should be here but not sure as it is just new environment and we enabled MSAD.
    Please suggest where can i check Import/export in LCM 11.1.2?
    Regards
    Kumar
    Edited by: Kumar 1 on Oct 20, 2011 3:22 AM

  • How to automate 2 actions in System Preferences?

    I'd like to automate clicking to hide the dock and hide the clock in the menu bar.  I tried to record this using Automater.  System Preferences needs to be open and on he home view for this to work.
    Also, automater sometimes hangs and there is no way to kill it or gain control of your Mac when this happens.  Any ideas how to automate these task?

    Buy another Mac

  • AP Templates, how to stop the apply task

    Hi, I Use WCS 5.0.56 with 2 controller Wism and about 30 AP (AP 1130g). This morning I want to reboot some AP so I make a template and check the box for Reboot AP after update, I check about 10 AP and clic Apply button but it's stay at 0% of apply report and isn't move. My WCS server process has java.exe who take a lot of memory but nothing happens. I try to reboot the 2 controller with no change, I stop and restart th WCS server and nothing change, the apply report still remains at 0%
    So How can I cancel this tasks?
    Thanks

    Hey Aadesh, thank you for your answer
    I hope the links for the pictures work, i wasn't quite sure which link to copy.
    as you can see, i work on a small computer, and unfortunately, it makes quite a big difference...
    [url=http://postimg.org/image/zb2gmfu73/][img=http://s3.postimg.org/zb2gmfu73/Screen_Shot_15_04 _06_130512.jpg][/url]
    [url=http://postimg.org/image/b9vkkzfdr/][img=http://s3.postimg.org/b9vkkzfdr/Screen_Shot_15_04 _06_130530.jpg][/url]
    Especially when i try to work on 2 corresponding documents at once...
    [url=http://postimg.org/image/4wy0s8dcf/][img=http://s11.postimg.org/4wy0s8dcf/Screen_Shot_15_0 4_06_131537.jpg][/url]
    [url=http://postimg.org/image/9ubldcfbj/][img=http://s11.postimg.org/9ubldcfbj/Screen_Shot_15_0 4_06_131558.jpg][/url]
    Clicking on tools it what I do each time, but I would have loved to find a way to be able to write something without having that bar show up... Would you have any idea if this would be possible? For example when you click on the highlight tool, the "comment" task pane does not automatically open, this only happens with the "Tool" task pane.
    Maybe there is a parameter I could apply?

  • Does Anybody Know how to synchronize MS Outlook tasks to iPad?Outlook Tasks

    Does Anybody Know how to Synchronize MS Outlook tasks to Ipad2?

    Doesn't matter if you have Exchange or a PC. I have the same setup as you (but with Exchange 2007 instead of 2003) and if you update your iPad to iOS 5 using iTunes for Windows, you'll get the reminders app, and it will sync automatically with your Exchange (and therefore, Outlook) tasks. Give it a go - works perfectly.

  • How many disk for redundancy on Grid Infrastructure 11gR2 Installation?

    I would like too know, How many least disk for normal and high redundancy ?
    and please explain to me about structure of normal redundancy & high redundancy.
    Edited by: user13049841 on Mar 15, 2011 2:37 AM
    Edited by: user13049841 on Mar 15, 2011 2:37 AM

    Redundancy Level      Minimum Number of Disks
    External           1
    Normal                2
    High                3
    If you only have a disk, means you will not be able to implement normal/high redundancy. In external redundancy ASM presumes the data duplication is taken care at a storage level (e.g. mirrored SAN etc.).
    structure of normal redundancy & high redundancyRedundancy is actually a data duplication, so let say if a disk in a Disk Group1 fails, and there is a fail over Disk Group B, so ASM will continue operation.
    Must read note for you..
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28301/asm002.htm#ADMQS12079
    Extractions from the link..
    Failure groups are used to determine which ASM disks to use for storing redundant copies of data. example, if 2-way mirroring is specified for a file, ASM automatically stores redundant copies of file extents in separate failure groups.

  • LE-TRM: automatic and immediate TASK creation at TO creation

    Hi guys,
    Up to know, I succeed in creating TASK either manually in the TRM monitor or by running the report RLTRQSCHEDULER.
    I'd like to know how to get the following behavior in SAP LE-TRM (Task and Resource Management) module : automatic and immediate task creation in TRM at TO (transfer order) creation in LE.
    Does anyone know how to set this up?
    Thx a lot in advance for your valuable inputs.

    Activate this BADI and set up Request Scheduler program as a background Job.
    method IF_EX_LTRM_RQST_GLOBL_SCAN~RQST_GLOBL_SCAN.
      TYPE-POOLS: TRMGC.
      DATA: lt_where_tab   TYPE ltrqt_it_where,
            lv_where_line  TYPE ltrqt_where.
      data: lv_pick(3).
      clear: lv_where_line.
    lv_where_line = 'rqact IN (trmgc_rqact_removal, trmgc_rqact_putaway, trmgc_rqact_replen, trmgc_rqact_move)'.
    append lv_where_line to et_where_tab.
    lv_where_line = 'rqact IN (trmgc_rqact_removal, trmgc_rqact_putaway,'.
      append lv_where_line to et_where_tab.
       clear: lv_where_line.
    lv_where_line = 'trmgc_rqact_replen, trmgc_rqact_move)'.
      append lv_where_line to et_where_tab.
    endmethod.

  • How do I copy my old xl files from my XP machine to operate on xl for Mac on my new iMac.  When I copy them onto a stick and transfer them it automatically makes them xls files which are then corrupted when I try to open them in xl for mac

    How do I copy my old xl files from my XP machine to operate on xl for Mac on my new iMac.  When I copy them onto a stick and transfer them it automatically makes them xls files which are then corrupted when I try to open them in xl for mac

    Sorry, yes this is Microsoft Excel.  The Microsoft XP has Excel files denoted as xl, the later versions of Microsoft Excel are denoted as xls files.  The later verions of Microsoft Excel open the xl files OK, does Excel for Mac not able to do this?

  • OB52 Posting Period Close:  Does anyone know how to automate the close?

    Does anyone know how to automate the FI Period Close (trans code OB52)?  Currently, the business users go into the screen and open and close any periods manually.  For the MM period close, we are able to do so because we found the program to use in the batch job.  For some reason, the FI side shows the program SAPL0F00 but this is only a view and will not allow a batch job to be created.  Does anyone know of the actual program used for the FI period close?

    Use program RFPERIOD_OPEN.  It may help.  For further details you may check the following thread.
    RFPERIOD_OPEN

  • How to create a custom task in SRM for the standard task

    Hi Gurus,
    How to create a custom task in SRM for the standard task  eg: TS10407929
    regards,
    George.

    from PFTC itself. Same.

Maybe you are looking for