Break Link with Style

Hello all,
I need to break a link to an object style via script. I found this discussion:
http://www.adobeforums.com/webx?128@@.59b4d4d7
jxswm suggests the line founds[i].applyObjectStyle(dstStyle, false, false); but this is the same as clicking on "None" and not the same as calling "Break link to style". I.e. the formatiing is lost and replaced by [None].
Has anyone found out how to break the link without the object changing its formatting?
Thank you very much.

Ah, not quite. "myObj.appliedObjectStyle = myTempStyle" removes overrides. But myObj.applyObjectStyle(mytempStyle, false false) does not, so this is easily fixed.
For any lurkers or archive-diggers (like myself ;) ) my entire routine:
  var myMenuAction = app.menuActions.item("$ID/Copy");
  app.clearOverridesWhenApplyingStyle = false;
  if (app.selection.length > 0) {
    var noStyle = app.documents[0].objectStyles[0];
    for (var n=0; n < app.selection.length; n++) {
      var myObj= app.selection[n];
      var myStyle = myObj.appliedObjectStyle;
      if (myStyle != noStyle) {
        var myTempStyle = myStyle.duplicate();
        myObj.applyObjectStyle(myTempStyle, false, false);
        myTempStyle.remove();
  } else {
    beep();
    beep();
  app.copy();

Similar Messages

  • [JS CS3] JS method for Object Styles Break Link to Style

    I have pages full of objects that are assigned the pesky "Basic Graphics Frame" object style. I need to do the equivalent of choosing "Break Link to Style" in the Object Styles panel on all the objects in many files.
    I haven't been able to find anything equivalent to the "Break Link to Style" functionality in looking through the Object Browser. Finding all objects with [Basic Graphics Frame] object style and applying an object style of [None] doesn't do the same result. Any ideas?

    hi:
    //FindObjectPreference
    myDoc = app.documents[0];
    app.findObjectPreferences = NothingEnum.nothing;
    app.changeObjectPreferences = NothingEnum.nothing;
    app.findChangeObjectOptions.properties =
      objectType: ObjectTypes.allFramesType, //graphicFramesType, textFramesType, unassignedFramesType
      includeFootnotes: true,
      includeHiddenLayers: true,
      includeLockedLayersForFind: true,
      includeLockedStoriesForFind: true,
      includeMasterPages:true
    //var graphicOStyleName = "[Normal Graphics Frame]";
    app.findObjectPreferences.appliedObjectStyles = myDoc.objectStyles.item(1);
    var dstStyle = myDoc.objectStyles.item(0);
    var founds = myDoc.findObject(0);
    var foundsLen = founds.length, i, found;
    for(i = 0; foundsLen > i ; i++){
      //app.select(founds[i]); alert(founds[i].appliedObjectStyle.name);
      founds[i].applyObjectStyle(dstStyle, false, false);
    <pre>
    jxswm

  • [JS][CS3] Break Link to Style

    Hello everyone.
    A while back ago I wrote a script to Brake Links to Paragraph Styles and Character Styles. That was easy since you can set to false the option "Clearing Overrides" when applying "No Paragraph Style" [0] or "None" [0]. But I cannot do such a thing with objectStyles "None" [0] even when setting the options to False. Every time the TextFrames get the ObjectStyle "None". And the GUI Palette is not showing a "+" as being modified.
    It does work when using "Break Link to Style" in the GUI.
    Any help would be appreciated...
    Alex.

    CTC Imaging wrote:
    Yes I did think of that solution, but I am trying to keep it clean. Especially if you are doing several document input as copy and pasting into a single document. Since I am trying to doing this automaticaly (The script is assigned to the COPY command through eventListener), if I choose ONE generic name to rename to, I will run into the same issue. Of course I could scan the DESTINATION document for that GENERIC names and add a prefix (counter) to the one I am going to rename in the ORIGINAL document. But It would not work if the DESTINATION document is not open YET! And I can't do it as PASTE because I have to copy with the correct naming FIRST.
    So the best option is to break the link. So how can I emulate "Break Link to Style" in the ObjectStyles menu from the GUI???
    Alex.
    Then you should add Date&Time at the end of name of current Char/Para/Object/Cell/TableStyle
    "MyHeaderStyle" -> "MyHeaderStyle(2010-01-04 16:12:35)"
    I don't think that you can do this TWICE in the same second in two different documents I've done something like that in one of my script and I've added 2 second extra loop to be sure that "random" name can't be duplicated
    robin
    www.adobescripts.co.uk

  • Javascript: select all text, break link to style

    Hi
    I'd like to select all text in a Document (in different independent textboxes) and then break the link to it's style (in the program in the Flyout-menu of the paragraph styles)
    Is this function scriptable (javascript)?
    How do I select all the text?
    InDesign CS6, OS10.7.4
    Thanks

    In fact, I use the adobe findchangebylist to modified, I want to do a clear setting script, not only break link to style, but when i run the script that will get error, can u help me to fix it, my script is shown as below:
    main();
    function main(){
    var myObject;
    //var myCheckSelection = false;
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    if(app.documents.length > 0){
      if(app.selection.length > 0){
       switch(app.selection[0].constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "TextFrame":
        case "Text":
        case "Cell":
        case "Column":
        case "Row":
        case "Table":
         myDisplayDialog();
         break;
        default:
         //Something was selected, but it wasn't a text object, so search the document.
         //myFindChangeByList(app.documents.item(0));
                        //alert("Nothing Selected, Please Select Text Frame or Text.");
      else{
       //Nothing was selected, so simply search the document.
                //myFindChangeByList(app.documents.item(0));
                alert("Nothing Selected, Please Select Text Frame or Text.");
    else{
      alert("No documents are open. Please open a document and try again.");
    function myDisplayDialog(){
    var myObject;
    var myDialog = app.dialogs.add({name:"Joan New Clear Setting_v1.0"});
    with(myDialog.dialogColumns.add()){
       with(dialogRows.add()){
       with(dialogColumns.add()){
    staticTexts.add({staticLabel:"Search Range:"});
         var mySearchButtons = radiobuttonGroups.add();
         with(mySearchButtons){
         radiobuttonControls.add({staticLabel:"Current Document", checkedState:true});
                       if(app.selection[0].contents != ""){
        radiobuttonControls.add({staticLabel:"Selection", checkedState:true});
       with(dialogColumns.add()){
        with(borderPanels.add()){
         staticTexts.add({staticLabel:"Clear Setting:"});
         var myDateButtons = radiobuttonGroups.add();
         with(myDateButtons){
         radiobuttonControls.add({staticLabel:"English", checkedState:true});
         radiobuttonControls.add({staticLabel:"Chinese"});
    var myResult = myDialog.show();
    if(myResult == true){
      switch(mySearchButtons.selectedButton){
       case 0:
                     BreakLinktoStyleDocument();
                     TurnOffHyphenationDocument();
                     myObject = app.documents.item(0);
                     myCheckSelection = false;
        break;
                  case 1:
                     BreakLinktoStyleSelection();
                     TurnOffHyphenationSelection();
                     myObject = app.selection[0];
                     myCheckSelection = true;
        break;
      switch(myDateButtons.selectedButton){
      case 0:
      myFindChangeByList1(myObject, myCheckSelection);
      break;
      case 1:
      myFindChangeByList2(myObject, myCheckSelection);
      break;
      myDialog.destroy();
      //myFindChangeByList1(myObject);
    else{
      myDialog.destroy();
    function TurnOffHyphenationDocument() {
    app.activeDocument.stories.everyItem().texts.everyItem().hyphenation=false;
    myTables = app.activeDocument.stories.everyItem().tables.everyItem();
    myTables.cells.everyItem().paragraphs.everyItem().hyphenation=false;
    function TurnOffHyphenationSelection() {
    app.selection[0].texts[0].hyphenation=false;
    app.selection[0].cells.everyItem().texts[0].hyphenation=false;
    function BreakLinktoStyleDocument() {
    app.activeDocument.stories.everyItem().texts.everyItem().applyParagraphStyle(app.activeDoc ument.paragraphStyles.item(0), false);
    app.activeDocument.stories.everyItem().texts.everyItem().applyCharacterStyle(app.activeDoc ument.characterStyles.item(0), false);
    myTables = app.activeDocument.stories.everyItem().tables.everyItem();
    myTables.cells.everyItem().paragraphs.everyItem().applyParagraphStyle( app.activeDocument.paragraphStyles.item(0), false);
    myTables.cells.everyItem().paragraphs.everyItem().applyCharacterStyle( app.activeDocument.characterStyles.item(0), false);
    function BreakLinktoStyleSelection() {
    app.selection[0].texts.everyItem().applyParagraphStyle(app.activeDocument.paragraphStyles. item(0), false);
    app.selection[0].texts.everyItem().applyCharacterStyle(app.activeDocument.characterStyles. item(0), false);
    app.selection[0].cells.everyItem().texts[0].applyParagraphStyle(app.activeDocument.paragra phStyles.item(0), false);
    app.selection[0].cells.everyItem().texts[0].applyCharacterStyle(app.activeDocument.charact erStyles.item(0), false);
    function myFindChangeByList1(myObject, myCheckSelection){
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/ScriptSupport/te.txt")
    if(myFindChangeFile != null){
            // Because the selection will change as we add/remove characters,
            // we'll need to reset the selection after each pass if we are
            // checking the selection. We'll get the index of the first character
            // in the selection (relative to the start of its parent story) and
            // the index of the last character in the selection (relative to the
            // *end* of the story, and we'll use them later in the script to
            // keep the ends of the selection in place.
      if(myCheckSelection == true){
       var myStart = myObject.characters.item(0).index;
       var myEnd = myObject.characters.item(-1).index;
       var myStory = myObject.parentStory;
       var myStoryEnd = myStory.characters.item(-1).index;
       myEnd = (myStoryEnd - myEnd)+1;
      myFindChangeFile = File(myFindChangeFile);
      var myResult = myFindChangeFile.open("r", undefined, undefined);
      if(myResult == true){
       //Loop through the find/change operations.
       do{
        myLine = myFindChangeFile.readln();
        //Ignore comment lines and blank lines.
        if((myLine.substring(0,4)!="text")||(myLine.substring(0,4)!="grep")||(myLine.substring(0, 5)!="glyph")){
         myFindChangeArray = myLine.split("\t");
         //The first field in the line is the findType string.
         myFindType = myFindChangeArray[0];
         //The second field in the line is the FindPreferences string.
         myFindPreferences = myFindChangeArray[1];
         //The second field in the line is the ChangePreferences string.
         myChangePreferences = myFindChangeArray[2];
         //The fourth field is the range--used only by text find/change.
         myFindChangeOptions = myFindChangeArray[3];
         switch(myFindType){
          case "text":
           myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "grep":
           myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "glyph":
           myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
         if(myCheckSelection == true){
          myStartCharacter = myStory.characters.item(myStart);
          myEndCharacter = myStory.characters.item(-myEnd);
          myObject = myStory.texts.itemByRange(myStartCharacter, myEndCharacter);
          app.select (myObject);
       } while(myFindChangeFile.eof == false);
       myFindChangeFile.close();
    alert("Done");
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change preferences before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    app.findChangeTextOptions = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
      myFoundItems = myObject.changeText();
    //Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    app.findChangeTextOptions = NothingEnum.nothing;
    function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findChangeGrepOptions = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep();
    //Reset the find/change grep preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findChangeGrepOptions = NothingEnum.nothing;
    function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change glyph preferences before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    app.findChangeGlyphOptions = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph();
    //Reset the find/change glyph preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    app.findChangeGlyphOptions = NothingEnum.nothing;
    function myFindFile(myFilePath){
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File(myScriptFile);
    var myScriptFolder = myScriptFile.path;
    myFilePath = myScriptFolder + myFilePath;
    if(File(myFilePath).exists == false){
      //Display a dialog.
      myFilePath = File.openDialog("Choose the file containing your find/change list");
    return myFilePath;
    function myGetScriptPath(){
    try{
      myFile = app.activeScript;
    catch(myError){
      myFile = myError.fileName;
    return myFile;
    and here is my text file, te.txt
    //001
    grep {findWhat:"."} {appliedLanguage: app.languagesWithVendors.item("English: USA"), kerningMethod: "無"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //002
    grep {findWhat:"."} {kinsokuSet: "繁體中文避頭尾(s)"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //003
    grep {findWhat:"."} {mojikumi: "nothing"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //004
    grep {findWhat:"."} {ligatures:false} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //005
    grep {findWhat:"."} {gridAlignment: 1852796517} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //006
    grep {findWhat:"."} {leadingModel: 1248619858} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //007
    grep {findWhat:"."} {characterAlignment: 1247896172} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}

  • I need a simple script (Break Link To Style)

    Hi nice guys,
    Can someone please provide a simple script that will break the links to styles in all the paragraphs in a document.
    Thanks in advance
    Maria*
    *An non coder designer that simply is not capable of understanding javascript... (but I have tried!)

    Hi Maria,
    Jongware's post (http://forums.adobe.com/message/1890625#1890625) gave me a clue on how to do this.
    Give this a try:
    var i, j, myDoc = app.activeDocument,
              allStories = myDoc.stories,
              thisStory,
              thisPara;
    for (i = 1; i < allStories.length; i++) {
              thisStory = allStories[i];
              for (j = thisStory.paragraphs.length - 1; j >= 0; j--) {
                        thisPara = thisStory.paragraphs[j];
                        thisPara.applyParagraphStyle(myDoc.paragraphStyles[0], false)
    alert ("Job Done!");

  • Breaking link with Symbol loses brush strokes

    I'm disappointed to find that if a symbol instance containing brush strokes, is scaled and the symbol link is broken, all the brush strokes are converted to filled paths. I find, if I place an instance at 100%, then break link, the brush strokes are intact. This is also true of symbols containing Live Paint objects.
    Has anyone else experienced this? I wonder why AI cannot just scale the brush width, instead of converting them to shapes.

    For you, anything, Kurt.
    I'm actually talking about the default CMYK artbrushes that ship with AICS2 (and maybe 10). More specifically the Chalk Scribble brush. That one seems to convert to filled paths when it's included in a symbol that's delinked once on the artboard.
    I've also seen this with some custom made brushes of my own... usually complex with lots of points and curves. And I suspect what Ray sees happens with more complex brushes in symbols... scaled or otherwise depending on the particulars.

  • Break link to style

    I've just had a situation where the font in a masthead has changed.
    I am guessing that when the masthead was built, a default paragraph style was in place so that the masthead represented style overrides, and that somehow the overrides have been removed.
    To prevent it happening again I have broken the link to the style and I was expecting the type spec to then be bullet proof. But if I select it, although it no longer appears as a selected style in the paragraph panel, I am still able to use the panel to clear overrides, which returns the type to Times New Roman.
    I guess the TNR comes from the No Paragraph Style on which the original style was based. But having broken the link, I would not have expected this behaviour.
    Breaking the link to a style will obviously protect the type if the original style is edited, but shouldn't it also prevent regression to the base style?
    If not, I guess that means that the only way to make a piece of text unchangeable is to edit No Paragraph Style to exactly represent each piece of text before setting it.
    Any thoughts?
    k

    Thanks Dave.
    Deck = sub editor oldspeak for a line of headline.
    Maybe I'll go the styles folder route.
    I'm only assuming that the problem came from removing overrides. The magazine is set mostly in Myriad Pro, but the masthead is three decks of Helvetica Bold condensed at different sizes, leading and tracking to form a square. Some of the words are solid black, others are tinted.
    The magazine went to press with the Helvetica substituted by Myriad Pro Regular, but the size, leading and tracking seemed preserved so the headline looked right, just the wrong face. So perhaps removing overrides wasn't the culprit.
    This was on an inside page. The cover masthead, thank goodness, was as it should have been, which makes me rule out font substitution.
    The designer says she never touched the type at that point, so it's going to remain a mystery.
    I'm just trying to prevent accidents in the future.
    k

  • Updated apps break links with dock icons (Mac OS)

    When apps are updated via the CC desktop app, they sometimes (not always) come down with a new name which causes the link in the dock to break.
    This would be a nuisance with one or two apps, but when a CC user has (like I do) a dozen icons in their dock it means that every major update requires several broken dock icons to be replaced. And if (like me) the user has more than one login on their machine (for separate personal and business workspaces) then the nuisance is doubled.
    For example, I have just downloaded "Adobe Edge Animate CC 2014.1", which has removed the earlier version leaving an orphaned dock icon ("Adobe Edge Animate CC 2014"), for the sake of adding ".1" to the file name.
    As a general principle, version numbers do not belong in an application name; there is a perfectly good field in the file info window for version number which is where practically every other vendor puts theirs.
    This comes on top of the muddle of versions which has meant there are three "current" versions of some apps, for instance Photoshop (CS6, CC and CC 2014).
    The other problem with your system is that in a few short months "CC 2014" apps will be outdated, if not in practise, certainly in name.
    Some creative brains need to be exercised on this, don’t leave it to the nerds.

    If it happens in a new user you may be able to repair this with the 10.5.4 Combo Update This is a fuller install, as opposed to an incremental "delta" update so it should overwrite any files that are damaged or missing. It does not matter if you have applied it before.
    Remember to Verify Disk before update and repair permissions after update from /Applications/Utilities/Disk Utility.
    -mj

  • Ipod photo breaks link with library

    My ipod said it was not linked to my library the other day. I have always updated from that machine and this was a first. I had it link to that library and it updated all 2000 songs to the ipod. Most of that 2000 were already on there. Does this have something to do with choosing to update songs manually? Can you swirtch between manual and automatic without it updating the entire library again? Was it because I updated to itunes 5?

    What was the exact error message ?
    Check out the iPod Troubleshooting FAQ, particularly the section labelled "Moving / Loading Files"
    Good luck

  • Break link to Character Style with JS (CS4ME)

    Hi,
    I'm wondering how to break a link to a character style in JS. By break
    link I mean removing the character style but preserving the formatting.
    Given a selected textStyleRange, say, in the UI there are two ways of
    doing this. One is to click "Break link to Style" in the flyout meny of
    the character style palette.
    The other is to right-click and select "Apply character style."
    It's a little unintuitive, because CLICKING on removes overrides,
    but right-clicking and selecting the menu option doesn't.
    So when I saw that, I said to myself aha! Probably:
    myText.appliedCharacterStyle = myCharStyle
    is equivalent to clicking on , while
    myText.applyCharacterStyle(myCharStyle)
    is equivalent to right-clicking on and choosing "Apply character
    style."
    But it isn't.
    They both apply None and remove all formatting.
    So, anyone know how to break a link to character style without removing
    formatting in JS?
    Thanks,
    Ariel

    Thanks Peter. That's interesting. After Shabbos I'll have to try figure
    out how to apply a character style without removing overrides as well.
    It may be a two-step procedure.
    Thanks,
    Ariel

  • Niceties of apply the [None] character style and its relation to Break link to Character Style (CS4 upwards)

    Hi,
    Am I the last to realise that, with text selected, clicking on is
    different from right-clicking on and selecting "Apply " in
    the character palette?
    Let me explain: Say you have some text selected. The text has a
    character style applied called "Superscript", whose only attribute is to
    apply superscript.
    Now, with that text selected, if you click on the result is that
    is applied and all formatting is lost.
    But, if you right-click on and choose "Apply " from the
    context menu, is applied but formatting is NOT list. Effectively
    this is the equivalent of choosing "Break link to style" in the flyout
    menu of the character palette.
    Curious to know if you've come across that that distinction before?
    Thanks,
    Ariel

    Sorry Peter. On behalf of the stupid Jive forums, I do apologize. Everywhere in my post where I wrote [None], it was jived up a little and changed to a link. (I've only got Internet access during breaks -- a self-imposed firewall that allows me to actually get some work done.)
    The post shoudl have read:
    Hi,
    Am I the last to realise that, with text selected, clicking on [None] is different from right-clicking on [None] and selecting "Apply [None]" in the character palette?
    Let me explain: Say you have some text selected. The text has a character style applied called "Superscript", whose only attribute is to apply superscript.
    Now, with that text selected, if you click on [None] the result is that [None] is applied and all formatting is lost.
    But, if you right-click on [None] and choose "Apply [None]" from the context menu, [None] is applied but formatting is NOT list. Effectively this is the equivalent of choosing "Break link to style" in the flyout menu of the character palette.
    Curious to know if you've come across that that distinction before?
    Thanks,
    Ariel

  • [JS] How to break link to paragraph style from script?

    I don't found the command break link to paragraph style from script.
    I want "unapply" the style from the text, but leave the formatting intact.
    Can help me?

    In the interface it's a separate command ("Break link to style"), but it seems in a script you have to use
    Paragraph.applyParagraphStyle (using:ParagraphStyle[, clearingOverrides:bool=true])
    You cannot use "null" or something similar for "ParagraphStyle", so I guess the idea is to use paragraph style #0 in your document (which is always "[No Paragraph Style]"). Be sure to set "clearing Overrides" to false, as it defaults to true.
    The following single line works on your current paragraph:
    app.activeDocument.selection[0].paragraphs[0].applyParagraphStyle (app.activeDocument.paragraphStyles[0], false);

  • Break link to Cell and Table Style and keep the style setting

    For cell Selection is work (but can't keep the style setting after break the link), but I also want to break the table style, but error
    For both Break link to cell/table style, I want to keep the style setting after break the link
    BreakLinkToTableStyleSelection();
    BreakLinkToCellStyleSelection();
    function BreakLinkToTableStyleSelection () {
    var
         mNone = app.activeDocument.tableStyles.item(0),
         mSel = app.selection[0];
    if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
        mSel.tables.everyItem().appliedTableStyle = mNone;
        return;
    if(mSel.hasOwnProperty("baselineShift")){
        mSel.tables.everyItem().appliedTableStyle = mNone;
        return;
    function BreakLinkToCellStyleSelection () {
    var
         mNone = app.activeDocument.cellStyles.item(0),
         mSel = app.selection[0];
    if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
        mSel.cells.everyItem().appliedCellStyle = mNone;
        return;
    if(mSel.hasOwnProperty("baselineShift")){
        mSel.tables.everyItem().cells.everyItem().appliedCellStyle = mNone;
        return;

    For cell Selection is work (but can't keep the style setting after break the link), but I also want to break the table style, but error
    For both Break link to cell/table style, I want to keep the style setting after break the link
    BreakLinkToTableStyleSelection();
    BreakLinkToCellStyleSelection();
    function BreakLinkToTableStyleSelection () {
    var
         mNone = app.activeDocument.tableStyles.item(0),
         mSel = app.selection[0];
    if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
        mSel.tables.everyItem().appliedTableStyle = mNone;
        return;
    if(mSel.hasOwnProperty("baselineShift")){
        mSel.tables.everyItem().appliedTableStyle = mNone;
        return;
    function BreakLinkToCellStyleSelection () {
    var
         mNone = app.activeDocument.cellStyles.item(0),
         mSel = app.selection[0];
    if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
        mSel.cells.everyItem().appliedCellStyle = mNone;
        return;
    if(mSel.hasOwnProperty("baselineShift")){
        mSel.tables.everyItem().cells.everyItem().appliedCellStyle = mNone;
        return;

  • TOC link with a subscript character does not work in PDF

    Hi,
    has anyone come across with this? A heading has a subscript character and when you generate a PDF, the TOC page has no link. Other TOC heading links work out just fine, but all these that have subscript, these do not.
    I have used Save As PDF and selected even create named destinations for all Paragraphs. Usually the TOC works fine even if that is not selected. A link with subscript does not work in either case.
    I appreciate any help with this, thanks

    > The link is always terminated before any change in the character format. That's not a bug.
    In user-authored manually-created hypertext links, sure. And in that case, we know that we have to re-apply the Marker to the various fragments of the desired text. I would not expect this behavior for a generated file where we have limited control over the auto-tagging.
    > Therefore if you have subscript or superscript applied, the link starts at the beginning of the paragraph and ends before the character format change (sub-/superscript).
    It's not just format changes in body <$paratext> that break this. If you so much as apply a different format to the elements on the TOC Reference Page TOC (such as making the page number a different font), that breaks the HT of the page number in the PDF.
    > As far as I know Rick Quatro offers a FrameScript script for this problem.
    Well, Adobe might consider this to be an Enhancement Request item, but I consider it to be a defect.
    Is there anyone who would object if the TOC entries had functional full-string HT links by default? If so, Adobe could fix the problem, and have an Update tickbox to revert to legacy broken behavior.
    In any case, the Unicode solution is not really a "work-around", even though I put it that way. For anything where Unicode has a glyph that you would otherwise implement as FrameRoman with a Character Format, use Unicode.

  • [svn:fx-trunk] 11707: Fix incremental compilation problem with styles.

    Revision: 11707
    Author:   [email protected]
    Date:     2009-11-12 10:52:49 -0800 (Thu, 12 Nov 2009)
    Log Message:
    Fix incremental compilation problem with styles.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-24173
    Reviewer: Paul
    Tests run: checkintests
    Is noteworthy for integration: No.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24173
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java

    You have used elements like header, footer, footer1 and nav without using the correct DOCTYPE declaration. Replace the first line of your code with
    <!doctype html>
    Also have a look here for other problems http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fhome.surewest.net%2Fstorytales%2F test%2Fforposting.html
    After the above has been fixed, please come back here to fix the remaining problem(s)
    Gramps

Maybe you are looking for

  • IPhoto freezes when using Crop

    When I am editting photos and I use the Criop tool, Iphoto freezed the whole sysyen. This happens whether ZI use the Crop tool as the first step in editting or do other edits first then go to Crop.

  • On Windows XP db service starts up but database is not actually started

    Recently upgraded db from 10.1.0.4 to 10.2.0.1 in windows XP The Windows service to start the database runs without error but the database is not actually started. When I connect as sys I get 'connected to idle instance' so i need to run 'startup' in

  • Illustrator CC Crashes on Save, Why?

    Illustrator CC crashes upon saving using OS X 10.75 on a Mac, with Dual Core Intel Xeon processor and 5 MB of memory. Tahoma and Verdana fonts are intalled. Why is this happening? Any help would be appreciated. We cannot save a crash log, because the

  • AE 5.2: Roles get provisioned to backend system but profiles randomly not

    Hi, we are currently switching from profiles to roles and therefore created user request containing the roles to be assigned and the profiles to be removed. The roles are assigned successfully to the user but the some profiles are not removed randoml

  • Which is a better option : VO on DB View or a VO with two EOs

    I have 2 tables: ITEMS_BASE and ITEMS_TL ( contains all translatable column of base table: ITEM_BASE). What is better option for me: 1. TO create a DB View on top of ITEMS_BASE & ITEMS_TL and then create my VO on the DB View OR 2. Create 2 EOs on ITE