Text frames to use flow like InDesign

That would be a nice addition.  Thanks!

hi sundar,
i tried,,
var mydoc=app.documents.item(0);
var mytexts=mydoc.stories.everyItem().paragraphs.everyItem().getElements( );
for (i=0;i<mytexts.length;i++) {
    var mytext=mytexts[i];
    if (mytext.fillColor.name  == "blue") {
   mytext.parentTextFrames.everyItem().itemLayer=mydoc.layers.item("blue layer");
but the error message is.  mytext.parentTextFrames.everyItem is not a function. highlighting the above boldened text. can you help on this

Similar Messages

  • How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or

    The situation:
    I want to use basetext font, but some of the glyphs are missing in it, and are highlighted with pink boxes. common font [stix, etc.] have much more glyphs than basetext font. I can apply common font [stix, etc.]manually for each of the missing glyphs or insert two character and use kerning set it up, but it is tedious.
    Question:
    How find the missing glyph using javascript [like indesign preflight], and replace same glyph available font or insert two character and use kerning set it up?
    Any one know how to do this?
    Thanks in Advance,
    ~Jack

    Try Peter kehrl's script
    http://www.kahrel.plus.com/indesign/missing_glyphs.jsx

  • Non-printing text frame for use in exported pdf

    Hi everyone,
    I have a couple of words in a text frame and I've set the text frame to be be non-printing in the attributes panel. I was hoping that by doing this, that when I exported to pd, it would show in the pdf file but not print, but as it happens it doesn't show at all in the pdf.
    Is there a way to mark a text frame as non-printing in Indesign but still have it show in the pdf and not print in the pdf?
    Would be grateful for any advice.

    It might work to put it on it's own layer, mark the layer as non-printing, so it won't print from ID, but export a layered PDF (you might have to include non-printing layers to get it inthe PDF, but I don't think so). In Acrobat pro you can then change the layer properties to visible, but non-printing. It's a real pain to do this.

  • Replace text with image using Applescript in InDesign CS5

    Hi to everyone, i'm looking for some suggestions to resolve my problem.
    I've to replace some strings with jpeg images stored on my pc
    Here is the code to replace two strings with the new ones.
    tell application "Adobe InDesign CS5"
              set myDocument to active document
              set myPage to page 1 of myDocument
              set stringsToReplace to {"111", "222"}
      repeat with iterator from 1 to (count stringsToReplace)
           set find text preferences to nothing
           set change text preferences to nothing
           set myFoundItems to nothing
           set element to item iterator of stringsToReplace
          if element is "111" then
               set find what of find text preferences to "111"
               set change to of change text preferences to "ONE"
               set myFoundItems to change text
               display dialog ("Found : " & (count myFoundItems) & " occurences of " & element)
          else if element is "222" then
               set find what of find text preferences to "222"
               set change to of change text preferences to "TWO"
               set myFoundItems to change text
               display dialog ("Found : " & (count myFoundItems) & " occurences of " & element)
          end if
              end repeat
      set find text preferences to nothing
      set change text preferences to nothing
    end tell
    Can you hel me?
    Thanks in advance.

    Hello, I have a couple of questions for you… How come you have strings in text frames… Would you not be better off using labels for this…? ( thats how I would do this ). Off the top of my head I think you will need to remove any text content from the frame to be able to change it's content type… only then will you be able to place a graphic… How are you associating your strings with the required image files… Do you have this in some extenal file Excel or FMP.

  • InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

    I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

    You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
    var doc = app.activeDocument;
    var textFrame =  app.selection[0];
    var rectangles = textFrame.texts[0].rectangles;
    if (rectangles.length > 0) {
         for (var i=0; i < rectangles.length; i++) {
              rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
    However, there is a better approach:
    Step 1
    Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
    Step 2
    Import the xml file -- the placeholders are replaced with data from the 1st xml element
    Step 3
    Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
    Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
    Hope this helps.
    Kasyan

  • Strange behaviour when placing text frame on top of image

    Hi,
    Win XP, FM 8.04
    I have a front cover that consists of a TIF image that bleeds off the page. On top of that image I want to put a text frame with the book title.
    The strange thing is that when I create the text frame and use the toolbar buttons to nudge it down on the page, the text (but not the frame) suddenly jumps to a totally different place way down on the page, despite only nudging it, say, 10 mm.
    Any ideas why this is happening?
    /Mats

    Hi,
    Partly solved:
    After some tests, it seems FM does not like when you try to move a text frame over a transparent area in an image. The image in question was made by importing a PDF into Photoshop, then saving as TIF. Since the PDF contained an area that was had full transparency in InDesign (i.e. "Paper"), that area was also in the TIF image.
    The strange behaviour starts exactly at the border where the transparency starts. In non-transparent areas, there is no problem.
    Seems like a bug.
    /Mats

  • Two separate text frames with own toc

    How do I set up two separate text frames side-by-side as two columns, and create a separate table of contents for each?
    I need to create a two-language document with English on the left and a translated language on the right. Each language will also have separate illustrations and cross references to them in the text. Basically, I need to create two manuals in a single document.
    I'm doing this with Frame 7.1 if that makes any difference.
    Thanks in advance for any suggestions.

    To create the two separate text frames, simply use the Text Frame graphic tool on the Master Pages to draw tthe second frame. You will need to give the "Flow"  for this text frame a unique name. By default FM uses "A" for a flow name, but you can change this to be the name of the language.
    See: http://help.adobe.com/en_US/framemaker/using/WSd817046a44e105e21e63e3d11ab7f74e4d-7fb8.htm l (Set up a multi-flow document)
    However, I would recommend that you first create separate documents for the English and translated versions. Then import the contents of those documents by reference (i.e. create text insets) in your combined document.
    Use the combined document as your publishing vessel and the separate documents as your editing/working environment.
    The only gotcha would be if you need to maintain side-by-side fidelity with each paragraph in the English and translated version. If so, then you should import by copy and then you'll hjave to manually adjust the paragraph spacings to stay lined up.

  • How do you place text in a text frame, but with autoflow?

    I woudl like to place a tagged text file on a text frame rather than on a page, so i can put the contents into a pre-defined text frame, but still have the number of pages extended unitl the entire tagged text content is show.
    I can get autoflow with  Page place() function, which takes an option to turn on autoflow. However, this creates a new text frame, and I'd like the tagged text to go into a particular text frame. Unfortunately, the TextFrame place function does not seem to have an autoflow setting, that will duplicate the current page and flow text into the new page.
    Thanks,
      Read Roberts

    Hm,
    I would check for overflow, if then, create the new page, create your 'particular textFrame', set nextTextFrame of tf1 to your 'particular textFrame'
    Hans-Gerd Claßen

  • XML Text Frame?

    how to create a text frame object importing/converting xml (application)?
    Thanks

    Hello,
    when doing structured work in FM you can do this either by using xml files or fm files (with structure in them).
    As soon as you use .fm-files rather than xml files, you can do the following:
    1. insert an element that inserts an image (=which is declared in the EDD)
    2. after having inserted the image, delete it but leave the empty frame.
    3. into this frame, put a text frame and into this text frame, import whatever you like.
    Warning:
    This is only possible with .fm files. With .xml-files it is not possible. So if you plan to move your .fm-files to .xml files you will get errors.
    Also, as far as I can see, there is no validation inside such frames. This can be good (because you can insert unstructured text) or bad (as there is no validation).
    Generally speaking, I know of no standard xml-dialect which hase something as a "frame"-Element. It is true that you can have FM interpret elements as Frames, but this is an FM specific thing.
    So, if you want to do this, this also means that you have to build your own dialect or extend an existing one, which means that you bind yourself to non-standard.
    You might try to think about why you want to do this in the first place. If you´d like to do it, because you want to include XML or MIF with pictures and their descriptions ("1: screw; 2: switch"...), you could do an AI or EPS that contains the graphics and the text, or you could import the graphics normally and put the descriptions underneath in a normal table.
    Hope this helps,
    Franz.
    [SYSTEC - the document processing company.]
    http://www.systec-gmbh.com/sites/toolbox.php
    http://www.systec-gmbh.com/sites/ditapack.php
    http://www.systec-gmbh.com/sites/3dpack.php
    |Schreiberhauer Str. 5 |D-90475 Nuernberg - Germany
    |Phone +49 911 998955-625 |Fax +49 911 998955-663
    |e-Mail [email protected] |Internet: www.systec-gmbh.com
    |Redaction, Translation: www.systec-td.de |ePublishing, Solutions: www.systec-it.de
    |CEO: Dipl.-Ing. (FH) Georg Eck, Dipl.-Btw. (FH) Manfred Papp
    |Amtsgericht Nürnberg HRB 9369
    |Umsatzsteuer-Identifikationsnummer DE 133560519

  • How do we work with Text Frames in a structured xml template

    Hi ,
    I am working with structured template using Framemaker 7.2. I need to add Text Frame in the structured template. Could you please tell me how do I add text frame with the body page of a strcutred template.
    Thanks
    Manas.

    Hi Manas,
    Text frames work the same whether the template is structured or unstructured. The only thing you should be aware of is that a text frame creates another flow, which can be structured or unstructured. In either case, you will not be able to export its contents to XML. You didn't mention XML specifically, just thought I would note that.
    Do you need general instructions on inserting a text frame? If so, I think the user guide should have that.
    Russ

  • [CS4, JS] Text frame geometricBounds undefined

    Hello,
    I'm searching through all the paragraphs in a document for paragraphs with a particular paragraph style. When it's found, the script takes the geometric bounds of the parent text frame and uses them later. However, it doesn't work in some documents because the geometric bounds of text frames are undefined and cause an error. The error causing documents were originally PageMaker documents than have been opened through InDesign as saved as .indd. Documents created in InDesign run the script fine.
    Anyway, here's the part of the script that's causing problems (I've tried iterating backwards and forwards, but to no avail):
    myDocStories = app.activeDocument.stories
    for (var i = myDocStories.length - 1; i >= 0; i--){
    for (var j = myDocStories[i].paragraphs.length - 1; i >= 0; i--){
    // Check each paragraph in active document for the chosen find paragraph or object style
    if(myDocStories[i].paragraphs[j].appliedParagraphStyle.name == myFindParVal){
    var myBounds = "";
    myBounds = myDocStories[i].paragraphs[j].parentTextFrames[0].geometricBounds;
    The weird thing is, if I select a paragraph that's found by the script and run app.selection[0].parentTextFrames[0].geometricBounds in the console...it tells me the bounds of the text frame.
    I have literally no idea why it's doing this, but I suspect it's something to do with the fact that they used to be PageMaker files...

    You are brilliant. A quick rejig of when the bounds are taken and it's fine again.
    Thanks!

  • Its possible to change text frame contents inside group...???

    Hi Everyone,
    I'm newbibe to Indesign forums.
    I had grouped image placed on rectangle and text frame. now i need change text frame content using indesign Javascript
    Its possible to change text frame contents inside group..?
    -yajiv

    Hi Siraj,
    Thank you very much for your assistance...
    Actually I need swap both group of image and text frame to another group of image box and text frame.
    I wrote code use of you advice and i struct with errors. can you rectify this code if possible...
    Thanks in advance
    -yajiv..
    Code:
      if (app.documents.length != 0){
         if (app.selection.length != 1){
              if(app.selection[0].constructor.name == "Group"){
                   app.select(app.selection[0].allGraphics[0]);
                   var myGr1 = app.selection[0].itemLink;
                   app.select(app.selection[0].textFrames[0]);
                   var selText1 =app.selection[0].contents; 
         if(app.selection[1].constructor.name == "Group"){
              app.select(app.selection[1].allGraphics[0]);
              var myLink2 = File(app.selection[1].graphics[0].itemLink.filePath);
              app.select(app.selection[1].textFrames[0]);
              var selText2 =app.selection[0].contents; 
              myGr1.relink (myLink2);
              myGr1.update();
              myGr2.relink (myLink1);
              myGr2.update();
              app.selection[0].contents=selText2;
              app.selection[1].contents=selText1;
         else{alert("Please select the two selection....!!!");}

  • Javascript, Text frame - Flip Horizontal

    I just don't understand javascript very well yet.
    I want to flip horizontally, a text frame, on it's center/in place. (Yes, I want the text to be wrong reading.)
    the name of the text frame is smallTXXX and the indesign document will be open at the time the script is run. (I need to add this to an existing javascript.)
    Thank you, I can't figure out how to piece this one together.

    var doc = app.activeDocument;
    var tf = doc .textFrames.item("smallTXXX");
    tf.flipItem(Flip.HORIZONTAL, AnchorPoint.CENTER_ANCHOR);

  • 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?

  • How to enable the script label of a text frames in indesign using applescript

    hi all,
    am using Indesign CS2 with applescript..
    Using script I have to open a template in indesign and flow the word document into it...
    I can able to flow the word document into the template using "Place" command..but script labels of the text frames gets disabled...
    I need the script labels to be enabled...
    can anybody help me
    thanks in advance

    Script labels can't be disabled, so I'm not sure what your problem is -- perhaps seeing some code could help. Could it be that you're referencing a page item by label, but it is not responding because the item is part of a group?
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

Maybe you are looking for

  • 12 inch or 15 inch Powerbook?

    Some general advice/guidance here would be much appreciated. Having sold some gadgets on ebay over the past 2 weeks I now have about £500 to spend and I want to get either a 12 inch or 15 inch Powerbook, mainly for taking out and about for email and

  • Can we declare trigger in package

    Hi Can we declare trigger in package specification and body of trigger in package body. If so just give me the syntax. Thanks

  • Uninstalling Aperture 2.1.4 from OS X 10.6.2

    I have recently bought Adobe Photoshop and would now like to uninstall Aperture 2.1.4 from my Macbook Pro which is running OS X 10.6.2. However I want to make sure that in doing so I don't risk losing any of my photos. I'm sorry if this might sound a

  • RADIUS Group SACL and OD Groups - Nevermind

    I am attempting to limit RADIUS authentication/authorization to members of a group.  In Services I select Only Allow Users and Groups Below and bring up the group selection window.  This window only shows groups in /Local/Default.  If I switch to Use

  • Downloading pdf reader, stops, Error 1500

    I'm trying to download and run Adobe pdf reader V10.  New PC, Windows 8.  Gets almost through download, Error 1500 Another Installation in Progress.  Restarted PC, retried, same result.  Checked files, no Adobe folder, no s/w on PC.