JS: CS3-Change text on master pages

Hello all,
I am new to JS and I really need help. I have spent hours researching, but without much success. I have written code in VB before but I am totally new to JS so please be patient with me. Here is what I want to do.
I publish a monthly trade magazine. Every month when it is time to create the next issue, I open the one that was just completed and do a Save As for the next month. I then go in and delete all the articles and just move around the ads. I have about 20 master pages (left and right combined) and I have to go in and do a find/replace to change the issue date on the top. I don't want to do a Replace All in case it is somewhere else in the document.
For example, I am about to create the April, 2008 issue. The document will be named 2008-04.indd. I will go to the master pages and find 'March, 2008' and replace it with 'April, 2008'. I am thinking I should use Script Labels and name each text frame on each Master Page so I only change those instances.
Any thoughts, suggestions, ideas...? Any help would be appreciated. Just remember to talk to me like you are dealing with a 5 year old. Scripting with JS in ID is totally new to me.
TIA,
Nancy

You don't need a script. All you need is a couple of text variables, one with the month, the other with the year. Each month you just change the value of these two variables.
Peter

Similar Messages

  • Changing Default & System Master Pages In SharePoint 2013

    I want to change the system master page & default master page of a SharePoint 2013 site collection. In Site Settings in the Look & Feel section Master Page is not at there. But there is Design Manager. In the design manager where can I change the
    above mentioned Master Pages.

    Hello,
    If publishing is activated you can use the page /_layouts/15/ChangeSiteMasterPage.aspx
    You can also use the Design Manager. Choose a theme and then you'll be asked for fonts, colors and...master page. 
    Hope this helps.

  • Displaying user selection from drop down list in static text on master page

    Hello,
    I am using LC 7.0 at workk and I have hit a road block.
    I have a drop down list at the top of the form. Once the user makes a selection, I want to take that value and paste it in static text located on the master page. I can't seem to get it to work.
    Please help!!!

    Hi,
    Place the Drop Down list on form
    Place text object(s) on master page
    here is the script to display the value and/or text of drop down
    Script will be on Drop Down list events
    Calculate event to display value of DD - FormCalc
    form1.pageSet.Page1.StaticText1.rawValue = this.rawValue;
    Change event to display Text of DD - JavaScript
    form1.pageSet.Page1.StaticText2.rawValue = xfa.event.newText;
    SAVE the form as dynamic pdf.
    Hope this will help.
    Thanks,
    Raghu.

  • Pages don't reflect changes in their master page

    I'm using InDesign CS5.5 (v. 7.5.3) with Mac OSX 10.8.4. I found one old question about this problem in another forum (with no submitted answer):
    Assume you have a simple document with one master which simply features a text frame. Well, now if you add some inset spacing to the text frame on the master, this is immediately reflected on the pages to which the master had been applied. However, if you edit the master again and set the inset spacing back to zero, the text frames on the pages to which the master had already been applied keep the inset spacing. If one adds new pages, the text frames have no inset spacing, as I would expect. Can someone tell me why InDesign behaves this way... i.e., why are the changes to the master not reflected on the assigned pages when I set the inset spacing back to zero.
    This question was asked re CS 2.0. The problem seems to remain in CS 5.5.

    I made the changes to the frame inset in the master pages. This is a normal setting for frames, and not complex--and in any case, the point was that I had mistakenly set an inset value, but wanted to reset it to zero, so really nothing to create as an object style. So I reset the value to zero in the master pages. No update. I tried reapplying the changed master page to the doc pages. No update.
    You note: "And if you reset the text frame in the Master it won't reflect in the pages."
    Is this a known feature/bug? Why shouldn't inset values be part of master text frames and thus updated with them? It doesn't make a lot of sense to me.
    Thanks for the suggestion about object styles, though. I don't think it applies here, but I can see the usefulness elsewhere, and I've never really looked at them.

  • Cannot edit text in Master Page

    I don't work in InDesign often.  I had created a template file for a book back in December of 2011 (originally created in CS3).  I opened this file in CS6 today and did a Save As.  Now it's time to edit a few things to customize it for this new book.  So, I went into the Master Pages to tweak some things.  But, I can't edit any text.  I can click on some photos (not all), but no text is selectable or editable.  What in the world has happened to my file?
    I also went back to the final files for the book I did in December (not the template file, the actual working files).  Those give me the same behavior.  Text that should have been editable is not even selectable.  Again, some photos can be selected and moved, etc. but no text/text boxes.
    Is there some conversion that takes place opening a CS3 file in CS6 that is causing this to happen?  How do I fix it?
    Thanks,
    Matt Tyree

    The corrupted ID CS2 document has now been rebuilt using tagged text conversions, and is now only 3Mb, with .INX > .INDD conversions appearing to reducing the .INDD file size, rather than bloating each time.
    However, the Acrobat X Pro 'Compare Documents' feature is less helpful than before (v6 Pro), e.g. showing spurious differences such as:
    [Old text]: "personally-addressed"
    [New text]: "personally-addressed"
    and oddities like (perhaps flagging ID tagged text problems):
    [Old text]: " METHODOLOGY"
    [New text]: " MetHoDoLoGY"
    [Old text]: " [?993 ]"
    [New text]: " [?993]"
    ? = 'box corner' symbol. As this unanswered forum poster from 2011 says, 'Compare Documents' is too sensitive:
    Acrobat X Pro Compare Documents To Sensitive
    http://forums.adobe.com/thread/882888
    My ID report co-author is not interested in 'style' differences, only word/alphabetic variations.

  • How to synch values of fields (cbo & text) in Master Pages section in dynamically created pages?

    HI folks,
    I have a requirement for a form that has a common master page with a checkbox and text field in it.   The document is basically a table that dynamically adds rows as the user adds entries.   When the first page is full, a second page is dynamically created and the Master page format (including the checkbox & text field) applied to it. 
    When the user sets the checkbox on one page and/or adds text, all of the checkboxes on all of the dynamically created pages (in the master section) and all of the text boxes need to change to show the same values.   
    However, I can't figure out how to address the fields on the other pages.   The number of pages changes from user to user, so I can't address them with a static reference.
    Does anyone know how to keep these fields in synch?
    Thanks in advance!

    It woudl be easier to show than to explain it ...can you share the file? You can send it to [email protected] Include a description of the issue with your email please.
    Paul

  • Change Font in Master pages so that it changes the rest of the template?

    I cannot change my font in the Master pages so that it effect the rest of the template. I would have to go through each of the page and change the font. I just want the body paragraph a certain font and I don't know how to do that. I don't know if I explained my question well enough.

    Ok,
    go to page panel, and select all page that you want to apply a mater page items, mouse right click select Apply Master to Pages
    Next select the Master page to apply

  • Problems when I copy a text from master page field to body page field

    Hello
    I am developing a electronic form and I have experimented a strange bebehavior.
    When I try to copy a rawvalue of listbox field from master page to textbox field in body page, this works randomly.
    I have this code in the validation of the master page field
    --------------------begin code---------------------
    if (this.rawValue != null && this.rawValue != "")
    if (xfa.form.myform.mysubform.mytextfield.rawValue != this.rawvalue)
    xfa.form.myform.mysubform.mytextfield.rawValue = this.rawValue;
    --------------------end code---------------------
    Somebody know what is wrong?
    I am very confused.
    Thanks a lot for your help.
    Hosting Association
    The low cost quality hosting
    http://www.hostingassociation.biz

    Extra code is one of the pitfalls of using WYSIWYG cutting and pasting,
    and using styling in general.
    So while it may be interesting to try to reduce the amount of code, there
    probably won't be any direct approach without extra steps to get you what
    you want with bare bones code that appears as you want it to or at least acceptable.
    I guess you might have to take a screen image, clip the relevant portion, since
    you can only attach an image file here not a text file.
    Posting a screen shot
    * http://kb.mozillazine.org/Posting_a_screenshot_on_the_forum#Windows

  • Changing text colour in Pages for ios...button missing

    I'm trying to find a way to change text colour in a document, -all available information states that there is a button, with an i on it (info button) to adjust settings such as font colour, that button is mysteriously absent for me.
    The toolbar would need to look like the screenshots in this article for me to follow the instructions to format text colour: http://www.topappreviews101.com/pages-ipad-app-5.html
    My buttons look like the ones in the screenshot here: http://www.ipadou.com/nouveautes-des-applications-apple-apres-la-keynote
    I do have various formatting option with the buttons I have on mine, but not any that will allow me to format the text colour i.e the instructions available to me tell me to press a nonexistent button.
    am I going mad/has something recently change/is there anything I can do about it?!
    Any help would be much appreciated.

    I could not get your links to show me what you were looking for, but I just opened pages and figured out how to change font color.   I am using the most current version of pages for its, so I don't know if this works on older versions.
    If I screw the instructions up, simply open a document in pages, touch the wrench then help, and search for color.  Then look in the style section.
    Anyway.   Highlight the text you want to be in a different color.  Touch the paintbrush looking icon in the tool bar.  The touch style.  Then touch the name of the font. ( or change the font). A color setting will appear.  Pick what you want.

  • Vertical frame texts in master pages...

    Have a book with text and a big section of landscape photographs.
    Text is no problem. (Portrait)
    Tried to put the captions for the pictures (just below in a conventional way with a formatted list) with 2 methods:
    a) reducing the margins until obtain a text area where to flow the captions but the text was placed horizontally (of course...)
    b) put 2 threaded vertical text frames in the master page but could not flow the text in the regular pages...

    So let's see if I have this right, now.
    You've put two text frames on the master spread to hold the captions and rotated each of them ninety degrees counter-clockwise. You've threaded the frame on the left page to the one on the right. The captions are all on one continuous story and you've built in a way to make each caption start in the next frame. Is all of that correct?
    Describe what you are doing, in detail, from that point forward, and what happens at the end of each step.

  • Changing text every X pages

    OK, so I'm helping design a cyberpunk game supplement and we're thinking about adding a little spinner beside the page numbers - so if you flip through the book it will animate like the old text base terminal spinners would. The one I'm trying to replicate would need to shift each page in the following sequence | / - \ through the whole book. (thinking about it now we would need to set it up to duplicate for 2 pages at a time in order to make the animation work properly on the printed version because of page facing.)
    Anyway, is there a function I could use to do this already in the footer or is this something I would need to write a script for. I'm guessing the latter but I thought I would ask before I go through the trouble of writing the script.
    This page has a sample of what I'm going for. Showing a Bash Spinner for Long Running Tasks | Louis Marascio « Fixed in the Next Release
    Thanks!
    steve

    You could set up a set of master pages, then use a script to apply them in sequence based on the page number, maybe.

  • Looking for Scripts that Replaces Text and Master Pages

    I have just found the Script Library panel in FM 10. (Always used InDesign before.)
    I'm up to replace a text string and two master pages in 100+ documents. Tried to google for some nice solutions to make this automatically but cannot find any scripts/macros to FM at all.
    Do you have som tip where to find such script/macro?

    100 is a small enough number that no time may be saved writing a script (assuming none exist for the purpose).
    I'd be tempted to ...
    Create a sourcing file that has the new MPs needed (and safe versions of MPs "Left" and "Right")
    Create a new Book file.
    Add to it all 100 of the files needing update (this is the only tedious part).
    Use Find/Replace from the Book menu to fix the text string.
    Select all book component files:
    File > Import > Formats
    Import from Document [MPsourcefilename.fm]
    [Deselect All]
    [*] Page Layouts
    [Import]

  • Looking for Scripts that Replaces Text and Master Pages (Batch Missing Files and PDFs)

    I have just found the Script Library panel in FM 10. (Always used InDesign before.)
    I'm up to replace a text string and two master pages in 100+ documents. Tried to google for some nice solutions to make this automatically but cannot find any scripts/macros to FM at all.
    Do you have som tip where to find such scripts/macros?
    To facilitate my work I also look for a batch script that automatically updates the image pathes in each framemaker file (image folder has been renamed).
    And at a last FrameMaker -> PDF Batch converter.

    100 is a small enough number that no time may be saved writing a script (assuming none exist for the purpose).
    I'd be tempted to ...
    Create a sourcing file that has the new MPs needed (and safe versions of MPs "Left" and "Right")
    Create a new Book file.
    Add to it all 100 of the files needing update (this is the only tedious part).
    Use Find/Replace from the Book menu to fix the text string.
    Select all book component files:
    File > Import > Formats
    Import from Document [MPsourcefilename.fm]
    [Deselect All]
    [*] Page Layouts
    [Import]

  • [JS, CS3] Change text color and export pdfs

    Hi there,
    I am new to scripting and I am trying to find out if a script exists that will export a PDF, then change all text of a certain color to black, then export another pdf with the same settings as the first, but appending the filename. I've searched the forum and understand about the change color bug, but I haven't seen anything in JavaScript -- It's all been applescript.
    Anyone have any brilliant ideas?
    Help is GREATLY appreciated!
    -Molly

    I couldn't get the specific color replacement, I chose the rambo approach...<br /><br />if(app.documents.length!=0)<br />{<br />     var doc = app.activeDocument;<br />     if(doc.saved==true)<br />     {<br />          var docFile = doc.fullName;<br />          var docFile = doc.fullName;<br />          var myFile = File(docFile).fsName;<br />          var myPdfPreset = app.pdfExportPresets.item("[PDF/X-1a:2001]"); //Put what you want <br />          var myPdfFile = new File(String(myFile).split(".indd")[0]+".pdf");<br />          exportPDF(myPdfFile,myPdfPreset);<br />          var myTfs = doc.textFrames.everyItem().getElements();<br />          for(i=0; i<myTfs.length; i++)<br />          {<br />               //will reset all texts to black, quite drastic but works.<br />               myTfs[i].texts[0].fillColor = doc.swatches[2]; <br />               //Should be better to use swatches.item("[Black]"); <br />               //But can't check on my french system<br />          }<br />          var myPdfFile = new File(String(myFile).split(".indd")[0]+"_AllTextsToBlack.pdf");<br />          exportPDF(myPdfFile,myPdfPreset);<br />     }<br />     else<br />     {<br />          alert("Please save your document first");<br />     }     <br />}<br />else<br />{<br />     alert("You need to open a doument first !");exportF<br />}<br /><br />function exportPDF(myPdfFile,myPdfPreset)<br />{<br />     doc.exportFile (ExportFormat.PDF_TYPE, myPdfFile, false, myPdfPreset, undefined, undefined, false);<br />}

  • Change text direction in Pages, Chinese style, characters run down the page.

    How so I make it so text in text boxes runs in the traditional chinese style. Characters in text boxes should run down the page instead of across the page.

    The only Apple app which can do this is TextEdit.  Format > Make Layout Vertical
    Other non-Apple apps where it may be possible are MS Word, OpenOffice, iText Pro

Maybe you are looking for