Help about text frame

Hi,everybody,
I create a text frame in indesign and there are some texts, tables and pictures in it. I want to write some codes to treat each item in the text frame, can anybody tell me how to do that? especially to get the picture item in the text frame?
Thanks!!!

See programming guide, page 374 ...
Dirk

Similar Messages

  • Help: edit text frame?

    Hi
    I'm new to Indesign software and need to edit a workbook created in Indesign by my graphic designer. The document is 98 pages long and on the first 2 pages I can edit text using the i-bar text tool. Yet, when I click on text tool to edit the rest of the pages, the i-bar gets a box around it (like to create a new text frame) and it won't allow me to edit the text. I've checked if layers were marked - nothing obvious. Any ideas on how to fix this without having to annoy my graphic designer with this (she's on maternity leave).
    cheers
    bron

    Hi Salah and Peter ... I appreciate your responses and so quick ... yeap, I'm starting to see what you were both saying - it's very helpful thanks so much.

  • Hi, please help about text and divided/summed cells

    Here's my problem: I need that the text in a cell exceeds the right border of it, and this work ok by default.
    But when you sum or divide even only a pair of cells, in all the cells of that column the text is forced into the borders.
    I need to make a sheet of my guests (I work in a hotel), and the plan is this:
    - every column is a day of the calendar
    - every room has a row, to text in the Name of the guest and some useful info about the room type, a different color for different travel agency etc. Note that for me is very useful to read easily that info, and so the fact that the text goes in the next cells is a must have.
    For the next season I was managing to complete this registry adding a new row for each room, where to put in some numerical info, for doing sums of the people I have in day per day ect.
    So I was plannig to divide every cell of the second row in two cells, one for the adults in the room, one for the kids, in order to have the sum.
    But when I had the second row and divide the cells the text in the upper row is forced into the cell, and also all the text in that column.
    Anyone who can help me?
    Thank you in advance,
    Stefano

    Here's an example, with three different ways to shot the daily total.
    Totals for Jan 1 are shown in the three footer rows. Each is independent of the others, and only one would be used in practice.
    Form A is a simple sum of the column: =SUM(B)
    Form B separates the integer and fractional parts of the total, then recombines them into a text string:
    =INT(SUM(B))&"A "&ROUND(100*(SUM(B)-INT(SUM(B))),0)&"C"
    Form C does a similar separation, but treats the SUM result as a text string:
    =LEFT(SUM(B),LEN(SUM(B))-3)&"A "&RIGHT(SUM(B),2)&"C"
    Note that the daily counts are entered as # of adults, decimal, # of children (using two digits)
    Formulas will accommodate any number of adults, and up to 99 children (total). For a higher total, revisions to the entry method (one more digit after the decimal—2.001 in place of 2.01) and to Form B (replace 100 with 1000) OR Form C formulas (replace SUM(B),2 with SUM(B),3 ).
    Regards,
    Barry

  • Help about count character number in a text frame

    Hi, all
    i have a question about how to get the number of character in a text frame. In fact the problem is if there is a table or an image in the text frame, the number of character includes the text in the table.
    Can somebody tell me how to count just the number of character of the text .
    Thanks in advance!!

    Hi! All
    On the top of the Toolbox of INDesign CS3, there are two arrows <>, when one clicks it, it will either
    1. rearrange all buttons in to one column or from one column to two columns
    2. It will change it to horizontal if it is in vertical status.
    What are that two arrows called? I mean what name they are. Thanks
    Regards,
    Z

  • Polulate Text frames with XML content - PLEASE help me.

    Hi guys,
    I'm trying to import some xml data to an indesign file. Here are the steps I'm doing:
    1- create new document
    2- create master page
    3- create empty text fields in the master to be tagged
    4- import tags from xml
    5- import xml
    then it simply don't auto populate the text fields wiith the xml content.
    I've already spent about 10 hours trying to figure out what can be the problem...
    My structure in indesign (BEFORE importing XML):
    businesscards
    Card
    employeeName
    employeePosition
    employeeAddressln1
    employeeAddressln2
    employeePhone
    employeeEmail
    My structure in indesign (AFTER importing XML):
    businesscards
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    employeeName
    employeePosition
    employeeAddressln1
    employeeAddressln2
    employeePhone
    employeeEmail
    But it doesn't populate the text frames...
    I've already tried to write text in the text frames and tagged them, so I can see those colored brackets. But it doesn't work and makes a mess in the structure.
    Please, can someone help me, do you know a good step by step tutorial online? What am I doing wrong?
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <businesscards>
    <Card>
    <!-- contents of Suzan Reed -->
    <employeeName>Suzan Reed</employeeName>
    <employeePosition>Director of Marketing</employeePosition>
    <employeeAddressln1>506 SE 72nd Avenue</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97215</employeeAddressln2>
    <employeePhone>503-481-5858 direct</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Gabriel Powell -->
    <employeeName>Gabriel Powell</employeeName>
    <employeePosition>Senior Training Director</employeePosition>
    <employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
    <employeePhone>503-515-5404 direct</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Dale Erwing -->
    <employeeName>Dale Erwing</employeeName>
    <employeePosition>Trainer</employeePosition>
    <employeeAddressln1>5131 Buffalo Ave. #20</employeeAddressln1>
    <employeeAddressln2>Sherman Oaks, CA 91423</employeeAddressln2>
    <employeePhone>310-795-8943 cell</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Jim Conner -->
    <employeeName>Jim Conner</employeeName>
    <employeePosition>Trainer</employeePosition>
    <employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
    <employeePhone>503-515-2376 cell</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    </businesscards>
    Thanks in advance

    It worked! thanks ... But...
    But only if I don't apply to the Master when I apply to the master all the other cards have the same content as the first of the XML. :(
    Even when I try to create multiple pages (cards) with no Master page (too time consuming), I can't figure out a way of having the other cards filed with the remaining data of the XML. :(
    I don't want to drag the elements one by one to every single card (they are so many...)
    Is there a way of having the structure organized in a way to have indesign auto populate and auto create pages?
    thanks for any kind of advice.

  • Hello i need a help about script to export translatable text strings from ai files and import them back

    Hello i need a help about script to export translatable text strings from ai files and import them back after editing, thanks in advance

    Lanny -
    Thank you for taking the time to help with this problem. Can I just say however that as someone who has posted a first comment here and quite clearly never used a forum like this before, your comment unfortunately comes across as very excluding. It makes me feel there are a set of unwritten rules that I should know, and that I don't know them shows that the forum is not for me. In short, it's exactly the kind of response that stops people like me using forums like this.
    I'm sure it's not intended to be received like this and I am sure that the way you have responded is quite normal in the rules of a forum like this. However, it is not normal for those of us who aren't familiar with forums and who only encounter them when they have a genuine problem. This is why I hope it is helpful to respond in full.
    The reason I posted here is as follows. I was directed here by the apple support website. The original comment seemed to be the only one I could find which referred to my issue. As there is no obvious guidance on how to post on a forum like this it seemed perfectly reasonable to try and join in a conversation which might solve more than one problem at once.
    Bee's reply however is both helpful and warm. This could in fact be a template for how new members should be welcomed and inducted into the rules of the forum in a friendly and inclusive way. Thank you very much indeed Bee!

  • Help w. Text Frames in Master Page

    Hi
    I need to make a simple task, yet it seems impossible.
    I am making a large number of documents of the same type and stlye. Lets say, something like a diploma or a certificate. They all have the same design, and the only thing that is different in them is the text in the 2 text boxes each one of them has. Lets say if we follow the certificate example that on each card I must put in the same two text boxes - "the name of the person" and "the date". So I must set a nice master page with 2 text boxes that I can fill in for each card. Since the design may change, I need to be able to move the positions of the boxes from the master page after I have filled them. I must also be able to change the case, font and other text properties of each box. For example, I when I would have done 1000 certificates and filled in respectively 1000 names and dates of receiving and then I would decide that I must place the box with the name on a different position on the page and also change the text properties, say from Times New Roman to Georgia. And to do it from the master page or any other effective way without changing each certificate.
    So far, I managed to place the boxes on the master page, and I saw that I can overwrite the text in each certificate and still be able to move the position of all boxes from the master page. But I cannot find a way to change the text properties of all boxes.
    Thank you for your help!

    cecozzy wrote:
    Hi
    I need to make a simple task, yet it seems impossible.
    I am making a large number of documents of the same type and stlye. Lets say, something like a diploma or a certificate. They all have the same design, and the only thing that is different in them is the text in the 2 text boxes each one of them has. Lets say if we follow the certificate example that on each card I must put in the same two text boxes - "the name of the person" and "the date". So I must set a nice master page with 2 text boxes that I can fill in for each card. Since the design may change, I need to be able to move the positions of the boxes from the master page after I have filled them. I must also be able to change the case, font and other text properties of each box. For example, I when I would have done 1000 certificates and filled in respectively 1000 names and dates of receiving and then I would decide that I must place the box with the name on a different position on the page and also change the text properties, say from Times New Roman to Georgia. And to do it from the master page or any other effective way without changing each certificate.
    So far, I managed to place the boxes on the master page, and I saw that I can overwrite the text in each certificate and still be able to move the position of all boxes from the master page. But I cannot find a way to change the text properties of all boxes.
    Thank you for your help!
    With a long list of data items, you could consider using data merge. You'd need a template document; on its page create a placeholder text frame for each data item, like name and date, if they'll need individual positioning. Put a data placeholder in each frame. (It's also possible to insert multiple merge placeholders in a single frame.) You'd also need paragraph styles. If you have material that is the same on every page, put that on a master page in the merge template.
    Search Google for terms like "InDesign data merge tutorial," and similar phrases, without quotes, for details.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Question about an image in a text frame

    hi, everybody,<br />   i want to get the UIDRef to an image in a text frame and i used the codes below: <br /><br />UIDRef imageUIDRef = UIDRef(database, ownedList[i].fUID);;<br />                                                  InterfacePtr<IImageDataAccess> imageAccess(imageUIDRef, IID_IIMAGEDATAACCESS);<br /><br />(ownedList[i] is the list which contains the inline boss i want to get)<br /><br />here i always get an imageAccess  == nil, i think it is caused by the invalid imageUIDRef.<br /><br />can someone tell me how to resolve this??? or tell me another way to get the UIDRef to the image.<br /><br />Thanks a lot!!

    Oliver and Quake,
    during initial development, you frequently reach a method that just returns a UID, UIDList etc. That approach with IUnknown and debugclassutil is a way to determine the boss class of such a UID in clear text, for your further research.
    You would then go to the documentation (programming guide, API docs, samples) and find out about the typical use of this boss class. This mainly means you find the list of interfaces supported by the boss class.
    Open docs/references/sdkdocs/html/classIImageAttributes.html
    See at the bottom that this interface is on kImageItem and some strange others, but not on kInlineBoss.
    Open docs/references/sdkdocs/html/classkInlineBoss.html
    See it has an interface IHierarchy.
    If you do not find your desired interface on a boss class, that means you have to navigate to a different boss object.
    IHierarchy is an important interface for navigation in the page, because it implements the page item tree. So when the programming guide tells you to use IHierarchy to find an image from the inline boss, follow that path. On the other hand, it is just one interface of many, so you can't do that generalization that it fits all purposes. Even on the page tree you can encounter inlines, text on path that form a separate page item tree. To know the best path is called experience.
    In the release code you should not wire to specific ::GetClass values (as seen somewhere in this thread). Instead, you have an expectation of interfaces, and if an object supports them it is ok. Let's say I implement a new page item boss to support strange text flow or different image types. That page item will still have bounds. If you need bounds, find the appropriate interface and just use it. The same goes for attributes - if you deal with attributes in general and encounter a new attribute that supports the standard interfaces, just let it through.
    Oliver, I don't even know the boss class returned by IIDXMLElement->GetContentItem() for your specific purposes, but I would take the same approach. I use a plugin grown in the past 5 years that visits most interfaces and hooks into all notifications I ever encountered. This produces tons of output, but otherwise it is the same as with simple debugclassutil.
    An important issue is the preparation of test data. You just have to know that XML elements can point to many things in the InDesign universe, so tag a few tables, inlines, TOP, page items that use standoff and so forth, and see what you get. WYSIWYG at its best.
    Of course I could spend the whole day constructing examples, doing the analysis and copy-paste-post code. At least for me that is beyond the scope of the forum - maybe Adobe will some time replace Ken, otherwise there are the developer support cases. As I am not sponsored by paycheck, most of the time I try to keep my answers to short keywords or plain text - you will rarely see code from me. If you need that, there have been several postings on this list, and I am also available for consulting.
    Dirk

  • Help with adjusting layout, re-sizing text frames and images to fit new margin?

    i'm using InDesign CS5.5. I have a layout with several text frame boxes as well as some jpg and pdf images. I'm expanding the margin on one side and want to expand the text frames to utilize the extra space rather than just shift everything over. I've used the adjust layout script (which still requires some manual adjustment after) and obviously everything can be done manually but I'm looking for a more efficient solution. One challenge is that my pdf image needs to be re-sized separately to maintain scale of the image, the text frames just expand horizontally. What I would like is to have is a script that can do all of this at once, or is there a way to save the layout settings and apply them to my other documents? I have almost 300 documents to adjust... Can anyone suggest anything? Thanks.

    It could probably be modified to run on all open docs or a folder. You should ask over in scripting. InDesign Scripting

  • Set top and bottom inset spacing values in Text Frame Options via jsx script

    I am looking for a way to set the top and bottom inset spacing values only to 2 points in Text Frame Options via a .jsx scrpt.
    For years, I have used a script that sets Preferences, such as:
    with(app.storyPreferences){
        opticalMarginAlignment = false;
        opticalMarginSize = 12;                // pts
    I would like to add the code to this same script that would make Top = 0p2 and Bottom 0p2 but leave Left and Right as 0p0.
    Any help would be greatly appreciated.

    Here is the full .jsx file that we now use to set preferences.
    Ideally, this could be modified to include setting any text frame created to have 0p2 inset Top and Bottom, but 0p0 Left and Right:
    //ApplicationTextDefaults
    //An InDesign CS2 JavaScript
    //Sets the application text defaults, which will become the text defaults for all
    //new documents. Existing documents will remain unchanged.
    with(app.textDefaults){
        alignToBaseline = false;        // align to baseline grid
        try {
    //        appliedFont = app.fonts.item("Times New Roman");
            appliedFont = app.fonts.item("Helvetica");
        catch (e) {}
        try {
            fontStyle = "Medium";
        catch (e) {}
        autoleading = 100;
        balanceRaggedLines = false;
        baselineShift = 0;
        capitalization = Capitalization.normal;
        composer = "Adobe Paragraph Composer";
        desiredGlyphScaling = 100;
        desiredLetterSpacing = 0;
        desiredWordSpacing = 100;
        dropCapCharacters = 0;
        if (dropCapCharacters != 0) {
            dropCapLines = 3;
            //Assumes that the application has a default character style named "myDropCap"
            //dropCapStyle = app.characterStyles.item("myDropCap");
        fillColor = app.colors.item("Black");
        fillTint = 100;
        firstLineIndent = "0pt";
    //    firstLineIndent = "14pt";
        gridAlignFirstLineOnly = false;
        horizontalScale = 100;
        hyphenateAfterFirst = 3;
        hyphenateBeforeLast = 4;
        hyphenateCapitalizedWords = false;
        hyphenateLadderLimit = 1;
        hyphenateWordsLongerThan = 5;
        hyphenation = true;
        hyphenationZone = "3p";
        hyphenWeight = 9;
        justification = Justification.leftAlign;
        keepAllLinesTogether = false;
        keepLinesTogether = true;
        keepFirstLines = 2;
        keepLastLines = 2;
        keepWithNext = 0;
        kerningMethod = "Optical";
        kerningValue = 0;
        leading = 6.3;
    //    leading = 14;
        leftIndent = 0;
        ligatures = true;
        maximumGlyphScaling = 100;
        maximumLetterSpacing = 0;
        maximumWordSpacing = 160;
        minimumGlyphScaling = 100;
        minimumLetterSpacing = 0;
        minimumWordSpacing = 80;
        noBreak = false;
        otfContextualAlternate = true;
        otfDiscretionaryLigature = true;
        otfFigureStyle = OTFFigureStyle.proportionalOldstyle;
        otfFraction = true;
        otfHistorical = true;
        otfOrdinal = false;
        otfSlashedZero = true;
        otfSwash = false;
        otfTitling = false;
        overprintFill = false;
        overprintStroke = false;
        pointSize = 6.3;
    //    pointSize = 11;
        position = Position.normal;
        rightIndent = 0;
        ruleAbove = false;
        if(ruleAbove == true){
            ruleAboveColor = app.colors.item("Black");
            ruleAboveGapColor = app.swatches.item("None");
            ruleAboveGapOverprint = false;
            ruleAboveGapTint = 100;
            ruleAboveLeftIndent = 0;
            ruleAboveLineWeight = .25;
            ruleAboveOffset = 14;
            ruleAboveOverprint = false;
            ruleAboveRightIndent = 0;
            ruleAboveTint = 100;
            ruleAboveType = app.strokeStyles.item("Solid");
            ruleAboveWidth = RuleWidth.columnWidth;
        ruleBelow = false;
        if(ruleBelow == true){
            ruleBelowColor = app.colors.item("Black");
            ruleBelowGapColor = app.swatches.item("None");
            ruleBelowGapOverprint = false;
            ruleBelowGapTint = 100;
            ruleBelowLeftIndent = 0;
            ruleBelowLineWeight = .25;
            ruleBelowOffset = 0;
            ruleBelowOverprint = false;
            ruleBelowRightIndent = 0;
            ruleBelowTint = 100;
            ruleBelowType = app.strokeStyles.item("Solid");
            ruleBelowWidth = RuleWidth.columnWidth;
        singleWordJustification = SingleWordJustification.leftAlign;
        skew = 0;
        spaceAfter = 0;
        spaceBefore = 0;
        startParagraph = StartParagraph.anywhere;
        strikeThru = false;
        if(strikeThru == true){
            strikeThroughColor = app.colors.item("Black");
            strikeThroughGapColor = app.swatches.item("None");
            strikeThroughGapOverprint = false;
            strikeThroughGapTint = 100;
            strikeThroughOffset = 3;
            strikeThroughOverprint = false;
            strikeThroughTint = 100;
            strikeThroughType = app.strokeStyles.item("Solid");
            strikeThroughWeight = .25;
        strokeColor = app.swatches.item("None");
        strokeTint = 100;
        strokeWeight = 0;
        tracking = 0;
        underline = false;
        if(underline == true){
            underlineColor = app.colors.item("Black");
            underlineGapColor = app.swatches.item("None");
            underlineGapOverprint = false;
            underlineGapTint = 100;
            underlineOffset = 3;
            underlineOverprint = false;
            underlineTint = 100;
            underlineType = app.strokeStyles.item("Solid");
            underlineWeight = .25
        verticalScale = 100;
    //Units & Increments preference panel
    //Must do this to make sure our units that we set are in points. The vert and horiz
    //units that get set default to the current measurement unit. We set it to points
    //so we can be sure of the value. We'll reset it later to the desired setting.
    with(app.viewPreferences){
        horizontalMeasurementUnits = MeasurementUnits.points;    // Ruler Units, horizontal
        verticalMeasurementUnits = MeasurementUnits.points;        // Ruler Units, vertical
    //General preference panel
    with(app.generalPreferences){
        pageNumbering = PageNumberingOptions.section;    // Page Numbering, View
        toolTips = ToolTipOptions.normal;                    // Tool Tips
    // Not supported in CS4
    //    toolsPalette = ToolsPaletteOptions.doubleColumn;    // Floating Tool Palette
        completeFontDownloadGlyphLimit = 2000;                // Always Subset Fonts...
        try {
            //Wrapped in try/catch in case it is run with CS4 and earlier to avoid the error
            preventSelectingLockedItems = false;                // Needed for CS5+
        catch (e) {}
    //Type preference panel
    with (app.textEditingPreferences){
        tripleClickSelectsLine = true;    // Triple Click to Select a Line
        smartCutAndPaste = true;        // Adjust Spacing Automatically when Cutting and Pasting Words
        dragAndDropTextInLayout = false;    // Enable in Layout View
        allowDragAndDropTextInStory = true;    // Enable in Story Editor
    with(app.textPreferences){
        typographersQuotes = true;            // Use Typographer's Quotes
        useOpticalSize = true;                // Automatically Use Correct Optical Size
        scalingAdjustsText = true;            // Adjust Text Attributes when Scaling
        useParagraphLeading = false;    // Apply Leading to Entire Paragraphs
        linkTextFilesWhenImporting = false;    // Create Links when Placing Text and Spreadsheet Files
    // Missing following (Font Preview Size, Past All Information/Text Only)
    //Advanced Type preference panel
    with(app.textPreferences){
        superscriptSize = 58.3;                // Superscript, size
        superscriptPosition = 33.3;            // Superscript, position
        subscriptSize = 58.3;                // Subscript, size
        subscriptPosition = 33.3;            // Subscript, position
        smallCap = 70;                        // Smallcap
    with(app.imePreferences){
        inlineInput = false;                // Use Inline Input for Non-Latin Text
    //Composition preference panel
    with(app.textPreferences){
        highlightKeeps = false;                    // Keep Violations
        highlightHjViolations = false;            // H&J Violations
        highlightCustomSpacing = false;            // Custom Tracking/Kerning
        highlightSubstitutedFonts = true;    // Substituted Fonts
        highlightSubstitutedGlyphs = false;    // Substituted Glyphs
        justifyTextWraps = false;                // Justify Text Next to an Object
        abutTextToTextWrap = true;                // Skip by Leading
        zOrderTextWrap = false;                    // Text Wrap Only Affects Text Beneath
    //Units & Increments preference panel
    with(app.viewPreferences){
        rulerOrigin = RulerOrigin.spreadOrigin;                    // Ruler Units, origin
    //    These are set at the end of the script after all the changes have been made
    //    horizontalMeasurementUnits = MeasurementUnits.points;    // Ruler Units, horizontal
    //    verticalMeasurementUnits = MeasurementUnits.inches;        // Ruler Units, vertical
        pointsPerInch = 72;                    // Point/Pica Size, Points/Inch
        cursorKeyIncrement = 1;                // Keyboard Increment, Cursor Key
    with(app.textPreferences){
        baselineShiftKeyIncrement = 2;    // Keyboard Increment, Baseline Shift
        leadingKeyIncrement = 2;        // Keyboard Increment, Size/Leading
        kerningKeyIncrement = 20;            // Keyboard Increment, Kerning
    //Grids preference panel
    with(app.gridPreferences){
        baselineColor = UIColors.lightBlue;    // Baseline Grid, Color
        baselineStart = 48;                        // Baseline Grid, Start
        baselineDivision = 6;                    // Baseline Grid, Increment Every
        baselineViewThreshold = 50;                // Baseline Grid, View Threshold
        baselineGridRelativeOption = BaselineGridRelativeOption.topOfPageOfBaselineGridRelativeOption;    // Baseline Grid, Relative To
        gridColor = UIColors.lightGray;            // Document Grid, Color
        horizontalGridlineDivision = 12;    // Document Grid, Horizontal, Gridline Every
        horizontalGridSubdivision = 12;            // Document Grid, Horizontal, Subdivisions
        verticalGridlineDivision = 12;            // Document Gird, Vertical, Gridline Every
        verticalGridSubdivision = 12;            // Document Grid, Vertical, Subdivisions
        gridsInBack = true;                        // Grids in Back
        documentGridSnapto = false;                // snap to grid or not
        documentGridShown = false;                // show document grid
    //Guides & Pasteboard preference panel
    with(app.documentPreferences){
        marginGuideColor = UIColors.violet;                // Color, Margins
        columnGuideColor = UIColors.magenta;            // Color, Columns
    with(app.pasteboardPreferences){
        bleedGuideColor = UIColors.fiesta;                // Color, Bleed
        slugGuideColor = UIColors.gridBlue;                // Color, Slug
        previewBackgroundColor = UIColors.lightGray;    // Color, Preview Background
        minimumSpaceAboveAndBelow = 72;                    // Minimum Vertical Offset
    with(app.viewPreferences){
        guideSnaptoZone = 4;                            // Snap to Zone
    with(app.guidePreferences){
        guidesInBack = false;                            // Guides in Back
    //Dictionary preference panel
    with(app.dictionaryPreferences){
        composition = ComposeUsing.both;    // Hyphenatin Exceptions, Compose Using
        mergeUserDictionary = false;    // Merge User Dictionary into Document
        recomposeWhenChanged = true;    // Recompose All Stories When Modified
    // Missing (Lang, Hyph, Spelling, Double Quotes, Single Quotes)
    //Spelling preference panel
    with(app.spellPreferences){
        checkMisspelledWords = true;                    // Find, Misspelled Words
        checkRepeatedWords = true;                        // Find, Repeated Words
        checkCapitalizedWords = true;                    // Find, Uncapitalized Words
        checkCapitalizedSentences = true;                // Find, Uncapitalized Sentences
        dynamicSpellCheck = true;                        // Enable Dynamic Spelling
        misspelledWordColor = UIColors.red;                // Color, Misspelled Words
        repeatedWordColor = UIColors.green;                // Color, Repeated Words
        uncapitalizedWordColor = UIColors.green;    // Color, Uncapitalized Words
        uncapitalizedSentenceColor = UIColors.green;    // Color, Uncapitalized Sentences
    //Autocorrect preference panel
    with(app.autoCorrectPreferences){
        autoCorrect = true;                            // Enable Autocorrect
        autoCorrectCapitalizationErrors = false;    // Autocorrect Capitalization
    // Missing (Language, Misspelled word pairs)
    //Display Performance preference panel
    with(app.displayPerformancePreferences){
        defaultDisplaySettings = ViewDisplaySettings.typical;    // Preserve Object-Level
        persistLocalSettings = false;
    // Missing (antialiasiing, greek below
    //Story Editor Display preference panel
    with(app.galleyPreferences){
        textColor = InCopyUIColors.black;                // Text Color
        backgroundColor = InCopyUIColors.white;            // Background
        smoothText = true;                                // Enable Anti-Aliasing
        antiAliasType = AntiAliasType.grayAntialiasing;    // Type
        cursorType = CursorTypes.standardCursor;    // Cursor Type
        blinkCursor = true;                                // Blink
    // Missing (Font, Size, Line Spacing & Theme)
    //File Handling preference panel
    with(app.generalPreferences){
        includePreview = true;                        // Always Save Preview Images with Doc
        previewSize = PreviewSizeOptions.medium;    // Preview Size
    with(app.clipboardPreferences){
        preferPDFWhenPasting = false;                // Prefer PDF When Pasting
        copyPDFToClipboard = true;                    // Copy PDF to Clipboard
        preservePdfClipboardAtQuit = false;            // Preserve PDF Data at Quit
    // Missing (Enable Version Cue)
    //    Optical margin (hanging punctuation, outside margins)
    with(app.storyPreferences){
        opticalMarginAlignment = false;
        opticalMarginSize = 12;                // pts
    //Wrap Up (do at end of script)
    //Units & Increments preference panel
    //Must do this to make sure our units that we set are in points. The vert and horiz
    //units that get set default to the current measurement unit. We set it to points
    //so we can be sure of the value. We'll reset it later to the desired setting.
    with(app.viewPreferences){
        horizontalMeasurementUnits = MeasurementUnits.picas;    // Ruler Units, horizontal
        verticalMeasurementUnits = MeasurementUnits.inches;    // Ruler Units, vertical
    //    These two flags are turned off to avoid the error message about
    //    missing image links when InDesign opens an ad. This can especially
    //    be a problem when doing batch processes.
    with(app.linkingPreferences){
        checkLinksAtOpen = false;            // checkbox: true/false
        findMissingLinksAtOpen = false;        // checkbox: true/false

  • Creating text that will scroll in a text frame

    I have tried to create text that will scroll in a text frame by following this:
    Create your text frame including any inline buttons or hyperlinks. Make note of its width and then draw the frame you wish to hold that content. Make it about 5-7 pixels wider than the text frame and align the two, top and left. Cut the text frame to the clipboard and choose the placeholder frame. Choose edit>past into.
    With that frame select, from the overlay creator panel choose pan and zoom and check the pan only option.
    When I get to the overlay creator panel and choose pan and zoom, it asks me to select a cropped image.  I'm not sure what I'm doing wrong.  Any help would be appreciated.
    Also, I am not creating any of the content on the pasteboard.
    Please help. thanks

    is the parenting frame cropping the inline text frame?
    —Johannes

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

  • [JS][CC] How can I get the last visible character in an overflowed Text Frame?

    Hello
    I'm new in InDesign scripting in javascript. I would like to know if there is a way to get the position of the last character in a Text Frame that is overflowed? I need this because I want to calculate how many characters are hidden (overflowing text) via script.
    I've searched in the forums about this but what I find is always a script for alerting if there's overset text or not.
    I'd really appreciate any help!

    Well, let's say that myFrame is an overflowing text frame.
    So, the last character in that frame would be
    myFrame.characters[-1];
    To calculate the number of overflowing characters, select the
    overflowing text frame, and run this script:
    myFrame = app.selection[0];
    myParentStory = myFrame.parentStory;
    alert("Number of overflowing characters is
    "+myParentStory.characters.itemByRange(myFrame.characters[-1],
    myParentStory.characters[-1]).length-1);
    Ariel

  • Import (and export) HTML text into a text frame (CS2)

    Hi
    As I know it is not possible to import or export text in or from a text frame in HTML format directly.
    - Is there a way to do that?
    - If yes how can I do that? A piece of sample code would be great...
    - Actually I use this for Indesign CS2. Is the HTML import / export in CS3 possible?
    Thanks for the help
    Greetz
    Hans

    Yup. There's no HTML parser built into InDesign.
    Actually, GREP is not a great way to go about it. How would you handle nested tags with GREP? A state machine is a much better way to parse HTML. You might want to look around for Javascript parsers.
    Rorohiko has an HTML walker. I'm not sure if it would help you or not.

  • Default Text Frame Object Style on Import

    Hello all,
    My dilemma is this: I have formatted my Basic Text Frame in the Object Styles palette. But when I import text, either by dragging and dropping or using File > Import, the text frame is created with an Object Style of None. If I simply draw a text box, it is correctly created with an Object Style of Basic Text Frame.
    What I want to have happen is that my imported text is created in a text box with the Object Style set as Basic Text Frame.
    Been all over Google, and I can't find the answer. What am I doing wrong?
    Thanks.

    I am having to design for something that is then going to have a 3 whole punch so the inside needs more spacing than the outside.
    I thought the right way to do it would be to use insets for the spacing rather than just making the text box smaller within the print area. Later on there will be images and other objects but at the moment just putting the text in and getting it set up first.
    The reason for the asymetrical insets is because with the extra space given for the 3 hole punch there doesn't need to be as much space given as on the outside.
    Now having said all of that i could be wrong about how i'm going about it, it's just what seems like the logical way to go about it without 'hacking' the design to make it work.
    Thanks for the help and feel free to add any other thoughts you have, always happy to learn.

Maybe you are looking for