Merging anchored frames

Can someone help me to write simple script to merge anchored frames.
That is to put all text form anchored frames to the first one anchored frame on page.
Below I sent you two screenshots to describe what I need to do.
Thank you in advance for any help.

Sorry I don't understand what you are trying to do, it may well be but if others don't you may well not get an answer without further information.

Similar Messages

  • DITA - Multiple objects in anchored frame

    Hi,
    I'm using the DITA features in FrameMaker 9. I'd like to insert multiple objects in an anchored frame in a DITA topic.
    Right now, if I save an image element containing multiple objects, FrameMaker discards any extra objects in the frame. I've also experimented with adding extra graphics elements to the DTD using the attributes listed in the Structure Application Developer Guide. I can save DITA topics containing the custom elements, but they are not added to the XML file though I can see them in the FrameMaker interface. I have not yet experimented with a DITA specialization.
    When exporting anchored frames in Structured FrameMaker to XML, FrameMaker bundles multiple objects in a frame into a single CGM file.
    Is there a way to export anchored frames to CGM files before saving DITA topics? Is there a plug-in out there that will automatically save the objects in a frame? Can I use read/write rules to define how to treat these frames? How about creating a specialization on the objects element?
    I'd like to use the tools in FrameMaker to modify elements in an anchored frame. I don't see why doing this should break the DITA model if these objects are bundled into a single file on export.
    Thanks,
    - Maura

    Hi Maura...
    The short answer is .. you can't do that.
    DITA knows nothing about "frames" and only allows a single object to be referenced by an image element, so to remain in compliance with the DITA specification the content of a frame is tightly controlled by FM. There's nothing that you'll be able to do via read/write rules or EDD tricks to get FM to write out the data from multiple objects as a CGM .. this is overridden by the internal DITA plugin within Frame. You're correct that in theory FM could merge multiple graphics into a CGM, but this really wouldn't be a good way to operate since the text or other objects would no longer be editable. You can do this now using Illustrator or other applications that let you store the text and objects on separate layers, then save to a single file. Reference this single file in the image element in DITA.
    That said .. we are looking into supporting some subset of multiple graphic objects within a frame in DITA-FMx, and this feature may be available in an upcoming beta.
    http://leximation.com/dita-fmx/
    Cheers,
    ...scott
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • InDesign Data Merge / Image Frame Options

    Hi! I am learning Data Merge and am trying to set-up some product sheets using it. I have done pretty well so far but have an issue with the way images are importing into the different image frames. There are a few different image frames on the layout (main product image, tech drawing, tech icons, etc.), and I need each image frame to have different frame options set.
    So far using the general "Frame Fitting Options" for each has worked for all imported images except for my tech icons (which I can get to import correctly if I choose "Content Placement Options > Fit Frames to Images" from the Data Merge side menu --but when I do this, it applies to all image frames on the page and not just the one selected (which does not work overall).
    Is there another option to get the icon image frames to "Fit Frame to Image" automatically without using the Content Placement Options from the Data merge menu? Is there a way to use the Content Placement Options so it works for individual frames vs all on the layout?
    Any help is much appreciated!
    Liz

    Within the data merge, the frame fitting options apply to all frames that contain variable images, so if you want one variable image to fit image to frame, and another variable image to preserve its size, that cannot be done in the main file, but by manipulating the resulting merge file as P Spier suggests. With Data Merge, there are 8 ways an image can fit inside a frame - see the linked pdf: http://colecandoo.files.wordpress.com/2012/08/framefit.pdf
    This is further complicated when importing ai or pdf images that contain different possible sizes to import (e.g. trim box, bleed box, bounding box, etc). If the "show import options" dialog box is used when placing an image into a data merge file, the settings used in those import options are maintained in the file for the importing of any pdf/ai files via the data merge. What this means is that a data merge containing pdf/ai images can go haywire quickly if the import options change.
    There are some tricks that can be used to control a size of an image in a data merge, provided the images are pdf/ai. If images are being placed by bounding box size in the import options, a way is by drawing a no fill/stroke box behind (or on another layer) of the pdf/ai - this will be used to define the actual size of the image, instead of the top left/bottom right of the image. Similarly, if images are being placed by media box, a similar technique can be used by making the illustrator artboard the size used to define the incoming image size.
    There are also other ways to control the way an image grows/shrinks when importing via the data merge. I have written about that elsewhere, but the trick relies on using making the variable image an anchored object in a larger text frame and controlling its coordinates with text and textbox formatting (e.g. top/bottom/center align; left/right/center, or tab position): Centering “fit frame to images” using InDesign CS6 | Colecandoo!

  • Best Practice for Image placement and Anchored Frames for use in Robohelp 9

    Hi,
    I'm looking for the best practices in how to layout my images in Framemaker 10 so that they translate correctly to Robohelp 9.  I currently have images inside of Anchored frames that "Run into" the right side of my text. I've adjusted the size of the anchored frame so that my text flows correctly around the image. Everything looks good in Framemaker! Yeah! The problem is that when I link my Framemaker document to Robohelp, the text does not flow around my image in the same manner. On a couple of Robohelp screens the image is running into the footer. I'm wondering if I should be using tables in Framemaker in order to get the page layout that I'm looking for. Also, I went back and forth...is this a Framemaker question or is this a Robohelp question. Any assistance would be greatly appreciated.

    I think Jeff is meaning this section of the RoboHelp forums:
    http://forums.adobe.com/community/robohelp/robohelp_framemaker

  • How does one assign change bars to the contents of an anchored frame?

    Assigning change bars to text in FrameMaker 10 appears to give inconsistent results. Sometimes I can select the contents of an anchored frame and assign a change bar to it. Other times, only the marker is assigned a change bar and not the contents of the anchored frame.
    Also, sometimes I can select a table and assign a continuous change bar to it. Other times, a separate change bar is assigned to individual rows of the table.
    Are there any workarounds for this inconsistency?

    .

  • How to link a text box to an anchor frame in the master pages?

    Ok, as the title states, we are trying to figure out if it is possible to link a text box to an anchor frame in the master page. When you look at our Master Page layout, we have a text box in the upper left hand corner of the left hand page, this is used for our machine serial numbers. Then we have an anchor frame that automatically fills out the figure number. Let's say I have pages 2 & 3 (left & right), they have a S/N at the top of the page for the machine, then pages 4 & 5 have a different S/N. If I have to add more pages in between pages 2 & 3 (bumping the current 4 & 5 to 6 & 7), the anchor frame bumps to the next page, but the S/N text box doesn't. Is there a way to fix it so that they both move to the next page? Thanks for the help.
    P.S. I can include images and other info if needed.

    I have included a two pictures that should help me explain.
    Master Page:
    This is the master page set up, the "Page Text Box" has the flow set to "B" while the S/N text box has the flow set to "A". This setup is for our parts manuals, the left page is usually an illustration while the right page is usually a parts list. The text box, anchored frame & paragraph tag are empty in the master page set up. The "page text box" has a flow of "B" and the "S/N text box" has a master flow of "A".
    Body Page 1:
    When we create new pages, the paragraph tag automatically fills in the figure title on the left page, then we add an anchor frame within the text box to hold the illustration. You will notice that I added in a "test" serial number at the top of the page. Now if I need to go back and add two pages before this, the anchor frame, illustration and parts list will move to a new page, but the S/N text box will not. The "Before S/N TBD" would stay on the original page.
    This is what happens, the text box containing the illustration and the parts list "bump" to the next page, but the S/N text box does not. So the question we have is there a way to link that text box to the page so when we create new pages the S/N text box moves with the illustration.
    Does this help?
    Thanks for the assistance Error7103.

  • Need to ungroup objects in anchored frames

    Hi all,
    Going round and round in circles with this one...and have found other posts around anchored frames, but not this issue.
    I created a book (file) with a lot of grouped images (screenshots, arrows, annotations - composed and grouped on clean area).
    I created anchored frames, cut and pasted the groups INTO the anchored frames.
    So far so good.
    Six months later, I need to update the book (it is now a book in InDesign terms, so I was only coping with one section at a time).
    I can select each item inside the group using the direct selection tool - so where just a bit of text in an annotation needs to change, that's what I'm doing.
    I also need, though, to update some of the screenshots, add new arrows and new annotations (which are just small text boxes).
    Nothing I do lets me ungroup the object so I can replace the screenshot and then regroup them.
    I have tried releasing the anchored frame, but that doesn't help.
    I've tried using the direct selection tool on the frame contents to try to copy it out of the frame, but ungroup remains stubbornly greyed-out.
    I've resorted to using the direct selection tool to copy each element individually out onto a clean area, put the new screenshot in the middle, group them all and then re-insert into an anchored frame. One screenshot, one arrow, one caption = nuisance, but OK. One screenshot, 20 arrows, 20 captions = real pain.
    Because my deadline is fast approaching, I've just been superimposing the extra arrows and annotations - which will do to create the PDF, but I need to sort it out at some point or I'm going to have a nightmare the next time around with floating arrows all over the place.
    I must be missing something, but what?
    Wrong selection tool at wrong time?
    Thanks in advance,
    Alison

    It was the stacking problem that really took me to the "copy them out one by one" phase as I needed to replace something that was originally obove some elements but below others. For example,one page originally had two partial screenshots, now it has three. I need to insert one into a layer between the first two (basically, I'm shorf of space on a printed document, and the bottom right section of each screen is blank so I'm taking advantage of that space to overlap).
    can delete the "original" top image, then put the two in in the correct order, but I'm covering the arrow heads...by the time I get to this stage, it's as quick to start again comosing a new group.
    I'm not putting so much in anchored frames this time around - I thought it would save me time, but it isn't.

  • Best Practices for image layout and positioning using anchored frames in Framemaker 10

    Hi,
    I'm looking for the best practices in how to layout my images in Framemaker 10 so that they translate correctly to Robohelp 9. I currently have images inside of Anchored frames that "Run into" the right side of my text. I've adjusted the size of the anchored frame so that my text flows correctly around the image. Everything looks good in Framemaker! Yeah! The problem is that when I link my Framemaker document to Robohelp, the text does not flow around my image in the same manner. On a couple of Robohelp screens the image is running into the footer. I'm wondering if I should be using tables in Framemaker in order to get the page layout that I'm looking for. Also, I went back and forth...is this a Framemaker question or is this a Robohelp question. Any assistance would be greatly appreciated.

    I wish I could offer some advice, rather than simply adding to your question. I think there is something odd that happens with anchored frames.
    I have been going through fits trying to figure out why the placement of my graphics shifts when I run them through Frame 10-to-RoboHelp 9 conversion. The placement in our books is flush left to the body text area. However, when they convert, some are flush left, some are centered, and a very few are flush right. My boss is very unhappy with me, as I have been unable to figure out why this is happening. I didn't create these files, so I don't know if it's something that goes back to how the graphics were initially imported. But I can't figure out why everything looks right in Framemaker, with the frame attached to an anchor tag, etc. but the placement goes hinky when they convert.
    Any insights are appreciated. I'm wondering if it's going to come down to deleting them and recreating the graphic frame.

  • Position of eps-files in anchored frame

    Hello, I'm sorry but the subject was too large to put it in the subject-field.
    Subject:
    position of eps-files (Mac Os 9, Illustrator 9.0, preview tiff black/white)
    is not correct after saving eps-files (preview macintosh black/white)
    I want to upgrade from Apple Mac 9.0 to PC. All my Framemaker-files (6.0)
    must be translated to Framemaker 8.0 (PC-version).
    When I open the old Framemaker files, there is only a problem with the
    graphics (read: the preview of the graphics in Framemaker 8.0). The result
    is: grey boxes in the anchored frames. I thought when I save the old
    eps-files (Illustrator 9 for Mac, preview Macintosh Black+white) to
    eps-files with TIFF preview, that the problem will be solved. When I open
    the framemaker-files on PC, then there are a few graphics correct
    (Framemaker displays all the graphics correct on pc). But, there are a lot
    of graphics in anchored frames who lost their right coordinates in the
    anchored frame (example: the x-position of a graphic is -25 cm en the
    y-position of a graphic is 7.9 cm). Result: I cannot see a graphic in the
    anchored frame because the coordinates were changed and because their are
    outside the frame (their are in the frame, but the graphic is outside the
    border of the anchored frame).
    When I use the old eps-files then the position is correct, but there is no
    preview available of the graphic in Framemaker 8 (in Framemaker 6.0 for
    Mac, there is a preview of the graphic).
    Are there people who has this problem too in the past? Who can give me
    suggestions to solve this problem or give me other tips to solve this
    problem.

    Hi Jesse
    I'm afraid we probably can't help much. I asked our guy and he said:
    I thought that issue had more to do with upgrading Adobe Illustrator. When you save an EPS it includes a BoundingBox comment that defines the area of the page that the figure occupies in the artwork:
    %%BoundingBox: LLx LLy URx URy
    LLx and LLy are the coordinates of the lower left corner of the figure. URx and URy are the coordinates of the upper right corner of the figure.
    When FrameMaker imports an EPS it reads the BoundingBox comment to get the size and position of the figure on the page, and therefore to compute the translation and scaling required in the PostScript output to put the figure where you want it.
    The impression I got was that when you updated the EPS figure FrameMaker didn't always refresh the BoundingBox info.
    The later version of Illustrator seemed to save files with a different BoundingBox. As a result there was a mis-match between the actual BoundingBox and what FrameMaker recorded.
    The solution for us was to simply re-import the figure. I never wrote a script to solve that problem.

  • How can I create "drop caps" Anchored frames tool: "Run into Paragraph" in a text document, and at the same time be able to feather the text to the bottom of the pages? I´m using FrameMaker 10.

    @

    Presumably you are doing the DC as a single letter inside an Anchored Frame run-in from left.
    Back when FM had a manual, this was the method discussed in the manual. The manual, however, also said "Framemaker does not feather text in a text frame in which text runs around graphics."
    That was FM7.0. I don't know if FM has enhanced DC or feathering since then.
    If I had the requirement, I might look at putting the whole lead paragraph in a borderless table.

  • Using Anchored Frame Object Attributes to "Store" Art Numbers

    Good Morning, Everyone,
    I have been using FrameMaker for over 15 years now, and as a tech writer who has inherited LOTS of graphics-intensive documents from previous writers, I have often struggled with identifying source files for embedded graphics. (I prefer to embed graphics in my documents, but that is a topic for another discussion ;-) ) More often than not, graphics have been named something that made sense to the original author at the time, but is nothing more than cryptic code to me now.
    As a result, over the years, I have developed a personal "system" for naming my graphics files that identifies/names each file as the document number in which it resides followed by a sequential number. For example, if a document number is UM345-123, then my graphic files are named UM345-123_0001, UM345-123_0002, etc.  I then include a small (hopefully unobtrusive) 8-point text frame in the lower right-hand corner of the graphics frame that indicates the file name for the base graphic. I create an Art# tag that includes an autonumber for the Document Number (e.g., UM345-123,) which is then inserted into the text frame, and I assign the next sequential number to the graphic/file. The advantage to this is that in the future, files are easily identified if someone wants to use my graphic and all they have is a pdf copy of my document - anyone can easily locate the source file and either update it or forward it on.
    One disadvantage is that in some situations, fitting the text frame/graphic number into the graphic frame is tough - to the point where it detracts from the graphic itself.  I am now wondering if it is possible to somehow utilize Anchored Frame Attributes to store the graphic number in these situations. Perhaps create a new attribute specifically for the Art Number? Has anyone else done something similar?
    Thanks in advance for your help!!!
    Nancy

    > ... include a small (hopefully unobtrusive) 8-point text frame in the lower right-hand corner of the graphics frame ...
    We do this as well, either as a text frame, or in the caption table below, with the reference ID set to a non-obnoxious gray. The main issue with doing this is that the ID is hand-typed, and can easily be incorrect, but usually only when it matters .
    We also have other metadata, that the end users don't see, such as file type, scale and rotation, and this is text with a color set, at rendering, to Invisible by Color Views.
    What you really want, however, is metadata that can't be incorrect, and shows the complete provenance of the object. For this, use text in the original art that is several mm above the art/table/chart extents. Clip it after import with the top edge of the anchoring frame or graphic frame within. End users never see it, but future document stewards can either slide the image down, or pull the frame edge up, to reveal the trail of crumbs leading back to the object's place of birth.
    Caution: that out-of-frame metadata may survive into the PDF, depending on Distiller vintage and settings. You can remove it via Examine Document in Acrobat Pro.

  • Hel with modifying cs5/6 script...create anchored frames from text

    hello
    I have one great time saver script for cs5 for create anchored frames from text tagged with/or charachter style/paragraph style. This work in cs6 but have some "bugs" for me. Script need to be compatible with InDesign CS6.
    1. script in original (look bellow) create text frame which is fitted to lenght of the text. I make change and change 466 line:
    AnchoredTextFrame.fit(FitOptions.FRAME_TO_CONTENT);
    now frame is wide as I write in check box, good. But frame not resize to lenght of the text so I add after above lines 466-470:
        var FO = FitOptions.FRAME_TO_CONTENT,
        tfs = ([]).concat.apply([], app.activeDocument.stories.everyItem().textContainers),
        t, i = tfs.length;
    while( i-- ) (t=tfs[i]).overflows && ( t.locked || t.fit(FO) );
    now all is ok but is here better way to make this to work? Simply, i want to spec text frame width in dialog box, frame will resize only verticaly in direction to amount text in frame. I dont want any overset text.
    2. One "bug". For some reason script alter paragraph style of other text which is not subject to be cutted in anchored frame.
    How to resolve this?
    #targetengine "session"
              Automating anchored object creation
              Version: 2
        Script by Thomas Silkjær
              http://indesigning.net/
    Модификация Б. Кащеев, www.adobeindesign.ru
    Скрипт предназначен для создания привязанных фреймов из текста, отформатированного
    каким-либо абзацным или символьным стилем. Эти стили задаются пользователем в диалоговом
    окне скрита. Там же необходимо задать объектный стиль для привязанного фрейма, в котором
    пользователь должен заранее задать оформление и параметры привязки. Далее необходимо
    указать ширину привязанного фрейма, а его высота будет рассчитана автоматически исходя из
    объема текста. При вводе дробных значений ширины привязанного фрейма в качестве
    разделителя целой и дробной части следует использовать не запятую, а точку, следуя западным
    стандартам разработчиков программы  Adobe InDesign. Первоначально идея и скрипт по созданию
    привязанных фреймов принадлежит Thomas Silkjær для версии ID CS4. C появлением версий CS5
    и CS5.5 скрипт перестал в них выполняться, да и в версии CS4 не всегда корректно работал.
    Анализируя недочеты скрипта в данной его версии были исправлены ошибки и внесены
    функциональные дополнения исходя из понимания задачи автором модификации. Добавлена
    возможность выбора стилей, если они они находятся в группах (папках), возможность выбора
    единиц измерения из выпадающего списка, изменены GREP-выражения для поиска текста,
    область действия скрипта ограничена материалом (Story), а не документом.
    var myMeasureUnits = ["Milimeters","Centimeters","Points","Inches", "Picas", "Ciceros"];
    var selectUnits;
    var pStyleIndex = null;
    var cStyleIndex = null;
    var oStyleIndex = null;
    var myH, myW;
    function main()
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
              if (app.documents.length == 0)
                        alert ("Document is not open. Open document first");
                        return;
        var myParaStyleList = myGetParagraphStyleNames();
        var myCharStyleList = myGetCharacterStyleNames();
        var myObjStyleList = myGetObjStyleNames();
        if(app.selection.length && app.selection[0].hasOwnProperty("baseline"))
            var myStory = app.selection[0].parentStory;
            var myWin = myDialog(myParaStyleList, myCharStyleList, myObjStyleList);
            if ( myWin.show()  == 1 )
                var myDocument = app.activeDocument
                with (myDocument.viewPreferences){
                    // Сохраняем старые единицы измерения в переменных myOldXUnits, myOldYUnits
                    var myOldXUnits = horizontalMeasurementUnits;
                    var myOldYUnits = verticalMeasurementUnits;
                    // Устанавливаем новые единицы измерения
                    switch(selectUnits)
                        case 0:                   
                            horizontalMeasurementUnits = MeasurementUnits.millimeters;
                            verticalMeasurementUnits = MeasurementUnits.millimeters;
                            break;
                        case 1:
                            horizontalMeasurementUnits = MeasurementUnits.centimeters;
                            verticalMeasurementUnits = MeasurementUnits.centimeters;
                            break;
                        case 2:
                            horizontalMeasurementUnits = MeasurementUnits.points;
                            verticalMeasurementUnits = MeasurementUnits.points;
                            break;                  
                        case 3:
                            horizontalMeasurementUnits = MeasurementUnits.inches;
                            verticalMeasurementUnits = MeasurementUnits.inches;
                            break;
                        case 4:
                            horizontalMeasurementUnits = MeasurementUnits.picas;
                            verticalMeasurementUnits = MeasurementUnits.picas;
                            break;
                        case 5:
                            horizontalMeasurementUnits = MeasurementUnits.ciceros;
                            verticalMeasurementUnits = MeasurementUnits.ciceros;
                            break;
                        default: break;
                    } // switch
                if(cStyleIndex == null)
                {/*поиск по стилю абзаца*/
                    var pStyle = getParagraphStyleByName(myParaStyleList[pStyleIndex]);
                    resetGREPfindChange();
                    app.findGrepPreferences.appliedParagraphStyle = pStyle;
                    app.findGrepPreferences.findWhat = NothingEnum.nothing;
                else //
                    // поиск по стилю символов
                    var cStyle = getCharacterStyleByName(myCharStyleList[cStyleIndex]);
                    resetGREPfindChange();
                    app.findGrepPreferences.appliedCharacterStyle = cStyle;
                    //app.findGrepPreferences.findWhat = ".+";
                    app.findGrepPreferences.findWhat = NothingEnum.nothing;
                var foundItems = myStory.findGrep();
                if(!foundItems.length) {
                    alert("Found the text to be placed in a linked frames"); exit();
                //alert(foundItems.length);
                //alert (foundItems[0].contents)
                //alert (foundItems[1].contents)
                var oStyle = getObjectStyleByName(myObjStyleList[oStyleIndex]);
                for(var i = foundItems.length-1; i >=0; i--)
                    //alert (foundItems[i].contents)
                    createAnchoredFrame(foundItems[i], oStyle);
                with (myDocument.viewPreferences){
                    try{
                        horizontalMeasurementUnits = myOldXUnits;
                        verticalMeasurementUnits = myOldYUnits;
                    catch(myError){
                        alert("Unable to return to the original unit");
            } //if ( myWin.show()
        } //if(app.selection.length && app.selection[0].hasOwnProperty("baseline"))
        else
            alert("Place the cursor in the text and run the script again")
    } // main
    function myGetParagraphStyleNames()
    // Получаем список стилей абзацев
              var curGroup;
              var curGroupName;
              var curNameInGroup;
              var myParagraphStyleNames = app.activeDocument.paragraphStyles.everyItem().name;
              myParagraphStyleNames.shift(); // удаление стиля No Paragraph Style
              var paraGroups = app.activeDocument.paragraphStyleGroups;
              var paraGroupsLen = paraGroups.length;
              for(var i = 0; i < paraGroupsLen; i++) {
                        curGroup = paraGroups[i];
                        curGroupName = paraGroups[i].name;
                        curGroupStyleNames = curGroup.paragraphStyles.everyItem().name
                        for (j=0; j< curGroupStyleNames.length; j++)
                                  curNameInGroup = curGroupName +":"+ curGroupStyleNames[j];
                                  myParagraphStyleNames.push(curNameInGroup);
              return myParagraphStyleNames;
    function myGetCharacterStyleNames()
    // Получаем список символьных стилей
              var curGroup;
              var curGroupName;
              var curNameInGroup;
              var myCharacterStyleNames = app.activeDocument.characterStyles.everyItem().name;
              myCharacterStyleNames.shift(); // удаление стиля None
              var charGroups = app.activeDocument.characterStyleGroups;
              var charStyleGroupLen = charGroups.length;
              for(var i=0; i < charStyleGroupLen; i++)
                        curGroup = charGroups[i];
                        curGroupName = charGroups[i].name;
                        curGroupStyleNames = curGroup.characterStyles.everyItem().name;
                        for (j=0; j< curGroupStyleNames.length; j++)
                                  curNameInGroup = curGroupName +":"+ curGroupStyleNames[j];
                                  myCharacterStyleNames.push(curNameInGroup);
              } //for
              return myCharacterStyleNames;
    } // fnc
    function myGetObjStyleNames()
        var curGroup;
              var curGroupName;
              var curNameInGroup;
              var myObjStyleNames = app.activeDocument.objectStyles.everyItem().name;
        myObjStyleNames.shift();
        var objGroups = app.activeDocument.objectStyleGroups;
        var objStyleGroupLen = objGroups.length;
        for(var i=0; i < objStyleGroupLen; i++)
                        curGroup = objGroups[i];
                        curGroupName = objGroups[i].name;
                        curGroupStyleNames = curGroup.objectStyles.everyItem().name;
                        for (var j=0; j< curGroupStyleNames.length; j++)
                                  curNameInGroup = curGroupName +":"+ curGroupStyleNames[j];
                                  myObjStyleNames.push(curNameInGroup);
              } //for
        return myObjStyleNames;
    } // fnc
    function myDialog(myParaStyleList, myCharStyleList, myObjStyleList)
        var myDialog = new Window('dialog', 'Create anchored text frames');
        this.windowRef = myDialog;
              myDialog.orientation = "column";
        myDialog.alignChildren = ['fill', 'fill'];
        // добавляем панель 1 с элементами управления
        myDialog.Pnl1 = myDialog.add("panel", undefined, "Move the text in linked frames");
              myDialog.Pnl1.orientation = "column";
        myDialog.Pnl1.alignChildren = "left";
        myDialog.Pnl1.pstyle = myDialog.Pnl1.add('checkbox', undefined, "Text with the paragraph style");
        myDialog.Pnl1.pstyle.value = false;
        myDialog.Pnl1.dropdownParaStyle = myDialog.Pnl1.add("dropdownlist", undefined, myParaStyleList);
        myDialog.Pnl1.dropdownParaStyle.title = "Select the paragraph style ";
        myDialog.Pnl1.dropdownParaStyle.minimumSize = [250,20];
        myDialog.Pnl1.dropdownParaStyle.enabled = false;
        myDialog.Pnl1.dropdownParaStyle.selection = 0;
        if(myCharStyleList.length)
            myDialog.Pnl1.сstyle = myDialog.Pnl1.add('checkbox', undefined, "Text with character style");
            myDialog.Pnl1.сstyle.value = false;
            myDialog.Pnl1.dropdownCharStyle = myDialog.Pnl1.add("dropdownlist", undefined, myCharStyleList );
            myDialog.Pnl1.dropdownCharStyle.title = "Select the character style ";
            myDialog.Pnl1.dropdownCharStyle.minimumSize = [250,20];
            myDialog.Pnl1.dropdownCharStyle.enabled = false;
            myDialog.Pnl1.dropdownCharStyle.selection = 0;
            myDialog.Pnl1.pstyle.onClick = function()
                if(this.value) {
                    myDialog.Pnl1.dropdownParaStyle.enabled = true;
                    myDialog.Pnl1.dropdownCharStyle.enabled = false;
                    myDialog.Pnl1.сstyle.value = false;
                else
                    myDialog.Pnl1.dropdownParaStyle.enabled = false;
                    myDialog.Pnl1.dropdownCharStyle.enabled = true ;
                    myDialog.Pnl1.сstyle.value = true;
            }// fnc
            myDialog.Pnl1.сstyle.onClick = function()
                if(this.value)
                    myDialog.Pnl1.dropdownCharStyle.enabled = true;
                    myDialog.Pnl1.dropdownParaStyle.enabled = false;
                    myDialog.Pnl1.pstyle.value = false;
                else
                    myDialog.Pnl1.dropdownCharStyle.enabled = false;
                    myDialog.Pnl1.dropdownParaStyle.enabled = true ;
                    myDialog.Pnl1.pstyle.value = true;
            }// fnc
        }//  if(myCharStyleList.length)
        else
            myDialog.Pnl1.pstyle.onClick = function()
                if(this.value)
                    myDialog.Pnl1.dropdownParaStyle.enabled = true;
                else
                    myDialog.Pnl1.dropdownParaStyle.enabled = false;
    //  Вторая панель
        myDialog.Pnl2 = myDialog.add("panel", undefined, "Parameters of the text frame");
              myDialog.Pnl2.orientation = "column";
        myDialog.Pnl2.alignChildren = "left"; 
        myDialog.Pnl2.dropdownObjStyle = myDialog.Pnl2.add("dropdownlist", undefined, myObjStyleList );
        myDialog.Pnl2.dropdownObjStyle.title = "Select an object style ";
        myDialog.Pnl2.dropdownObjStyle.minimumSize = [250,20];
        myDialog.Pnl2.dropdownObjStyle.enabled = true;
        myDialog.Pnl2.dropdownObjStyle.selection = 0;
        myDialog.Pnl2.Group1 = myDialog.Pnl2.add( "group" );
        myDialog.Pnl2.Group1.stxt1 = myDialog.Pnl2.Group1.add("statictext", undefined, "The width of the text frame");
        myDialog.Pnl2.Group1.etxt = myDialog.Pnl2.Group1.add("edittext", undefined, "40");
        myDialog.Pnl2.Group1.etxt.characters = 10;
        myDialog.Pnl2.Group1.dropdownMeasurementUnits = myDialog.Pnl2.Group1.add("dropdownlist", undefined, myMeasureUnits );
        myDialog.Pnl2.Group1.dropdownMeasurementUnits.maximumSize = [80,20];
        myDialog.Pnl2.Group1.dropdownMeasurementUnits.selection = 0;
        //myDialog.Pnl2.Group1.stxt2 = myDialog.Pnl2.Group1.add("statictext", undefined, "mm ");
        /*myDialog.Pnl2.Group2 = myDialog.Pnl2.add( "group" );
        myDialog.Pnl2.Group2.stxt1 = myDialog.Pnl2.Group2.add("statictext", undefined, "Высота привязанного фрейма  ");
        myDialog.Pnl2.Group2.etxt = myDialog.Pnl2.Group2.add("edittext", undefined, "30");
        myDialog.Pnl2.Group2.etxt.characters = 10;
        //myDialog.Pnl2.Group2.stxt2 = myDialog.Pnl2.Group2.add("statictext", undefined, "mm ");*/
        myDialog.Pnl2.stxt1 = myDialog.Pnl2.add("statictext", undefined, "Attention! When you enter fractional values as");
        myDialog.Pnl2.stxt2 = myDialog.Pnl2.add("statictext", undefined, "the decimal part, should be used");
        myDialog.Pnl2.stxt3 = myDialog.Pnl2.add("statictext", undefined, "point, not comma.");
        myDialog.Pnl2.stxt1.graphics.foregroundColor = myDialog.Pnl2.stxt1.graphics.newPen (myDialog.Pnl2.stxt1.graphics.PenType.SOLID_COLOR, [1, 0, 0, 1], 1);
        myDialog.Pnl2.stxt2.graphics.foregroundColor = myDialog.Pnl2.stxt2.graphics.newPen (myDialog.Pnl2.stxt2.graphics.PenType.SOLID_COLOR, [1, 0, 0, 1], 1);
        myDialog.Pnl2.stxt3.graphics.foregroundColor = myDialog.Pnl2.stxt3.graphics.newPen (myDialog.Pnl2.stxt3.graphics.PenType.SOLID_COLOR, [1, 0, 0, 1], 1);
        // --------- кнопки --------------
        var myGroup = myDialog.add( "group" );
        myGroup.orientation = 'row';
        myGroup.alignChildren = ['fill', 'fill']; 
        myGroup.okButton = myGroup.add( "button", undefined, "OK" );
        myGroup.okButton.onClick = function()
            if(myCharStyleList.length) // есть символьные стили в документе
                if(!myDialog.Pnl1.pstyle.value && !myDialog.Pnl1.сstyle.value)
                    alert("You must select a paragraph style or character style");
                    return ;
                if(myDialog.Pnl1.pstyle.value) { pStyleIndex= myDialog.Pnl1.dropdownParaStyle.selection.index; cStyleIndex = null;}
                else {cStyleIndex = myDialog.Pnl1.dropdownCharStyle.selection.index; pStyleIndex=null; }
            else // нет символьных стилей
                if(!myDialog.Pnl1.pstyle.value)
                    alert("You must select a paragraph style");
                    return;
                pStyleIndex = myDialog.Pnl1.dropdownParaStyle.selection.index;
                cStyleIndex = null;
            } //  else // нет символьных стилей
           oStyleIndex = myDialog.Pnl2.dropdownObjStyle.selection.index;
           if(myDialog.Pnl2.Group1.etxt.text =="")
               alert("Enter the width of the text frame");
               return;
            else
                myW = myDialog.Pnl2.Group1.etxt.text;
                myH = myW;
            /*if(myDialog.Pnl2.Group2.etxt.text == "")
                alert("Введите высоту привязанного фрейма");
                return;
            else
                myH = myDialog.Pnl2.Group2.etxt.text;
           selectUnits = myDialog.Pnl2.Group1.dropdownMeasurementUnits.selection.index;
            myDialog= this.window.close( 1 );
        myGroup.cancelButton = myGroup.add( "button", undefined, "Cancel" );
        myGroup.cancelButton.onClick = function() { myDialog = this.window.close( 0 ); }
        myDialog.Pnl3 = myDialog.add("panel", undefined, "");
        myDialog.Pnl2.alignChildren = "left";
        myDialog.Pnl3.stxt = myDialog.Pnl3.add("statictext", undefined, "(с) Thomas Silkjær        (с) Борис Кащеев, www.adobeindesign.ru ");
        return myDialog;   
    } // fnc
    function getParagraphStyleByName(myStyleName)
              var DocParaStyles = app.activeDocument.paragraphStyles;
              var DocParaGroups = app.activeDocument.paragraphStyleGroups;
              myStyleName = ""+myStyleName;
              var pos = myStyleName.indexOf(":")
              if(pos == -1)
              // стиль не в группе
              var myStyle = DocParaStyles.item(myStyleName);
                        return myStyle;
              } //if
              else
                        var myGroupAndStyleNames = myStyleName.split(":")
                        var myGroupName = myGroupAndStyleNames[0];
                        var myStyleName = myGroupAndStyleNames[1];
                        var myGroup =DocParaGroups.item(myGroupName);
                        return myGroup.paragraphStyles.item(myStyleName);
    } // fnc
    function getCharacterStyleByName(myStyleName)
              var DocChStyles = app.activeDocument.characterStyles;
              var DocCharGroups = app.activeDocument.characterStyleGroups;
              // Есть ли в имени полученного символьного стиля двоеточие? (двоеточие разделяет название группы стилей и название стиля)
              myStyleName = String (myStyleName);
              var pos = myStyleName.indexOf(":");
              if(pos == -1)
              // стиль не в группе
                        return DocChStyles.item(myStyleName)
              } //if...
              else
              {// Стиль в какой-то группе
                        var myGroupAndStyleNames = myStyleName.split(":")
                        var myGroupName = myGroupAndStyleNames[0];
                        var myStyleName = myGroupAndStyleNames[1];
                        var myGroup = DocCharGroups.item(myGroupName);
                        return myGroup.characterStyles.itemByName(myStyleName);
              } // else
    } // fnc()+
    function getObjectStyleByName(myStyleName)
        var DocObjStyles = app.activeDocument.objectStyles;
        var DocCObjGroups = app.activeDocument.objectStyleGroups;
        myStyleName = String (myStyleName);
        var pos = myStyleName.indexOf(":");
        if(pos == -1)
              // стиль не в группе
                        return DocObjStyles.item(myStyleName);
              } //if...
        var myGroupAndStyleNames = myStyleName.split(":");
        var myGroupName = myGroupAndStyleNames[0];
        var myStyleName = myGroupAndStyleNames[1];
        var myGroup = DocObjGroups.item(myGroupName);
                        return myGroup.objectStyles.itemByName(myStyleName);
    } //fnc
    function resetGREPfindChange()
        app.changeGrepPreferences = NothingEnum.nothing;
        app.findGrepPreferences = NothingEnum.nothing;
        app.findChangeGrepOptions.includeFootnotes = false;
        app.findChangeGrepOptions.includeHiddenLayers = false;
        app.findChangeGrepOptions.includeLockedLayersForFind = false;
        app.findChangeGrepOptions.includeLockedStoriesForFind = false;
        app.findChangeGrepOptions.includeMasterPages = false;
    function createAnchoredFrame(myText, myObjStyle)
        var myGeometricBounds = [];
        var myInsertionPoint = myText.insertionPoints[0];
        myInsertionPoint.select;
        var AnchoredTextFrame = myInsertionPoint.textFrames.add();
        myGeometricBounds = AnchoredTextFrame.geometricBounds;
        //alert(parseFloat(myH) + " " + parseFloat(myW))
        myGeometricBounds[2] = myGeometricBounds[0] + parseFloat(myH);
        myGeometricBounds[3] = myGeometricBounds[1] + parseFloat(myW);
        AnchoredTextFrame.geometricBounds = myGeometricBounds;
        AnchoredTextFrame.anchoredObjectSettings.anchoredPosition = AnchorPosition.anchored;
        myText.move(LocationOptions.before, AnchoredTextFrame.texts[0]);
        AnchoredTextFrame.appliedObjectStyle = myObjStyle;
        AnchoredTextFrame.fit(FitOptions.CONTENT_TO_FRAME);
        var FO = FitOptions.FRAME_TO_CONTENT,
        tfs = ([]).concat.apply([], app.activeDocument.stories.everyItem().textContainers),
        t, i = tfs.length;
    while( i-- ) (t=tfs[i]).overflows && ( t.locked || t.fit(FO) );
    } //fnc
    main();

    Hi Cari,
    I did create a new user account (admin level) and InDesign works like a charm.
    When I went back to the other account, plug-ins gone, I deleted the prefs and caches, restarted and still everything is crashing as before.
    At least I am working on one account and I will contiue to troubleshoot on the other account. And at some point either the new account will crash or the old account will work and I will go from there.
    Thanks for the info about Mac remembering info. Always trying to be helpful these Macs.
    And thanks for getting at least into a workable space!!! I am supremely grateful!

  • Anchored Frame with auto shrink wrap

    Hi
    I have an issue that I need help with.
    I'm importing a range of graphics into my document and in my read/write rules I have all of the required properties to the images.  When the images are imported they are correctly displaying (size etc) but the default margin of the anchored frame is still there.  Is there any way that you can automatically apply the shrink wrap to the anchored frame (or set the anchored frame to have a default margin of 0?).
    Some of the images that we have are only 5mm x 5mm and there may be several of these on a single page.  Therefore selecting each individual image and pressing Esc m p to shrink wrap will become a very time consuming process.
    Any suggestions that may be provided would be greatly appreciated.
    Regards
    Reeta.

    You want Bruce Foster's ImpGraph plug in.
    http://home.comcast.net/~bruce.foster/ImpGraph.htm
    It works well.
    Art
    Art Campbell
                   [email protected]
      "... In my opinion, there's nothing in this world beats a '52
    Vincent and a redheaded girl." -- Richard Thompson
                                                          No disclaimers apply.
                                                                   DoD 358

  • Anchored frame that is run-around AND protrudes into margin?

    Hi,
    FM 8.04, Win XP.
    Is it in any way possible to create a small anchored frame (let's say 10 x 10 mm) that is run-around AND protrudes 1 or 2 mm into the left margin?
    I need it for drop caps and have managed everything except the protrusion into the margin.
    I can get protrusion into the margin by setting the anchored frame to "Outside column" or "Outside text frame" and then setting a negative value for "Distance from text column" - but then it isn't run around by the body text (despite inserting a text frame into the anchored frame and changing run-around properties).
    Any ideas?
    TIA,
    Mats

    Mats,
    Unfortunately, you're hitting the limits of anchored frame behaviour.
    It's an either/or proposition. You can have run-arounds, but you can't
    control the position except for placement at the start or end of a
    paragraph.
    An alternative, but clumsy and labour-intensive, is to set the start
    positions (indents - first & left) of all of the document paratags to
    be the desired offset (1-2mm) of the anchored frame. Then by setting
    the frame to start at the beginning of the anchoring paratag (not set
    with the indents), you will get the equivalent effect.
    If this is just going to be a single location and won't be subject to
    much editing (i.e. document reflow), then you could also consider
    using a graphic frame set with runaround, which you can position
    anywhere.

  • Indesign Bug with Auto-Size and fitting in Anchored frames

    Hi,
    Steps to reproduce:
    1. Create a text frame with 2 Anchored text frames with the same width.
    2. Make the anchored frames Auto-Size --> Vertical only
    3. insert text to the first frame, when type enter to the next line the frame become higher but the next frame remain in the same position. just after typing the first character in the second line the next frame adjust in the right position.
    4. The same happen when pasting text that make the frame bigger.
    5. The same happen without Auto-Size when fit frame to content.
    Does anyone knows about it?
    Any idea how to bypass?
    Thanks

    This is a user to user forum with "some" Adobe staff participation, report bugs at this link
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for bugs or feature requests

Maybe you are looking for

  • Where can I buy "4 conductor Miniplug to RCA" cable?

    In the User's Guide it's written that the cable is available seperately, but in every shop I visit there are no such cables... :-( Does anybody know an adress of any internet shop in which I could buy the thing? (Now I have to connect my SB Audigy 2

  • Final Cut Pro X has been force closing on my computer.

    I've been editing some footage that I filmed for my journalism class and as I was finishing the final details, FCP X shut down. I've tried opening the application again, but it's not working. I've shut down the computer but nothing has changed. I don

  • Contact name already exists is not displaying

    Hi all, This is vimal, am using iphone 5 and iOS7.0.2. While am adding new contact, its not alert me if I give the name which already exists.

  • Using Content Presenter inside  Page Template

    Hi all, I want to show content of footer from UCM, so I used Content Presenter in the Footer to do it. But I only can see the content when the template at the Edit mode and in the Preview Mode or normal mode I can't see anything Do you have any sugge

  • Cant install on Internal Hard Disk need help . . .

    i have the latest powerbook, and i have my treo hooked up to it, after i installed bootcamp and i had to partition the hard drive, i am no longer able to connect to the palm, and i cant install anything, the macintosh HD is not available for instalat