Saving Object Styles in IDCS2?

Ask a Question related to Adobe Indesign Macintosh, Design and Development.

  1. #1

    Default Saving Object Styles in IDCS2?

    I am creating a series of Drop Shadows as Object Styles.
    In the submenu I can see that I can Load Object Styles
    how about Saving a group of Object Styles to Load later or to let others Load?
    Andrew_Kavanagh@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. IDCS2 keep styles pasting from CS2 document
      If you are pasting text from one IDCS2 doc into another, how can you keep the style from the original document? In IDCS, the style was just added to...
    2. Just got IDCS2.. whats up with saving files????
      So, I open a IDCS1 file in IDCS2. I understand I am in an upgraded program now but when I finish with the file and have to save it.. why doesnt it...
    3. Problems saving Layers and Styles
      I am experiencing problems while saving a freehand document. I have got a multilayer Freehand 9-document with defined styles for text and graphics....
    4. saving xml object to xml document
      I have a Flash 2004 MX Professional document that reads in data from an xml file. I want to save the data back out to the xml document. I know I...
    5. saving styles
      Or use the preset manager to select a few styles that you want to save and click "save".
  3. #2

    Default Re: Saving Object Styles in IDCS2?

    Make an example of each and export as a snippet.

    Or save a copy of your document with the content stripped out so you can load them from that copy.

    Or make a template with them in.

    Note that if you go the snippet route and the receiving document already has a style of the same name, the existing style in the document will override what comes in with the snippet.

    Dave
    Dave_Saunders@adobeforums.com Guest

  4. #3

    Default Re: Saving Object Styles in IDCS2?

    Thanks Dave.
    So I can only save them with the original document that has all the drop shadow examples?
    Wish I could just save a set of Drop Shadow Object Styles so can just upload the Object Styles
    without having to open the document as well.
    Andrew_Kavanagh@adobeforums.com Guest

  5. #4

    Default Re: Saving Object Styles in IDCS2?



    without having to open the document as well.




    All the style palettes have a load command that loads styles from another document without opening this.
    Gerald_Singelmann@adobeforums.com Guest

  6. #5

    Default Re: Saving Object Styles in IDCS2?

    Strange how these things happen. I just got into this situation: I had a complex grouped object in my document that I wanted to adjust, so I copied and pasted the object to another temporary document where I did quite a lot of work, including creating a bunch of new object styles and modifying an existing one.

    So, when I finished, I copied and pasted back into the original document.

    The problem was the object style I'd modified. How to get that into the original document? The "proper" way to do it involves saving that temporary document somewhere and then Loading styles from it. But that just goes against the grain (I keep finding these files all over the place with names like "temp.indd" or "test.indl" etc.).

    So, I wrote a script. The script requires that you select an object that has an object style applied to it, and then it redefines that style to match the style of the same name in the other document (or back document if you have more than two open -- it checks with you before proceeding in this case). Here's the script:

    //DESCRIPTION: Import definition of Object Style of selected document from back document

    if (app.documents.length < 2) { beep(); exit(); } if (app.documents.length > 2) {
    beep();
    if (!confirm("More than two documents open. Continue?")) {
    exit();
    }
    }
    if (app.documents[0].selection.length == 0) {
    beep(); alert("Please select an object and try again."); exit();
    }
    transferStyle(app.documents[0], app.documents[-1])

    function transferStyle(target, source) {
    try {
    var myOstyleName = target.selection[0].appliedObjectStyle.name;
    } catch(e) {
    beep(); alert("Current selection doesn't have an applied object style."); beep();
    }
    var myOstyle = source.objectStyles.item(myOstyleName);
    if (myOstyle == null) {
    beep(); alert("Source document doesn't have an object style named: " + myOstyleName); exit();
    }
    var targO = target.objectStyles.item(myOstyleName);
    var sourceO = source.objectStyles.item(myOstyleName);
    targO.properties = sourceO.properties;
    targO.anchoredObjectSettings.properties = sourceO.anchoredObjectSettings.properties;
    targO.baselineFrameGridOptions.properties = sourceO.baselineFrameGridOptions.properties;
    targO.storyPreferences.properties = sourceO.storyPreferences.properties;
    targO.textFramePreferences.properties = sourceO.textFramePreferences.properties;
    targO.textWrapPreferences.properties = sourceO.textWrapPreferences.properties;
    }

    Be warned: I haven't tested all the error paths, but they look right.

    Dave
    Dave_Saunders@adobeforums.com Guest

  7. #6

    Default Re: Saving Object Styles in IDCS2?

    Hmm. That description line could do with an edit:

    //DESCRIPTION: Import definition of Object Style of selection from back document

    That's better!

    Dave
    Dave_Saunders@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139