Applying master to a collection of pages

Hello all,
Still in CS3, VB.
Back in 2008 I did a post on this same subject (http://forums.adobe.com/message/3312350#3312350) and Harbs was kind enough to show it to me in Java script.
Now that it's been a while I'm wondering if anyone has clue as to why this doesn't work in VB:
Set pgs = InD.ActiveDocument.Pages.ItemByRange(149, 152)
pgs.AppliedMaster = InD.ActiveDocument.MasterSpreads.Item("LNG-TXT")
But his DOES work in Javascript:
var thepgs = app.activeDocument.pages.itemByRange(148,151);
thepgs.appliedMaster = app.activeDocument.masterSpreads.item("LNG-TXT");
Many thanks,
Ken

Hey Harbs,
Thanks a gain for taking a crack at this. Unfortunately I've tried that. I'm beginning to think it just isn't in the VB model, or something.
VB has a TypeName() function that returns a string with the type of variable passed. So when a text frame is selected and I do this:
set MyTxtFrame = InD.Selection(1)
MsgBox TypeName(MyTxtFrame)
I get a message box that says "TextFrame."
When I pass pgs to TypeName I get "Objects" and when I pass pgs(1) I get "Page" so I'm nearly sure the collection is getting created OK. I can even set the AppliedMaster of one of the pages within the collection like this:
pgs(1).AppliedMaster = InD.ActiveDocument.MasterSpreads("LNG-TXT")
It's just the darn application of the master to the collection that simply doesn't work.
Currently I'm building a string that is the Java code and running the DoScript command, which works MUCH faster than itterating through all the pages.
Thanks again,
Ken

Similar Messages

  • (Js)(CS3)Export PDF Based on applied master page

    Hello folks
    Is there any way to export indesign document in various PDF file which will be based on master page applied. however i had export pdf code with me but not for various PDF from one document at windows. any help would be appreciated
    cheers as always
    Thanks

    Depending on your needs, you might be able to loop through all the docs
    in the book, and apply the A Master a to all blank pages.
    That would be an option. But is it not possible to insert a master page instead of a blank page while updating a book?

  • How to apply master pages across sections or whole

    It's a very basic problem to which I'm not readily finding the answer in searches. I wish to apply master pages and consistently, no matter how I format the request, am notified: "one or more of the pages specified are not valid page names." So please provide an example of how the page/section names are supposed to be written for:
    A 100 page book with 1 section;
    A 100 page book with 2 section;
    Applying master page changes to only a subsection of the book (i.e. pages 50-75).
    I'm aware it's similar to "Sec1: 1-100", but not precisely that.

    OK, I think maybe I'm beginning to understand waht you are doing. Are you trying to use the Pages Palette menu to Apply Master Page to a range? You would need to include the section number for both pages, like this: Sec1:1 - Sec1:100.
    You can also select the pages in the palette first, then use the apply master command. That might be easier.

  • Trouble applying Master page to recto

    Hello,
    I am trying to apply a different master page (Master-B) to the recto (page 7) than is applied to the verso:  Master-A is applied to document page 6 and Master-B is applied to document page 7.  The top of page 7 shows an object from Master-B and the bottom of page 7 shows an object from Master-A. 
    Please help!
    Thank you,
    Isabella

    What version, and patch level of ID?
    Do the objects that "don't belong" touch or cross the spine on the master pages? Were they overridden onto the document pages before you changed masters?

  • Issue in applying SSL selectively to Login JSP Page--Session getting lost.

    Hi,
    I am facing some issues with SSL configuration on my web site running on tomcat 5.5. I am using jdk 1.5 and form based authentication with JAAS framework.
    The SSL configuration is working perfectly when applied to complete web site, but starts giving problem when applied selectively to some JSP pages. At present I am trying to apply SSL just on the login page.
    When the login screen loads up, the URL in the browser has a protocol "*https*", as expected, but it doesn't gets changed to "*http*" once the user has successfully logged in. Why is the automatic change from https to http not ocurring?
    Also I want to know which is the default page, tomcat will direct the logged in user to, once successfully authenticated using form based login; Is there any way to change this default page to some other page. It looks like that tomcat automatically directs to index.html , once the user has been successfully authenticated, but I am not so sure. My index.html page is having 4 frames; the source of these frames are different JSP pages, which are not under SSL.
    My aim is to apply SSL just on login.jsp so that password doesn't travel in clear text. Once the user is authenticated he should see index.html and the address bar's URL should change it's protocol from https to http.
    Please, find below the code in my web.xml
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>CWA Application</web-resource-name>
    <url-pattern>/about.jsp</url-pattern>
    <url-pattern>/admin_listds.jsp</url-pattern>
    <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*login.jsp*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>CWA Application</realm-name>
    <form-login-config>
    <form-login-page>/login.jsp</form-login-page>
    <form-error-page>/login.jsp?error=true</form-error-page>
    </form-login-config>
    </login-config>
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    My login. jsp has below code:
    <form name="login" method="POST" action='<%= response.encodeURL(*"j_security_check*") %>' >
    <tr>
    <td width="100%">
    <table width="260" border="0" cellspacing="0" cellpadding="1">
    <tr>
    <td align="left" valign="top" rowspan="4"><img src="images/space.gif" width="15" height="5"></td>
    <td align="right" class="login-user" nowrap ><p>User name: </p></td>
    <td align="left" valign="top"><input maxLength="64" name="j_username" size="20"></td>
    </tr>
    <tr>
    <td align="right" nowrap class="login-user"><p>Password: </p>
    </td>
    <td align="left" valign="top">
    <input maxLength=\"64\" tabindex="2" type="password" name="j_password" size="20">
    </td>
    </tr>
    </form>
    The entries in my server.xml are following:
    <Connector port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    maxThreads="150" scheme="https" secure="true"
    keystoreFile="${java.home}\lib\security\cacerts" keystorePass="changeit"
    clientAuth="false" sslProtocol="TLS" />
    I have gone through the http://forums.sun.com/thread.jspa?threadID=197150 and tried implementing it; The filter as explained in the thread does gets called but the session values are still lost.
    Please note I am using javascript to go from secure "https" to "http" once the user has successfully logged in The javascript code is as below:
    top.location.href="http://localhost:8080/qtv/index.html." ;
    If I use response.sendRedirect("http://localhost:8080/qtv/index.html") for going to non-secure mode, the index.html page does not gets loaded properly. (Please note that my index.html is made of *4 frames*, as explained earlier. This is a legacy code and frames can't be removed).
    The reason for index.html not getting loaded properly is that the Address bar URL does NOT change its URL and protocol from https (https://localhost:8443/qtv/index.html ) to "*http*" (http://localhost:8080/qtv/index.html) when esponse.sendRedirect() is used ;this is the default behaviour of response.sendRedirect(). And because the protocol in address bar is https, index.html is not able to load the other JSP's in it's frames because of cross-frame-scripting security issues (The other JSP's to be loaded in frames are are NOT secure as discussed earlier).
    Please let know if any way out.
    Thanks,
    Masaai

    Hi
    try to set the maximum interval between requests
    eg:
    session.setMaxInactiveInterval(6000);
    vis

  • Why is the footer specified on the master being misapplied to the page

    This is somewhat inexplicable as the page properties for master and page are the same. I have several master pages for the site which were created by duplicating a master then making the changes. Two of the masters created in this way work correctly, four do not. On my master page, you can see the footer is set in line with the bottom flourish.
    But on the page, the footer is being applied is being applied to the bottom of the page. What to do?

    Vikas, thank you so much for looking into this. I did try your suggestion of page fill and, while it does envelope the footer, it does not address why the footer specified on the master is not being applied to the page.
    The display of this site is intended to be of uniform size throughout. I have looked for stray fields, buttons etc. (which were a problem you helped me with before) but I cannot find any on the masters or pages.
    I am certain it is something on my end but I cannot for the life of me identify it. I've been working on the site today and created a new master which is featuring the same glitch. Is it possible to have a bad master from which I am duplicating? A fresh upload is at: http://ninenorth.businesscatalyst.com/index.html.
    Best,
    K

  • MOST VISITED FOLDER all screwed up! Top sites gone; collecting all pages seen...How to fix?

    Top sites have disappeared from MOST VISITED FOLDER and is collecting ALL pages visited. I am having to delete as I surf.
    Additionally, the top sites just stayed in the MOST VISITED folder after I deleted them from showing up on the Bookmarks Toolbar. Now if I do that, it is not in MOST VISITED FOLDER.
    I am NO techie so hope your help is simple, clear and step-by-step.
    This has never happened before...HELP, ASAP!
    THXXX!
    using MOZILLA WIN XP

    * "Most Visited" and "Recently Bookmarked" and "Recent Tags" are examples of so called [[Smart Bookmarks folders|Smart Bookmarks folders]] and are not real existing folders.
    * Such smart folders show a list created by a query of the places.sqlite database that stores the bookmarks and the history in Firefox.
    * Smart folder lists show a maximum of 10 entries by default.
    * Bookmarks or history items that show up in a smart folder list are stored elsewhere in another folder and any changes made are applied to the real bookmark or history item.
    * If you remove an entry then the list is shifted up and a new entry that wasn't shown previously is added to show 10 entries.
    * If you add a new bookmark or visit a website then a new item is added at the top and the entry at the bottom disappears from that list.
    * Items that disappear from the list are not gone, but merely do not show up anymore in that list.
    * Actions like copy & paste or delete that you perform on bookmarks in such a list are done on the original bookmark.
    You may have a problem with the places.sqlite file if the history isn't working properly.
    You can check for problems with the places.sqlite database file in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can try to check and repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • [AS CS3-4] Delete applied master, entirely deletes the master from doc?

    Here's what I am trying to do: Add a page at the end of the document. Then, if there is a master page applied automatically, like "A-Master", to delete it so the page has "[None]" master applied.
    I've tried several variations on applying "[None]" or "None" or nothing or null, which do not seem to work.
    I also have a script that I thought worked, but it actually COMPLETELY removes the master spread from the entire document. Clearly not what I intended.
    Any suggestions on how to do this?
    Non-Functional example script:
    tell application "Adobe InDesign CS3"
    tell document 1
      --page 1 has "A-Master" applied
       tell page 1 to delete applied master
      --"A-Master" is now gone from document
    end tell
    end tell

    On 3/6/09 2:18 AM, "Dave Saunders" <[email protected]> wrote:
    > I'm not sure what the AS syntax is.
    set applied master of page 1 to nothing
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • Script for Applying master Spread

    Hi,
    This Script is for Applying CO-Opener master page  wherever CN is applied, When we run the script, it alerts Sucess.But master spread is not applied . Please resolve.
    var mydoc=app.activeDocument;
    var mypara = mydoc.stories.item(0).paragraphs.everyItem().getElements();
    for(i=0; i<mypara.length; i++){
        if (myPara[i].appliedParagraphStyle.name=="CN"){
               mypara[i].parentTextFrames[0].parent.appliedMaster = mydoc.masterSpreads.item("CO-Opener");
    alert("Master Page applied Sucessfully")

    Hi Math,
    I hope your coding is correct, but it seems stories[0] do not have "CN" Styles.
    Change the below line:
    var mypara = mydoc.stories.item(0).paragraphs.everyItem().getElements(); 
    into
    var mypara = mydoc.stories.everyItem().paragraphs.everyItem().getElements(); 
    Thanks to Jongware and Green4ever.....
    and also the use the below url to get the correct coding for CS4 and CS5 and above
    Apply Master Page using Paragraph Style
    var myDocument = app.activeDocument; 
    var myParas = myDocument.stories.everyItem().paragraphs.everyItem().getElements(); 
    var myPage = myDocument.pages; 
    for(i=0; i<myParas.length; i++) 
        if(myParas[i].appliedParagraphStyle.name == "CT") 
            //Works only in CS5 and later 
            myParas[i].parentTextFrames[0].parentPage.appliedMaster = myDocument.masterSpreads.item("B-Master"); 
            //for CS4 use this 
            //myParas[i].parentTextFrames[0].parent.appliedMaster = myDocument.masterSpreads.item("B-Master"); 
    Regards
    Siraj

  • When I open a second tab in Firefox, it does not go to my home page. Instead it goes to a page that displays what looks like a collection of pages (or links) t

    When I open a second tab in Firefox, it does not go to my home page. Instead it goes to a page that displays what looks like a collection of pages (or links) that I have visited in the recent or distant past. I would much rather have it go to my home page which is much more useful to me. I have tried to change this in 'Options' but with no luck. Please fix this.

    See also this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • How to create a master detail form on same page in apex 4.2.1

    Hi All,
    i need to design a master detail form on same page i am not finding an option in wizard from where i can do that.
    will appreciate your suggestions.
    Thanks

    Hi James,
    I think that Mike is suggesting that you create a SQL View over the table and join together the individual primary key values into a single, unique, pseudo primary key. You can still include the individual columns in the SQL but you can then use this new column as the primary key on a form. However, you would also need to create INSTEAD OF triggers to handle inserts/updates/deletes as SQL will not allow you to update tables through a view. (See: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/create_trigger.htm#i2064426] for the Oracle details on this or Re: How to update view resp. table for an example within Apex).
    Ideally, though, you should only really need one key column - is there any need for four?
    Andy

  • People Picker in Central Administration on change Site Collection Administrator page.

    Hi there
    We are coming to the end of our rope here.
    We have a problem where the people picker is not working in Central Administration, particularly the change Site Collection administrator page. It simply does nothing but hang the page, it doesn't even give the red squigglies. The search dialogue boxes also
    hangs. It works in other parts of Central Administration.
    The environment has 2 domains with one way trust between them and the peoplepicker-searchadforest attribute is set.
    Any suggestions?

    Hi Chad,
    Did this issue only happen to the "_admin/owners.aspx" page for your Central Administration site?
    Please compare the peoplepicker-searchadforest attribute for your Central Administration web applicaiton with other working web application, see if they are the same ( iisreset may need for your Central Administration ).
    Also check
    ULS log for more related error message (also try others may like "developer dashboard","fiddler", ect.) recoreded when this issue occurs.
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Master Detail on the same page PHP - MySQL

    Hi,
    Is it possible to create a page using spry master region and call MySQL data into a Spry detail region, like you do with xml data?
    Basically, is there a way to have master detail regions on the same page without using frames?
    Thanks
    Bert

    Thanks for that, very useful indeed.
    But isn't it going to be slow, first transferring the MySQL data to XML then reading XML to display the records.
    What is the advantage other then displaying master detail on the same page?
    Thanks
    Bert

  • An error occurred while applying your dashboard selections for this page???

    Hi there,
    I'm getting this error on the dashboard page.
    "An error occurred while applying your dashboard selections for this page" Error Codes: GV3MWW29
    It is removed when I click "Clear my selection" from page option.
    Is there any other way to remove the error without clicking "Clear My selction" everytime.
    Thanks

    Have you saved your selections by selecting 'Saved Current Selections'? When do you get this error?
    There are a few posts in this forum; here's one that may or may not help; take a look if you haven't already..
    GV3MWW29 error
    Thanks!

  • Applying color to Heading of a page in ALV reports

    Hi Experts,
    I want to apply color to heading of a page in ALV reports ,if any one knows please help me.
    Regards,
    Satya.

    Is that what you mean?
    DATA it_sflight TYPE TABLE OF sflight.
    SELECT * FROM sflight INTO TABLE it_sflight UP TO 10 ROWS.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program          = sy-repid
        i_callback_html_top_of_page = 'TOP_OF_PAGE'
        i_structure_name            = 'SFLIGHT'
      TABLES
        t_outtab                    = it_sflight
      EXCEPTIONS
        program_error               = 1
        OTHERS                      = 2.
    FORM top_of_page USING document TYPE REF TO cl_dd_document.
      DATA lo_table_area TYPE REF TO cl_dd_table_area.
      CALL METHOD document->add_text
        EXPORTING
          text         = 'Some text'
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_negative.
      CALL METHOD document->add_table
        EXPORTING
          no_of_columns               = 2
          cell_background_transparent = space
        IMPORTING
          tablearea                   = lo_table_area.
      CALL METHOD lo_table_area->add_text
        EXPORTING
          text      = 'Some text2'
          sap_color = cl_dd_area=>list_key.
      CALL METHOD lo_table_area->add_text
        EXPORTING
          text      = 'Some text3'
          sap_color = cl_dd_area=>list_background.
      CALL METHOD lo_table_area->new_row.
    ENDFORM.                
    If not, please let us know which part of ALV you exactly want to color.
    Regards
    Marcin

Maybe you are looking for

  • FI/CO interface: Object type not clear

    Hi guyes When we try to release the billing document to accounting we are getting the below message. Kindly help me to find the problem FI/CO interface: Object type not clear Message No. RW010 regards Hari

  • ACL rights assignment in new user script

    I've been tasked with converting an old new-user script that runs at least once a day written in VB to PowerShell. This script takes as input a CSV file we get from HR that has all necessary info and creates a user, adds them to specific groups based

  • Parameter passing giving error

    Encountering a strange error - My application I had defined a parameter. It was giving a dump saying Invalid value in parameter. I just created a new application. Assigned same parameter to it. That works! Now point is I want to use the old applicati

  • Windows 7 x64 and x32 Netlogon 5719 errors

    Ok, let me first start off by saying that this only happens on Windows 7 (x64 or x86).  I do not have this problem with XP (x64 or x86). I have several subnets for which I use the HP Procurve IP HELPER-ADDRESS.  This also happens if the DHCP server i

  • Problem in the storage section of " about that mac "

    Hello everyone, I recently bought a new 2014 Mac book pro retina 13 inch and I'm really happy with it even if I think that OSX Yosemite have some bugs ( usually fluidity ) . But I have a problem in the storage section of  "about that mac", the proble