Make anchored text frame after it is move in to story

Hi,
In my document have 4 stories. and one text frame
this text frame is make of anchored text frame and it move in story 1
It is possible ?
please help me...
my coding is shown in below
tell application "Adobe InDesign CC 2014"
        set storyofset to story offset of myElement-------------->myElement is particular xpath
        tell storyofset
            set anchored position of anchored object settings of text frame 1 to anchored
            set horizontal reference point of anchored object settings of text frame 1 to anchor location
            set anchor xoffset of anchored object settings of text frame 1 to 0
            set anchor yoffset of anchored object settings of text frame 1 to 0
            set text column count of text frame preferences of text frame 1 to 1
        end tell
    end tell
thanks in advance.
by, John Peter.

I copied text & paisted it and then draged the 3 photos from the file...then clicked on the photo then clicked the inline boxon tool bar nexed to floating one and that is how I did it
I do not know what you mean "cut & paist"  how do I get the photo in from my picter folder if I do not drag it to the page in Pages? 
I went to my photo folder and copied a photo and paisted the photo on the top left part of the page and it went there but there was no text to the right of photo...I could crop the photo to what ever size but no text to the right of photo...
This is just too big of a mess of a program as it should be easier then this,,,I hav e 300 photos in this project and would have to re-paist them all...that is nuts...
I see the button to the right of inline and floating that has 6 [lace to have the photo but the text does not float around the photo...
If this is what your talking about this very little freedom in my page layout as I need it to let me place it where I need it to be and the wrap the text...
There has to be an easier way to get my books ready for other formats other that Apple's iPad...iBooks Author was way eisier to make ready for iTunes...Love that program!!!
Want my books for sale on all the other formats and was told by Apple Pages whould do it...
I must be be out to lunch or the designers at Apple are ???

Similar Messages

  • Inconsistent placement of anchored text frame in data merge document

    Just writing up this bug so that anyone else who encounters it can find out what's going on with less head-scratching.
    It seems that InDesign's data merge feature gets confused when there are anchored objects in a text frame that's anchored inside another text frame, which can result in:
    exported PDFs that don't match the InDesign preview when viewed in Acrobat (so, nasty surprises on some pages after exporting)
    InDesign previews that - bizarrely - show differently depending on whether you navigated to the preview by hitting the arrow keys in the Data Merge box or by entering a number.
    (sadly I can't provide a file for confidentiality reasons - but the problem point had multi-line data merge entries, a text frame that was anchored in another text frame of equal width, and anchored images and text frames in this anchored text frame)
    There were certain entires where, if I navigate to them in the preview using the 'next' and 'previous' keys, there was 4mm less space between the nested text frame and the previous line than if I navigate to it by entering the number. Exporting as a PDF through data merge used the variant with more space.
    Re-working the area in question so that the nested text frame wasn't needed seems to have removed the problem (but loses the ability to vertically align these elements in a fixed size frame that is in the text flow).

    You didn't say what version of ID, or whter a single or multiple record per page merge, but the Preview is known to be buggy for multiple records since CS5 and might be for single records as well.
    I have an annual directory that is built by data merge with one section in each listing as an anchored frame, and I've never had a problem, but it's not as complex as your description, nor do I ever merge to PDF (though I've heard here from several users that it's more reliable).
    One thing you might want to try is merging without the preview step, but do it from a "fresh" file by copying and pasting your placeholders into a new document. If the problem is with the preview it seems that it "infects" the file and even merging without touching the preview button may not work.

  • Make anchored graphics frames act as containers

    If I choose Object/Anchored Object/Insert and make the inserted frame a graphics frame (with above line positioning), it doesn't act as a container. That is, if I put a graphic into the frame or create one with the drawing tools -- say a line diagram -- and then make edits to surrounding text that causes the text to move up or down, the *frame* moves with the text it's anchored to, but the graphics inside it *don't* -- with enough editing, they could move right outside the frame, like ghosts passing thro' walls. Since almost every time I want to put a graphic onto the page it bears some specific relationship to the local text, this behavior is unhelpful, to say the least.
    I can't figure out what the point of graphics frames that don't hold their contents in place could be, so I wonder if this is a bug. If so, please fix it. But if ID is behaving as intended, please add the option to preserve the position of graphics inside the frame *relative to the frame boundaries* (as opposed to relative the page boundaries).
    Thanks.
    PS: I did try to group the frame with a line diagram inside it but that seems impossible. I also know you can paste graphics into body text directly -- I watched AMC's video at Adobe -- but when the graphic in question has different pieces that relate to specific words above or below it, you really can't build it off-site then paste it in -- especially if the result of doing that limits your options for adjustments.

    I believe we've covered this issue thoroughly. There's nothing wrong with your intention, but there is something missing about the containership behavior of ID's anchored frames that works fine in FM.
    I think it's a bug. Others may think it's a personal wish that isn't supported. My thinking is that ID's frame objects are already packed with smarts about content type and fitting abilities, that the developers simply overlooked providing the ability to add new objects freely into a frame that's already got content (like FM can.)
    Apparently designers don't encounter this need anywhere nearly as often as those who author annotated documents in Word, FM, or other similar tools that permit working in the isolated environment of a frame - adding, removing, resizing, rearranging text objects and graphic objects at will - as if it were a blank page environment. So, there have been few reports of problems in this area.
    The main reliable anchored-frame solution for this particular problem is to create and revise the content outside of any frame, then group, select, and copy the composite object and paste it at the cursor insertion point, or save it as a separate ID file and place it as an anchored object.
    Perhaps you've already explored using an unstroked table for this particular need. The baselines of text in your example seem to be aligned across the horizontal rows, and the divider lines also seem aligned on horizontal rows. The divider lines could be created by several means - underlines in cells, graphic lines in anchored frames in cells, or horizontal cell rulings.
    The whole arrangement requires painstaking attention no matter how it's constructed, so the fussiness of working with a table wouldn't seem to add something that might not be needed with a different method. Because tables can break across frames, you'd need to set all rows to keep together.
    Again, I strongly suggest formally reporting this quirk as a bug to be fixed and/or a feature request.
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • After unlink or unthread the last text frame, it still points to the old story

    Hi,
    I used 'kTextUnlinkCmdBoss' to unlink the last text frame from the thread, however, after the command is processed if I access the textModel of the box as follows it still points to the old model:
    InterfacePtr<IGeometry> srcgeometry(srcbox,UseDefaultIID());
    if(srcgeometry==NULL) break;
    InterfacePtr<IMultiColumnTextFrame> srctextframe(srcbox.GetDataBase(), Utils<IFrameUtils>()->GetTextFrameUID(srcgeometry), UseDefaultIID());
    if(srctextframe==NULL) break;
    InterfacePtr<ITextModel> srctextmodel(srctextframe->QueryTextModel());
    if(srctextmodel==NULL) break;
    Is there any way to force refresh the textModel info related with the text frame? Of course, if I checked the textModel later, it's properly assigned with new one, it's just problem of the info is not refreshed on the same execution cycle.
    Thanks,
    Doil

    Hi Dirk,
    Thanks for the response. I tried the following, however, it didn't work, it still returns the same result:
    InterfacePtr<IHierarchy> fh(thebox,UseDefaultIID());
    ASSERT(fh);
    if (!fh) {
    break;
    InterfacePtr<IHierarchy> multiColumnItemHierarchy(fh->QueryChild(0));
    ASSERT(multiColumnItemHierarchy);
    if (!multiColumnItemHierarchy) {
    break;
    InterfacePtr<IMultiColumnTextFrame> mctf(multiColumnItemHierarchy, UseDefaultIID());
    ASSERT(mctf);
    if (! mctf) {
    break;
    UID storyUID = mctf->GetTextModelUID();

  • Make transparent text in after effects without track mattes

    Hi, I would like to make some trasparent text where one could see the video underneath the text.  I am using several videos that I have positioned and edited already in Premiere Pro CS6, and I would like to import a video file with the transparent text After Effects into Premiere Pro.  The reason I want to use AF instead of the title maker in PP is that the text expands 4000% and I cannot make text that large in Premiere Pro.  Any advice is appreciated.
    thank you,
    Robert
    After Effects CS6
    Premiere Pro CS6

    I do not want to use a track matte because I have multiple videos underneath the text which are already edited nicely.  If there is a workaround without track mattes, I would appreciate any advice on doing that.  Thank you.

  • How to fit frame to content when content contains anchored text box?

    Hi there
    I am creating a series of inline text frames within a text frame. Each of these inline frames contains text which includes an anchored text frame. If I tell my inline frames to fit to content they seem to ignore the anchored frames contained therein. Is there any way I can get them to consider the anchored frames they contain when they fit to content?
    I tried checking the geometric bounds of my anchored frame before and after its parent frame has fitted to content. Even when there has been no change in position the bounds after fitting to content seem to give numbers way off. I thought I might be able to reset the geometric bounds of the containing frame manually if the anchored frame therein had moved with the fit frame to content.
    Here is a snippet of my code:
    var anchoredBounds = anchoredFrame.geometricBounds;
    mainFrame.fit(FitOptions.FRAME_TO_CONTENT);
    mainFrame.texts.item(0).recompose;
    var newAnchoredBounds = anchoredFrame.geometricBounds;
    alert(anchoredBounds[0] + "; " + newAnchoredBounds[0]);
    So “mainFrame” is the text frame containing text and the anchored frame, “anchoredFrame”. “anchoredBounds[0]” seems to correlate with the top edge of the frame when I check it manually after the script has finished (when it hasn’t move with the fit to content). “newAnchorBounds[0]”, however, always gives numbers that are way off every time. Any ideas why this would be the case?
    And most importantly, can anyone suggest how I can get my “mainFrame” to consider the “anchoredFrame” contained in it when it fits to content?
    I’m using CS4 on a PC. Let me know if it would help to post more code, or if I haven’t explained myself clearly enough.

    Is there any way I can get them to consider the anchored frames they contain when they fit to content?
    @Graham – as long as ALL the anchored text frames are "inline" text frames,
    mainFrame.fit(FitOptions.FRAME_TO_CONTENT);
    should work as expected or at least sort of *.
    Without calculating anything at all.
    Just tested in InDesign CS5.5 (v7.5.3).
    Could it be that CS4 will fail on that?
    Of course, you can only rely on this, if the main text frame contains any "real" text at all. Not only the  special characters representations of the "inline" text frames. In that case the fit() method will do nothing at all.
    * it's debatable, if the fit() method yields desirable output.
    It depends on your expectations.
    See the following examples:
    1. Case 1:
    Text frame before fitting:
    2. Case 1:
    After fitting with the UI command, context menu: "fit frame to contents"
    (note the gap between the last baseline of the text and the text frame; note also  the new width)
    Is that the result you would expect? I guess not.
    3. Case 1:
    After fitting  programmatically with myTextframe.fit(FitOptions.FRAME_TO_CONTENT);
    4. Case 2:
    Before fitting
    same text frame as in #1, but different height
    5. Case 2:
    After fitting with the UI command, context menu: "fit frame to contents"
    A different width than in #2 and a gap at the bottom of the text frame!
    Not the desired result, I'd say…
    6. Case 2:
    After fitting  programmatically with myTextframe.fit(FitOptions.FRAME_TO_CONTENT);
    Same result as in #3
    So with scripting we could, at least, get consistent results.
    Of course, you could get the same results in the UI, if you double-click on the bottom center control point…
    Maybe it helps, if you are showing us some screen grabs:
    1. Your starting point
    2. The desired result
    Uwe

  • CS4 hungs after aborting text frame creation within command interceptor

    Hi all
    I´m using a command interceptor for cancelling any geometry modification to a locked -custom lock- document.
    The interceptor gets kNewPageItemCmdBoss commands and, if the document is "locked", aborts them by returning a ICommandInterceptor::kCmdHandled result. This works fine for image rectangles, lines, etc.Their creation gets canceled.
    The problem is with text frames; after aborting them, InDesign CS4 hungs.
    I guess there is another object creation related, that gets orphaned, but don´t know which. Any idea?
    Best regards

    I finally solved the problem.  Textframe creation involves many commands, and can´t be aborted in the  kNewPageItemCmdBoss phase. I used kNewFrameCmdBoss, and setting global  error within this change works, using only a document observer, without needing a command interceptor
    Regards

  • IDCS3 When adding a document to a book, the text frame of the subsequent documents in the book moves

    Hi
    I've been working on a 700 or so book containing about 115 documents. These book's documents consist of a main text frame and I've been adding them gradually to the book document. The problem is whenever I add a document to the book or change the order of the documents, the main text frame of the subsequent documents in the book moves on its x axis even when it is locked. To correct the problem I've been moving them to their original place manually but this is a real chaos. Moreover I've noticed that not every text frame in a document moves but most of them does. I don't know what is causing the problem so either don't know how to solve it. I would like to prevent this from happening again cause I've got to add more documents to the book. Can anybody help?

    truncated mail continuation...
    (getDocument is exactly the same as in XML Database
    Developer's Guide - Oracle XML DB Release 2 (9.2))
    I get:
    SQL> INSERT INTO items VALUES (XMLTYPE(getDocument('items1.xml')));
    INSERT INTO items VALUES (XMLTYPE(getDocument('items1.xml')))
    ERROR at line 1:
    ORA-19007: Schema and element do not match
    Do you know which is the problem?
    I have proved changing the headers of the xml document
    and schema in severals way, but it doesn't work.
    Could be a problem with Oracle configuration?
    Thanks in advance,
    Mario Barcala

  • Anchored text boxes in XML

    I am wondering if anyone can help..
    I have created a structured indesign document (structured as in tagged for XML import). My problem is the first tagged object is an anchored text box which needs to sit on top of the second anchored tagged picture box. This layout is fine before importing the xml file. however after import the first anchored text box disappears and is replaced by normal text.. is there anyway to stop the box disappearing after import?
    any help would be greatly appreciated. I am using Indesign CS4 on a PC.

    Not that I know of off the top of my head. I'd suggest that, if you are allowed to do so, gin up an example INDD file, put it up on YouSendIt or a similar service, and invite the forum-ites to take a crack at it. Probably, one of us can come up with some clever method to avoid the need for anchored frames at all; I can't visualize why you would need to do so, and my fair-to-middlin' knowledge of XML export and import in ID makes me think that you can't flow text into and out of anchored text frames with XML. However, I will dig into it and see if I can't confirm or deny this hunch of mine.

  • In Design CS 6 crashing on resizing a text frame

    Some specifics:
    2 MACs networked via cable directly connecting the two.
    one MAC Pro 12GB RAM 10.6 OS
    one Imac 16GB RAM 10.8 OS (this replaced another MAC Pro that we were told had a bad RAM controller when we started experiencing this odd crashing)
    I have built a 10 page document that is part of a book. This document has been working fine until today. I saved the file yesterday and came back to it today to do some more work. Everything was going along as expected until I came to a particular text frame. Every time I try to resize or delete this text frame ID crashes. I've also noticed that if I add a text frame after (next page) the problematic text frame ID crashes. Recovery says it's recovering but the file crashes in the same way after the file is reopened. I can move all the other text frames around and do other things, but when I adjust that text frame ... crash.
    If I move the problem text frame off the page, onto the workspace I can do anything I want to the frame, but, if I move it back to the page where it came and adjust it ID crashes.
    This (mysterious corruption) has happened many times over the last year or two. Not always a text frame, deleting something, moving something, small things you wouldn't think would crash the app. I think the problems started with either 5 or 5.5 ... or possibly an OS update ... or both. We've used ID for five / six years now and this issue wasn't happening before 5 or 5.5.
    Exporting to IDML results in the same problem. (clarification: I can make the adjustments to the text frame in 5.5 to the IDML file. Saved back to an INDD file, open in 6, and the problem returns.)
    Resetting prefs doesn't change this behavior with the corrupt file.
    Problem file crashes ID on both computers.
    Thoughts? Questions?

    Is the 8.0.1 patch for ID installed?
    Have you tried Remove minor corruption by exporting?
    If that doesn't work (and I suspect it won't, but do try it), you mentioned you can move the frame to the pasteboard. Can you delete it from there? How about if you unlink it from the text thread (click the outport of the frame before it, then clikc inside that same frame to break the thread at that point). If you can delete the frame you should be able to add a new frame and relink if the frame iteslf is corrupt. If that doesn't work, try exporting the story to InDesign Tagged Text, then re-import it replacing what's there.

  • How to align/flush completely to the right margin or text frame?

    Is this possible? I'm trying to align the Standing Head to the edge of the frame.

    Is the colored background simply the color of your text frame? If so, no, you cannot move text out at the right hand side (on the left side, inserting a thin space before the first character and using a negative kern value works -- but not on the right side). Optical Margin Alignment does something, but it appears to move the right-aligned text to the left instead ...
    If you want to be able to apply a paragraph style and forget about it, you will have to separate the background color and the text frame itself. Then you can make the text frame just a bit wider, and set the right margin of the "regular" text to that same bit.
    You can also put the header into a separate frame and make it an anchored object. More work, harder to adjust, same effect -- but you don't need to resize your text frame.

  • How to create, place, format and paste the clipboard contents into a text frame

    I am new to scripting and need help. I have an existing Indesign document. I need to be able to create a text frame on my current page, the width of my margins with the top of the text frame at the top margin and 1" in height, then format it to be 1-column, and then paste the clipboard contents into it and tag the text with a particular paragraph style. I am using Indesign CS4 on a mac, if that makes any difference. Thanks for any help.

    May this will help you. It will create an anchored object with a text what you desired, with object style. You should create an object style before with the x and y co ordinates. You can choose either para style or character style.
    var the_document = app.documents.item(0);
    // Create a list of paragraph styles
    var list_of_paragraph_styles = the_document.paragraphStyles.everyItem().name;
    // Create a list of character styles
    var list_of_character_styles = the_document.characterStyles.everyItem().name;
    // Create a list of object styles
    var list_of_object_styles = the_document.objectStyles.everyItem().name;
    // Make dialog box for selecting the styles
    var the_dialog = app.dialogs.add({name:"Create anchored text frames"});
    with(the_dialog.dialogColumns.add()){
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Make the anchored frames from ..."});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"This character style:"});
    var find_cstyle = dropdowns.add({stringList:list_of_character_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Or this paragraph style:"});
    var find_pstyle = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Leave one dropdown unchanged!"});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Delete matches?"});
    var delete_refs = dropdowns.add({stringList:["Yes","No"], selectedIndex:0});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Anchored text frame settings:"});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Object style:"});
    var anchor_style = dropdowns.add({stringList:list_of_object_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame width:"});
    var anchor_width = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame height:"});
    var anchor_height = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    the_dialog.show();
    // Define the selected styles
    var real_find_cstyle = the_document.characterStyles.item(find_cstyle.selectedIndex);
    var real_find_pstyle = the_document.paragraphStyles.item(find_pstyle.selectedIndex);
    var real_anchor_style = the_document.objectStyles.item(anchor_style.selectedIndex);
    // Check if a style is selected
    if(find_cstyle.selectedIndex != 0 || find_pstyle.selectedIndex != 0) {
    // Define whether to search for character styles or paragraph styles
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    if(find_cstyle.selectedIndex != 0) {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedCharacterStyle = real_find_cstyle;
    } else {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = real_find_pstyle;
    app.findGrepPreferences.findWhat = "^";
    // Search the document
    var found_items = the_document.findGrep();
    myCounter = found_items.length-1;
    do {
    // Select and copy the found text
    var current_item = found_items[myCounter];
    if(find_pstyle.selectedIndex != 0) {
    var found_text = current_item.paragraphs.firstItem();
    var insertion_character = (found_text.characters.lastItem().index) + 1;
    var check_insertion_character = insertion_character + 1;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    } else {
    var found_text = current_item;
    var insertion_character = (found_text.characters.lastItem().index) + 2;
    var check_insertion_character = insertion_character;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    // Make text frame from selection
    try {
    app.selection = the_story.insertionPoints[check_insertion_character];
    app.selection = the_story.insertionPoints[insertion_character];
    } catch(err) {
    app.selection = the_story.insertionPoints[alt_insertion_character];
    var the_anchored_frame = app.selection[0].textFrames.add({geometricBounds:["0","0",anchor_height.editContents,anch or_width.editContents],anchoredObjectSettings:{anchoredPosition: AnchorPosition.ANCHORED}});
    app.selection = the_anchored_frame.insertionPoints[0];
    app.paste();
    // Apply the object style now to "force apply" paragraph style set in the object style
    if(anchor_style.selectedIndex != 0) {
    the_anchored_frame.appliedObjectStyle = real_anchor_style;
    myCounter--;
    } while (myCounter >= 0);
    } else {
    alert("No styles selected!");

  • Change margins... how to update text frames to match?

    Hi there,
    I have an 80-some-odd page document, which I needed to change the margins on. No problem there. Now, however, I would like to update the 80-some-odd text frames to match the new margins. No, I did not select "Master Text Frame" when I created the document, because I'm new to the program and I'm generally unintelligent.
    Is there a way to accomplish this?
    Alternately, if I now create a new document (with Master Text Frame selected), can I 'Place' the old document into it?
    Thanks a lot! Someone out there will earn my cyber-praise with a response.

    First point...not using a master text frame is a good move. There's simply no need for it most instances and would do you no good here.
    Use the Layout Adjustment command. Layout>Layout Adjustment>Enable Layout Adjustment. If your text frames are touching the margins, they should adjust accordingly.
    Bob

  • Set the height of an anchored (inline) frame

    Hi
    I have a text frame with an inlined (anchored) text frame. Now I want to change the height of the inlined text frame.
    How can I do that?
    I try it with IPageUtils::DoSetHeight. If I do this, the height is set but the anchored box is not at the same position like before. She is moved upward. What could be wrong?
    Thanks for the support.
    Greetz
    Hans

    Hi
    I have a text frame with an inlined (anchored) text frame. Now I want to change the height of the inlined text frame.
    How can I do that?
    I try it with IPageUtils::DoSetHeight. If I do this, the height is set but the anchored box is not at the same position like before. She is moved upward. What could be wrong?
    Thanks for the support.
    Greetz
    Hans

  • Type tool not making text frame question

    The type tool no longer makes a text frame when dragged in document. It does make text frame on clipboard. How do I enable type tool to make text frame? Using CS5 and Windows 7

    I suspect he means pasteboard...
    Is the layer locked? Can you draw other types of frames?

Maybe you are looking for