CS3: Applying Object styles not always consistent

Hello,
I have a number of Object Styles, each of which have different Paragraph Styles called out. In turn, each of these Paragraph Styles calls out different fonts, font styles and sizes.
Most of the time I can click on a text frame and all the parameters in the Object style are applied--just as it is supposed to be.
But sometimes the font that the text is supposed to change to does not get applied. This seems to be inconsistent but there is probably an underlying order to it that I do not see.
So why would an Object style not apply the Paragraph style that is called for in the Object style options?
Thanks,
Tom

I now see the problem, though I do not know the solution.
If I open up a new document and create a text frame, the font is that old ugly but familiar Times-Roman 12 point.
But if I open up the template where I have many object, paragraph and character styles, one of each of these is already selected. I can either see this by opening the respective panels or above in the control panel. In fact, any text frame I create always has a top text inset.
So my Preferences in general are OK and I'd rather not dump them. The problem is that styles are already selected upon opening this one ID file. How do I turn that off?
In  answer to a question above, I do not simply redo the old Quark file, now in ID. I have a series of styles that are just much easier to apply in a separate ID file, rather than reinventing them in the Quark-to-ID file.
Thanks for your questions and ideas. They helped me probe this deeper. Now I just need a solution to what I think is a simple problem (still eludes me tho!)
Tom

Similar Messages

  • Script for applying object style to only tif, or eps or...(by extension)

    We need to apply object style to only eps files in doc, or tif.... How to do this? Maybe someone have a script?
    thanks

    @kajzica – I don't have a script for that, but it is scriptable. You surely mean that you want to apply the object styles to the container frame of the images, aren't you?
    A few minutes later – try the following ExtendScript (JavaScript) code:
    You could edit the names of the two object styles at the beginning of the script code.
    OR: you could first run the script, the script will add two object styles to the document that you can edit afterwards.
    The script will sort the EPS and the TIFs from the other image types.
    Make sure that all graphics are up-to-date and linked correctly!!
    //ApplyObjectStylesTo_ContainersOf_TIF_EPS.jsx
    //Uwe Laubender
    * @@@BUILDINFO@@@ ApplyObjectStylesTo_ContainersOf_TIF_EPS.jsx !Version! Thu Dec 12 2013 13:15:30 GMT+0100
    //Edit your style names here. Change the name between the two " " only!!
    //OR: edit your object styles in InDesign after running the script.
    var styleNameForEPS = "EPS-Containers-Only";
    var styleNameForTIF = "TIF-Containers-Only";
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    app.doScript(_ApplyObjectStylesToContainers, ScriptLanguage.JAVASCRIPT, [], UndoModes.ENTIRE_SCRIPT, "Apply object styles to containers for TIF and EPS graphics");
    function _ApplyObjectStylesToContainers(){
    var d=app.documents[0];
    var allGraphicsArray = d.allGraphics;
    if(!d.objectStyles.itemByName(styleNameForEPS).isValid){
        d.objectStyles.add({name:styleNameForEPS});
    if(!d.objectStyles.itemByName(styleNameForTIF).isValid){
        d.objectStyles.add({name:styleNameForTIF});
    for(var n=0;n<allGraphicsArray.length;n++){
        //The EPS case:
        if(allGraphicsArray[n].getElements()[0].constructor.name === "EPS"){
            allGraphicsArray[n].parent.appliedObjectStyle = d.objectStyles.itemByName(styleNameForEPS);
        //The TIF case
        if(allGraphicsArray[n].getElements()[0].constructor.name === "Image" && allGraphicsArray[n].getElements()[0].imageTypeName === "TIFF"){
            allGraphicsArray[n].parent.appliedObjectStyle = d.objectStyles.itemByName(styleNameForTIF);
    }; //END: function _ApplyObjectStylesToContainers()
    Uwe

  • Find inline objects and apply object styles...

    Hi Eveyone,
    I am trying to find placed inline rules and apply object styles through javascript. Because we need some baseline shift to those rules. I getting some error while find the rules. FInd the syntax below,
    app.findObjectPreferences=app.changeObjectPreferences=null;
    app.findChangeObjectOptions.properties =
      objectType: ObjectTypes.unassignedFramesType
    app.findObjectPreferences.strokeWeight=1;
    app.changeObjectPreferences.appliedObjectStyles=app.activeDocument.objectStyles.item("WOL" );
    app.activeDocument.item(0).changeObject();
    Can anyone look into this help for me. Thanks in advance.
    Regards
    Thiyagu

    Hi Dave,
    I have tried the script after removing "s" in it. Now i am getting error like "object doesn't support the property or method 'appliedObjectStyle'". Please look into this and help me out. Herewith i attached the 'error' dialog snapshot.
    When i tried this in loop its working fine. Find the script below.
    app.findObjectPreferences=app.changeObjectPreferences=null;
    app.findChangeObjectOptions.properties =
      objectType: ObjectTypes.unassignedFramesType
    app.findObjectPreferences.strokeWeight=1;
    myFindObj=app.findObject(true);
    for(i=0;i<myFindObj.length;i++){
        myFindObj[i].appliedObjectStyle=app.activeDocument.objectStyles.item("WOL");
    alert ("DONE!");
    Regards
    Thiyagu

  • [IDCS2] Trouble applying object styles

    I'm trying to apply an object style to a page item but I'm not having any success.<br /><br />I'm using IObjectStylesFacade::ApplyObjectStyleToUIDList to apply the style. <br />The style UID is coming from the IStyleNameTable/IID_IOBJECTSTYLENAMETABLE in the doc workspace using FindByName, the UIDList argument contains a kMultiColumnItemBoss (I needed to navigate down from a kSplineItemBoss to get it... this seems legitimate from the layout chapter in the docs), and I'm getting the K2Vector<ClassID> of categories from IObjStylesAttrCategoriesList::GetApplyCategories (I've tried an empty list as well).<br /><br />ApplyObjectStyleToUIDList returns with kSuccess, but the page item always ends up with the style "None". I've tried a few other things (mostly regarding which page item is passed through the UIDList) but nothing has changed. Is there anything clearly wrong with my approach? I'm doing the same thing in CS3 and haven't had any problems, strangely.

    It looks like I was attempting to apply the style to a kMultiColumnItemBoss. The target should be a kSplineItemBoss. I thought I was doing this originally, but I must've been mistaken since it's working now with that change.

  • Applying object style to all objects in a project?

    In Cp4, it was possible to change the style of an object and then apply those changes throughout the entire project.
    How is this accomplished in Cp5?
    I have set up a default style for captions but it seems like I can only change the style of individual captions (one at a time) in the properties of each caption.
    Is there a hidden "apply to all" feature in Cp5?
    Thank you

    Hello Lilybiri,
    I really tried to follow your example but it simply did not work for me.
    >Supposing  I already have a lot of Text Captions and decide to change their style,  which can include font,
    >caption style, alignment, colors....
    Yes.
    >All  Text Captions up to that moment did use the Default Caption Style as it  was set in
    >the Object Style Manager...
    >If you want to change object styles for future projects you  have to set them in the
    >Object Style Manager without any project opened.
    This is problem one. I have one standard caption style for all my courses. I have changed the default in the Object Style Manager with and without a project opened. The change simply doesn't stick! Additionally, I have exported a new style to a .cps.
    Let me pick through your instructions:
    1. First, I open a project.
    2. I open the Object Style Manager and notice that the default caption style is back to the original Adobe default (Adobe blue).
    3. I import my new caption style. The style is called NewTextCaptionStyle.
    4. On the first slide, I select the first text caption (in Adobe Blue).
    >I then change one Text Caption  to  the new style and a + sign appears next to the
    >Default Caption Style as you can see in the screenshot.
    How do you come to that?  The moment I go to the first slide and select the first text caption, it already shows: "+[Default Caption Style]" I have not changed the caption style yet. If I select my desired caption style (NewTextCaptionStyle) from the pull down menu, there is no "+" symbol. I cannot follow this step.
    In an attempt to interpret your instructions, I went back to the Object Style Manager and changed the default caption style to what I need.
    Okay, now the [Default Caption Style] is exactly what I require.
    Back at the first slide, I select the first caption (which is still Adobe Blue). Now, I can follow your first step.
    >There are 2 quick ways to proceed now:
    >1. If  you will not use the original Default Caption Style anymore in this  project (it will have no consequences
    >for other projects), use the Save  icon (yellow highlighted) to save the changes and have a new
    >Default  Caption Style that will automatically be applied to all Text Captions  that are already created and
    >new Text Captions will get the same style  too.
    I will follow your first method.
    1. I select the Save icon. [Save Changes to Existing Style]
    ... it doesn't work. ????
    I wonder... the project that I am working with were converted from Cp4 recordings. I wonder if that is causing my grief?

  • [CS3] Getting object style used by a page item

    If I have a UIDRef of a multi-column text frame, how can I get the object style applied to it? It looks like there was a thread on this previously but it seems to have been pruned from the list.
    Thanks.

    IID_IOBJECTSTYLEINFO
    For setting, you will need kApplyObjectStyleCmdBoss, the IID_IUIDDATA points to the style. As that command does not update the attributes, you'll also need a bunch of other commands, I'd watch out for a Facade instead.
    Dirk

  • InDesign CS4 crashing when applying object styles

    When i try to use IObjectStyleSuite->ApplyObjectStyle with the name of an object style that is inside a group, indesign Crashed.
    I've tried using the full name of the style path -> group:stylename but it doesn't work.
    Anyone faced this problem?
    Thanks in advance.

    As a last resort, when I run into the weird problems, I go through a process of elimination to find the offender.
    As example, I would delete half the images and try the update. if it works, I know the problem was in one of the images I deleted. If it doesnt, I'd delete the other half and try again. I keep cutting the number of images I remove in half till I'm down to whatever it was causing the problem. The I save it as a newfile type and re-import/place.
    Kind of a pain in the tookas, but it works when I'm really stumped.
    HTH
    -Ted

  • [JS][CS3]Applying Character Style to First Word

    I am a noob as far as Javascript  is concerned, and I was hoping for a little guidance.
    Here's my scenario: I have a book that has been typeset all in one file; the main content is all in one story. I want to select the first word of every text frame on each page and apply a character style. My goal is to utilize this character style to indicate page breaks in the XML--I'll map the style to a specific tag.
    So far I have this poor specimen:
    var myDocument = app.activeDocument;
    var myPage = myDocument.pages.item(1);
    var myTextFrame = myPage.textFrames.item(0);
    if( app.activeDocument.stories[0].paragraphs[0].words[0] != null )
    myTextFrame.paragraphs.item(0).words.item(0).appliedCharacterStyle =
    myDocument.characterStyles.item('foo');
    I know, I haven't set up any sort of loop yet (which will be trickier given the fact that there will be blank versos, etc). What I'm trying to do in this is to select the first word in the first paragraph on the second page--which it does in fact do. Problem is, the first paragraph on the second page starts on the first page, so I'm selecting that a word on the first page, not the second page.
    As I said, lots of work to do but a little help on getting to the right word would be most appreciated.

    Well, you were on the right track, but testing 'myText' fails if there is no text frame on a page because it fails one line earlier
    >var myTextFrame = myPage.textFrames.item(0);
    just before this, you should test the number of text frames:
    if (myPage.textFrames.length > 0)
      ... your stuff ..
    Only use this if you are absolutely positive there is just a single text frame on each page! A slightly better way would be to always loop over each textframe:
    for (frames=0; frames<myPage.textFrames.length; frames++)
      var myTextFrame = myPage.textFrames.item(frames);
      ..etc.
    in which case you also don't have to test its length first (the loop will not be executed if there are zero text frames).
    [Techy] Since you have only one continuous story, an even better way would be to loop over the textframes of that story alone. You have to identify the story somehow, and I usually click the text cursor in the one I need:
    myStory = app.selection[0].parentStory;
    or you can rely on the fact that the story starts in the only text frame on page 1:
    myStory = app.activeDocument.pages[0].stories[0];
    (I think that oughta work.) Then, each frame of this story up till the end can be found in the array
    myStory.textContainers
    which are usually text frames. You can loop over these using
    for (frame=0; frame<myStory.textContainers.length; frame++)
      myTextFrame = myStory.textContainers[frame];
    ..etc.

  • Copy/Paste Style not working consistently in iOS Pages

    I cannot figure out what is going on with iOS Pages Copy/Paste Styles.
    Sometimes it works, but often it doesn't. I copy a style, and then select the text I want to paste the style to, and the 'paste style" option doesn't appear. It's as if no style was copied in the first place. Tried multiple times with the same result.
    Also, it is not really clear to me WHAT is included in iOS Pages styles. It appears the font and size is included, but not the color. Not sure about other elements (line spacing, etc.). Is this described completely someplace?

    You are not doing, something wrong. I have the same problem.
    Past Style, disappears ....
    This must be a BUG, in Pages, after the latest update.
    Had zero problem, with this before.
    Have to over and over again turn off iPad and restart it.
    Very, very annoying!
    Apple: Fix it! Now!
    ~ Urban 1

  • Group Policy Preference's --APplied to Groups not always working

    I've created a new group policy preference to add a couple new desktop shortcuts.
    I've set the security filtering to apply to "JamesGroup".  I have verified that "JamesGroup" has Read & Allow Apply Group Policy selected
    I put myself into that group.
    I then run a GPupdate/force on my computer and I get no new shortcuts.
    If I adjust the security filtering to apply to "JamesUserAccount" and rerun GPupdate/force, the desktop shortcuts come through right away.
    I've tried creating new groups and it never seems to work...it just works when I set the security filtering to specific user accounts.
    When I remove myself from the security filtering, and run a GPresult /r I see that the GPO was not applied because it was filtered out: Denied (Security)
    Why isn't the GPO applying when I set it on a security group?
    To make things more interesting, it seems to work if I log onto a different computer as the same user?!? But doesn't work on 90% of the computers.

    > Yes I have tried logging out/in, locking/unlocking, and restarting
    > computers...nothing seems to work...
    How many groups are you a member of? You might suffer kerberos token
    bloating...
    To verify, check
    "whoami /groups"
    against
    "dsquery user -samid %username% | dsget user -memberof -expand"
    All groups in dsquery output also listed in whoami output?
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Why Do Styles Not Always Render In Design View

    Hey guys,
    I have a template that has a Spry horizontal menu bar.
    Sometimes when I open some of the pages that are built from the
    template or even the template itself, the menu bar does not show.
    Only the unordered list shows.
    How can I make the bar show everytime?
    Thanks
    Glenn

    #1 Ensure that the path to your external stylesheet is correctly pointing to the CSS file in your local site folder. 
    #2 Validate your code & fix reported errors.
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Frame fitting options in object styles

    We are producing multiple pages using tagged templates and importing xml - to populate both text and images.
    Back in CS3 - our object styles using frame fitting worked perfectly. Since we have upgraded to CS5 and now CS6 - when xml is imported the frame fitting element of our object styles are no longer being honoured - when clicking on the object frame, it shows the style has been applied but with overrides - and it is adding random offsets to the frame fitting crop settings.
    We are producing large numbers of pages through xml automation, therefore it's very time consuming to open every page and clear overrides/reset frame fitting on every affected graphic.
    I've seen on other questions/forums that this may be a known bug - anyone have any up-to-date info on fixes or workarounds?
    Thanks for your help :-)

    Hello,
    We have a free startup script that clears the overrides after a place action.
    http://www.kerntiff.co.uk/free-stuff/afterplaceobjectreseter
    P.

  • Create 'Object Style' by script

    Hi,
    My 'Library.indl' file has the 'Box1', 'Box2'. I need to create the object style(with dummy properties) based on the Library file names.
    If the library has BOX1, BOX2, I need to check my Indesign file has Object Style with the same name(BOX1, BOX2).
    If object style not presented in that particular name(BOX1, BOX2) in Indesign, I have to create the dummy Object style. (The 'object style name' should match with BOX1, BOX2.)
    Is this possible by Indesign script?
    by
    hasvi

    Hi Chinna,
    When I click 'hyphenation setting' on, I have the problems on line 54 and 55.
    If I select line 55(line 54 is deselect). script working fine.
    If I select line 54(line 55 is deselect) script is not working, but I want to select library file from the folder path, so I need line 54 action.
    Correct my script here:
    var w = new Window ("dialog", "Template Checklist", undefined, {closeButton: false});
    w.alignChildren = "left";
    var check1  = w.add ("checkbox", undefined, "Hyphenation Settings");
    var check2  = w.add ("checkbox", undefined, "Object Style creation based on Library");
    var buttons = w.add ("group");
    buttons.add ("button", undefined, "Ok");
    var Exit = 0;
    var cancel = buttons.add ("button", undefined, "Cancel")
            cancel.onClick = function()
                    w.close();
                    Exit = 1;
    w.show ();
    if(Exit ==1)
            this.exit();
    var myDocument = app.activeDocument;
    if (check1.value == true)
        var myPara=app.activeDocument.paragraphStyles;
        for(var i=1;i<myPara.length;i++)
                if(myPara[i].hyphenation)
                //myPara[i].hyphenation=true;
                myPara[i].hyphenateWordsLongerThan=6;
                myPara[i].hyphenateAfterFirst=3;
                myPara[i].hyphenateBeforeLast=3;
                myPara[i].hyphenateLadderLimit=2;
                myPara[i].hyphenationZone="1p";
                myPara[i].hyphenateCapitalizedWords=true;
                myPara[i].hyphenateLastWord=false;
                myPara[i].hyphenateAcrossColumns=false;
        var myStyle=new Array("BK_TTL","BK_HTTL")
        for(var i=0;i<myStyle.length;i++)
                if(myDocument.paragraphStyles.item(myStyle[i]).isValid)
                 myDocument.paragraphStyles.item(myStyle[i]).hyphenation = false;
    if (check2.value == true)
    alert("Library File is must for this process.");
    //~ var library = File.openDialog ("Select the Library File", "*.indl");  ////Your library file path.
    var library=new File("C:\\Users\\Jayanthi\\Desktop\\Library.indl");//Your library file path.
    app.open(library);
    asset = app.libraries[0].assets;
    for(var i=0;i<asset.length;i++)
        try{
            myDocument.objectStyles.add({name:asset[i].name});
        catch(e){}
    var ProgressBar = function(/*str*/title)
         var w = new Window('palette', ' '+title, {x:0, y:0, width:340, height:60}),
              pb = w.add('progressbar', {x:20, y:12, width:300, height:12}, 0, 100),
              st = w.add('statictext', {x:10, y:36, width:320, height:20}, '');
         st.justify = 'center';
         w.center();
         this.reset = function(msg,maxValue)
              st.text = msg;
              pb.value = 0;
              pb.maxvalue = maxValue||0;
              pb.visible = !!maxValue;
              w.show();
         this.hit = function() {++pb.value;};
         this.hide = function() {w.hide();};
         this.close = function() {w.close();};
    //      SAMPLE CODE
    function main()
         var pBar = new ProgressBar("Running");
         var i;
         // Routine #1
         pBar.reset("Please wait Processing ...", 100);
         for( i=0 ; i < 100; ++i, pBar.hit() )
              $.sleep(10);
         // Routine #2
         pBar.close();
    main();
    exit();
    by
    hasvi

  • [CS3/4, JS] Apply feather using an object style

    I was hoping to apply transparency effects via an object style using this:
    myObjectStyle.objectStyleContentEffectsCategorySettings.enableFeather = true;
    But "Object does not support the property or method..." etc.
    I'd be very grateful if someone could point me in the right direction.
    Thanks in advance -- Jeremy

    Yes, I had got that far by stumbling blindly through the undergrowth, but it still seems to leave feather switched off, according to the Object Styles Panel, and my fumbling attempts to adjust choke, noise, etc. do not seem to have any effect, so I think it really must be switched off. What gave you the impression that that line was successfully switching feather on?
    Partly, my difficulties stem from the fact that I find the Extendscript Toolkit CS4 Object Model Viewer incomprehensible. I mean, take a look at the picture below. What is "Object Model Object Model Object Model Object Model", supposed to mean, and why is every version of InDesign labelled "CS4"?

  • [JS][CS3] Applying an Object Style

    Hi.
    This is a simple one, I am trying to apply an already made Object Style to a text frame.
    I am using a similar method as used to apply a paragraph style:
    myFrame.appliedObjectStyle.name= "GreenBox";
    and also
    myFrame.appliedObjectStyle= "GreenBox";
    But these dont work.
    I have researched the forums and found something like:
    myFrame.applyObjectStyles(GreenBox , true);
    and
    myFrame.applyObjectStyles(GreenBox);
    but these dont work either.
    Can someone give me a hand with the correct syntax please?
    Thanks in advance
    Roy

    void applyObjectStyle (using: ObjectStyle[, clearingOverrides: bool=true][, clearingOverridesThroughRootObjectStyle: bool=false])
    Applies the specified object style.
    Parameter
    Type
    Description
    using
    ObjectStyle
    The object style to apply.
    clearingOverrides
    bool
    If true, clears the Button's existing attributes before applying the style. (Optional) (default: true) (Optional)
    clearingOverridesThroughRootObjectStyle
    bool
    If true, clears attributes and formatting applied to the Button that are not defined in the object style. (Optional) (default: false) (Optional)
    -- so you can use one or even two trues; it's default is 'true'.

Maybe you are looking for

  • Function module to convert an internal table to an tab delimited XL file

    hi everyone can anyone tell me the name of the function module which can convert the data in the internal table to an Excel file (Tab de-limited). vamsi

  • Unable to Switch Audio Sync Settings

    Hey everyone, I'm trying to create an animation based off of a 5-minute mp3 audio recording. I need to be able to switch my audio sync settings to Stream so that I can preview audio anywhere in my animation. Currently if I press play just anywhere in

  • Upload from flat file to table

    Hi experts, i need to upload the following file in a table with the columns names as field names in my database table weekly_eft_repo  1.0                                                                                                       Page: 1 C

  • What do you do with Unanswered questions on here

    So far i have three posts on here, some older than a month, and so far all three are unanswered, so what the heck do you do with that when this is the only support option you are bascially left with? Really bites when Itunes store is selling wrong it

  • Help required about MD61

    Hi all, My client wants to enter the demand for a carton of cigars in MD61.each carton contains 12 packs and each pack 10 cigars.Now they do not want to have seperate material number for cartons.So i can not use the carton as header material in BOM a