[AS] Access Text Frame Labels in CS5

Hello Everyone,
I am updating a CS2 InDesign AppleScript to CS5 and finding an issue accessing the text frame labels. In CS2 the script below would set the variable x to the contents of the text frame "bob", unfortunately, this script not longer works in CS5.
tell application "Adobe InDesign CS2"
        set x to contents of text frame "bob" of active document
end tell
The documentation tells users how to insert text, but not access it. If anyone has an idea of how to do this in CS5 I would appreciate it.

Got it!
tell application "Adobe InDesign CS5"
     tell active document
          set x to contents of item 1 of all page items whose label is "bob"
     end tell
end tell

Similar Messages

  • 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 access the Text Frame, when we use scrollable frame,

    Hi Friends,
    How to access the Text Frame, when we use scrollable frame,
    Thank you,
    [ Nav ]

    That's the same question:
    how can I access something (a page item) on a page…
    Answer: you need something unique in that object you can get a handle on.
    Or you use the selection a user of your script is doing and work with that selection…
    A "scrollable frame" is nothing special. What it makes it a "scrollable frame" is the DPS software.
    So you have to look for attached labels on the object, that identify the object for the PDS plug-in "Overlay Creator" as a "scrollable frame". That's possible with the "extractLabel("KeyString")" function. But you need to know the appropriate key-string in advance.
    In another of your thread in the DPS forum, I basically answered the question how to obtain those key-strings.
    When knowing the key-string you could loop through all your page items (you can skip all text frames) in the allPageItems-collection, to identify the "scrollable frame" by extracting the right label.
    If you have more than one "scollable frames" you need a second unique identifier for the particular object.
    That could be nearly any property.
    Keep in mind, there is no "scrollableFrames" collection in the DOM !
    Uwe

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

  • Bullet problem when creating text frames and tables in InDesign CS5

    Every time I create a new text frame or table in InDesign CS5 and paste information there, the first row in the table or several lines of text come out with bullet points. I'm sure this is a setting or style at some point I created and now am unsure of how to delete. I would like the new text frames and tables to not include bullet points as a default when imported or pasted. Any thoughts? Thanks!

    Defaults for text in the current document are made with no text selected. Turn off bullets and they should stay off (but check the styles, too, you might have accidentally set a bulleted style as the defualt and you should change the default style instead). If this is happening in all files, you need to do it with nothing open to reset the default for all new documents (existing files, unfortunately, need to be fixed one at a time).

  • Find a text frame on the page with script label

    hello to all
    I need to create a script to
    find a text frame on the page with script label "xxx"
    and read its contents into a variable.
    The content of the text frame is a number.
    thanks

    Hi Roberto,
    Welcome to the forum,
    This will find the labeled textFrame on the active page.
    var myLabel = "Foo", // change to label
          myPage = app.properties.activeWindow && app.activeWindow.activePage,
          myTextFrames = myPage.textFrames.everyItem().getElements().slice(0),
          l = myTextFrames.length,
          myVariable
    while (l--) {
        if (myTextFrames[l].label != myLabel) continue;
        myVariable = myTextFrames[l].contents;
        break; // presuming there's only one "Foo" labeled frame on the page
        // Otherwise you'll nead an array
    alert(myVariable)
    Trevor

  • InDesign (CS5) beachballs when clicking into a text frame

    Hi,
    I'm working on a document that causes a weird problem: when I click into a text frame, sometimes this causes InDesign to beachball for a few seconds. Activity monitor shows that InDesign takes 100% CPU time - no other activity involved. After a few seconds, everything works smoothly again.
    This does not happen every single time I click into a text frame. It happens especially after inserting sth from a library, or from another document (say, 7 out of 10 times). But it may also happen when copying (Cmd-C, Cmd-V or Alt-drag) a simple text frame within the same page.
    I gets more weird: This only seems to happen in two of my documents (and copys thereof). There isn't anything special about these documents. They contain a lot of tables and anchored objects, but that's true for a lot of other documents, too. I tried copying a table from document A (no problems) to document B (the one with problems). Clicking into this table causes a beachball. Coping the very same table within document A is fine. Even copying the table back from document B does not cause any problems. It seems like the effect is document-exclusive. I just don't know what makes it so darn exlusive .
    This problem occurs on different machines (all Macs, all 10.6, all CS5). The faster the machine, the shorter the beachball time. But even on an 8-core-iMac it easily takes up to 2 secs. Which is annoying, to say the least.
    Any ideas?

    Hmm, what version of 10.6 is this? I thought, as of 10.6.8, Sample Process always included the Binary Images section at the end. Unfortunately, because basically every one of the 250-odd plugins in InDesign has a GetPlugin()  symbol, it's tough to know exactly what is going on there...
    So, all 2126 samples recorded the same bottom 49 stack frames:
    2126 start
    2126 main
    2126 GetPlugIn
    2126 0x1cd60fef
    2126 SendEventToEventTarget
    2126 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)
    2126 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)
    2126 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
    2126 SendEventToEventTarget
    2126 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)
    2126 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)
    2126 GetPlugIn
    2126 GetPlugIn
    2126 GetPlugIn
    2126 CEventDispatcher::DispatchEvent(IEvent*, IEvent::SystemHandledState)
    2126 CEventDispatcher::DispatchToEventHandlers(IEvent*)
    2126 CDefaultEH::ButtonDblClk(IEvent*)
    2126 CWindowEH::ButtonDblClk(IEvent*)
    2126 PanelEventHandler::ButtonDblClk(IEvent*)
    2126 PanelEventHandler::ButtonDblClk(IEvent*)
    2126 PanelEventHandler::ButtonDblClk(IEvent*)
    2126 PanelEventHandler::ButtonDblClk(IEvent*)
    2126 0x1f6bb8b8
    2126 GetPlugIn
    2126 0x1cfbf039
    2126 CSubject::Change(IDType<ClassID_tag>, IDType<PMIID_tag> const&, void*)
    2126 GetPlugIn
    2126 GetPlugIn
    2126 0x1afdcfdb
    2126 0x1afdc658
    2126 0x1afdb09c
    2126 0x1cfa0675
    2126 PanelView::Show(short)
    2126 PanelView::ParentsVisibleStateChanged(short)
    2126 CControlView::DoAutoAttach()
    2126 GetPlugIn
    2126 PanelView::Show(short)
    2126 CControlView::Show(short)
    2126 CComboBoxView::DoAutoAttach()
    2126 CControlView::DoAutoAttach()
    2126 CFontFamilyObserver::AutoAttach()
    2126 CFontFamilyObserver::Init(short)
    2126 0x1e757c45
    2126 GetPlugIn
    2126 GetPlugIn
    2126 GetPlugIn
    2126 GetPlugIn
    2126 GetPlugIn
    2126 StoryEndCharHelper::FixEndCharacterSingleStory(UIDRef const&)
    (Sorry, that's kind of long. Maybe I should have formatted it differently?)
    But clearly it has something to do with Fonts (CFontFamilyObserver), and something to do with one particular story (FixEndCharacterSingleStory()).
    Then when we look actually closer to the top of the stack:
        2121 StoryEndCharHelper::FixEndCharacterSingleThread(ITextModel*, long, long)
          2121 StoryEndCharHelper::GetFontAttributes(ITextModel*, long, boost::shared_ptr<AttributeBossList>*)
            2119 GetPlugIn
              1154 AttributeScanner::AttributeScanner(IComposeScanner const*, long, long, IDType<ClassID_tag> const*, IDType<ClassID_tag> const*, AttributeScanner::AttributeClassification)
                1151 AttributeScanner::ReadAttributeChunk(short)
                  1143 AttributeScanner::ReadAttributesFromVOS(VOS_SimpleCursor*, short, short)
                    1120 AttributeScanner::ReadAttributesFromRunIn(AttributeBossList const*, long*, short)
                      1117 GetPlugIn
                        1116 GetPlugIn
                          1102 GetPlugIn
                            1011 GetPlugIn
                              963 GetPlugIn
                                889 GetPlugIn
                                  768 GetPlugIn
                                    658 boost::basic_regex<int, boost::icu_regex_traits>::do_assign(int const*, int const*, unsigned int)
                                      596 boost::re_detail::get_icu_regex_traits_implementation(icu_3_6::Locale const&)
                                        587 icu_3_6::Collator::createInstance(icu_3_6::Locale const&, UErrorCode&)
                                          586 icu_3_6::Collator::makeInstance(icu_3_6::Locale const&, UErrorCode&)
                                            581 icu_3_6::RuleBasedCollator::RuleBasedCollator(icu_3_6::Locale const&, UErrorCode&)
                                              578 icu_3_6::RuleBasedCollator::setUCollator(char const*, UErrorCode&)
                                                578 ucol_open_internal_3_6
              958 AttributeScanner::GetSameRunLength()
                958 AttributeScanner::ReadAttributeChunk(short)
                  958 AttributeScanner::ReadAttributesFromVOS(VOS_SimpleCursor*, short, short)
                    944 AttributeScanner::ReadAttributesFromRunIn(AttributeBossList const*, long*, short)
                      942 GetPlugIn
                        941 GetPlugIn
                          933 GetPlugIn
                            865 GetPlugIn
                              812 GetPlugIn
                                744 GetPlugIn
                                  647 GetPlugIn
                                    538 boost::basic_regex<int, boost::icu_regex_traits>::do_assign(int const*, int const*, unsigned int) 
    Well, I made some attempt to filter out the weeds. A substantial amount of time is spent in the regular expression library. Do you have GREP styles? They may be part of the problem.
    If we can resolve this without needing to know which GetPlugIn() are which, that would be helpful. Otherwise you'll need to [maybe?] upgrade to 10.6.8; force a crash (View > Send Signal > Abort (SIGABRT)) in Activity Monitor, which may not be easy to do usefully, since if the crash happens during one of the unremarkable parts of the beachball, it won't tell us anything; break out fancier less user-friendly tools like Instruments.app or gdb.
    I don't suppose you're familiar with any of those tools?
    So, I would try removing all your non-system fonts and seeing if that changes the behavior. Or tightening up GREP styles...
    Or pulling out the heavy guns.

  • CS4 editable master text frames in CS5 no longer editable

    Hi,
    Problem: Text frames on CS4 document pages (from locked text frames on masterpage) are no longer editable on CS5 document pages.
    CS4 situation:
    Masterpages contain text frames which are locked to prevent users from inadvertently moving them when working on document pages.
    On document pages, the text frames can be edited, i.e. text entered, but are position-locked.
    CS5 problem:
    When you now open the same document, the text frames on the document pages are totally locked, the positioning as well as the content. This means they are no longer editable! The only way I have found to make them editable once again is to unlock the text frames. But unlocking also removes the position lock.
    What do I have to do to get things working in CS5 like they were in CS4? Any quick solution or is this simply no longer possible?
    Confounded by InDesign once again...

    Yes, it works just like in CS4! Wunderbar!
    As I just had some trouble finding the where to change this setting,
    for anyone working with the German version of InDesign CS5:
    Menü: Bearbeiten > Voreinstellungen > Allgemein
    then under "Objektbearbeitung", remove the checkmark from "Auswahl von gesperrten Objekten verhindern"
    Thanks!

  • FLV/Mp3 Cue Points for Accessing Frame Labels on the Main Timeline in Flash 8

    Hello,
    In Flash MX2004, creating cue points for syncing locations on
    flv and mp3 files to locations on the main timeline included:
    1) Dragging a media component onto the stage
    2) Entering file path, frame label name, and time code
    information in the component inspector
    3) Creating the frame label names on the main timeline, and
    4) Enabling the Media Labeled Frame Cue Point Navigation
    Behavior
    Flash 8 documentation details a considerably different
    process of creating cue points. While it discusses how to create
    cue points in the flv, I have not been able to locate how to enable
    linking locations in flv and mp3 files with frame labels on the man
    timeline. It appears that there would need to be ActionScript
    necessary to accomplish this that is not available in the docs.
    Please advise what ActionScript/process would enable this
    function.
    Thank you!
    James
    [email protected]

    I usually start off solving problems with the livedocs, as I
    recommend for anyone. The following link will take you to the
    NetStream.onCuePoint handler. This is what you need.
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002561.html
    You can have this code on the main timeline. When the
    cuepoint is hit, it will invoke this event handler and inside is
    where your gotoAndPlay( ) should go.
    Your other question about the text will get activated by the
    same handler. Just have a conditional statement (if, switch, etc.)
    to differentiate between the two events. The text itself can be
    mask inside a movieclip.
    Does this help?

  • To group images with created text frame and apply label for it...

    Hi Everyone,
    We are currently working in auto figure placements for CS3. I have placing the figures into the document. Then i am creating figure caption text frames below the images. Here the concern is i need to group these image and the text box. After this i have to place these images with captions into corresponding pages where the figures have been cited. Also suggest me how to place these images in center of the page as well as in top or bottom of the page margin.
    Can anyone help me for this. Your help will be much appreciated.
    Below is my modified script,
    var myPage;
    main();
    function main(){
        var myFilteredFiles;
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
        myExtensions = [".jpg", ".jpeg", ".eps", ".ps", ".pdf", ".tif", ".tiff", ".gif", ".psd", ".ai"]
        var myFolder = Folder.selectDialog("Select the folder containing the images", "");
        if(myFolder != null){
                if(File.fs == "Macintosh"){
                    myFilteredFiles = myMacOSFileFilter(myFolder);
                else{
                    myFilteredFiles = myWinOSFileFilter(myFolder);
                if(myFilteredFiles.length != 0){
                    for (j=0; j<myFilteredFiles.length; j++){
                        var myImages = myFilteredFiles[j];
                        citePage(j);
                        app.activeDocument.pages.item(myPage.name).place(myImages);
                        alert("Done!");
    function myMacOSFileFilter(myFolder){
        var myFilteredFiles = myFolder.getFiles(myFileFilter);
        return myFilteredFiles;
    function myFileFilter(myFile){
        var myFileType = myFile.type;
        switch (myFileType){
            case "JPEG":
            case "EPSF":
            case "PICT":
            case "TIFF":
            case "8BPS":
            case "GIFf":
            case "PDF ":
                return true;
                break;
            default:
            for(var myCounter = 0; myCounter<myExtensions.length; myCounter++){
                var myExtension = myExtensions[myCounter];    
                if(myFile.name.indexOf(myExtension)>-1){
                    return true;
                    break;           
        return false;   
    //To find cited pages
    function citePage(myInst){
        app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.NOTHING;
        app.findGrepPreferences.findWhat="(?<=Figure \\d\\.)\\d";
        var myFind=app.findGrep(false);
        myPage = myFind[myInst].characters.item(0).parentTextFrames[0].parent;
        return myPage.name;
    Thanks Regards
    Thiyagu

    The shadow effect has to have something to be applied on, but by default text frames borders and fills are invisible.
    If you set the border of your frame to a color & thickness, you'll see it gets a shadow of its own, independent of the text. (Try it with dotted and dashed lines!)
    Additionally, if you set the fill of your text frame to a solid color, you'll see the single solid shadow you were expecting.

  • 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

  • Text Frame Options. Room for Side Heads added without warning

    Hi -
    I just got asked this and have no clue how to help. Anyone know what this is?
    Every now and then, my Frame file will –apparently on its own – reset most of its text frames into having room for side heads.  Makes for lots of bad labels on graphics – everything’s suddenly offset and scrolling off the bottom.
    This will happen suddenly.  It will usually be only one or two chapters in a book, but if I ignore it has been known spread like the black death throughout the book.
    The only solution I’ve found so far has been to revert to a backup or touch each text frame individually.  Setting properties for two at a time messes up location on the page.

    HI -
    Here's what I heard back.
    I believe it’s for everything except main text flow, including headers&footers on master pages, and special elements on unused master pages.
    It appears to be spontaneous, but I can’t guarantee that.
    I don’t use MIFs, and I’m pretty sure no one else does.
    Yes to formatting imports , because we frequently change variables in one chapter and copy them back to the rest (esp date doc was last edited – not same as print date per our regulatory agency.)   Likewise conditional text.  We know not to copy from a file into itself in a book, although it has happened and we do exchange manuals between revisions at times.

  • 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

  • How do I create a series of text frames from a list of files?

    And I'm back again.
    This time, I'm wondering how I can use JavaScript to place a series of text frames from a list of files, preferably with the ability to specify criteria before running the script.
    Here's the details: I work for a newspaper and I lay out stories for the pages (in addition to the other part of my job, laying out ad spaces, as detailed in a previous thread, for which I requested another script, thanks Andreas and Jongware ). The file names for the stories are labeled for the section they go in, like L- for Life, C- for Comment, S- for Sports, etc.
    I'd like to create a script that asks for a criteria in a text box (where I can type L-, C-, S- or whatever else I need) and then places all of the stories, in a specified directory, whose file names match what was typed in the box, one text frame for each.
    I can't rightly tell if this is a simpler or more difficult script to write out, but I plan on putting research into it as usual so I can develop it myself. However, I figured it would be more efficient to ask first, then research, so that while I'm researching, I can refer to the opinions of my fellow forumites, and/or the mods.
    Thanks again for any assistance offered.

    And I'm back again.
    This time, I'm wondering how I can use JavaScript to place a series of text frames from a list of files, preferably with the ability to specify criteria before running the script.
    Here's the details: I work for a newspaper and I lay out stories for the pages (in addition to the other part of my job, laying out ad spaces, as detailed in a previous thread, for which I requested another script, thanks Andreas and Jongware ). The file names for the stories are labeled for the section they go in, like L- for Life, C- for Comment, S- for Sports, etc.
    I'd like to create a script that asks for a criteria in a text box (where I can type L-, C-, S- or whatever else I need) and then places all of the stories, in a specified directory, whose file names match what was typed in the box, one text frame for each.
    I can't rightly tell if this is a simpler or more difficult script to write out, but I plan on putting research into it as usual so I can develop it myself. However, I figured it would be more efficient to ask first, then research, so that while I'm researching, I can refer to the opinions of my fellow forumites, and/or the mods.
    Thanks again for any assistance offered.

  • Sloooowwwww text entry in InDesign CS5

    I've got a truly bizarre behavior that is driving me crazy!  About midway through a document, text editing becomes painfully slow.  I can type a sentence and it takes several seconds for the cursor to catch up.  This happens whether I edit in place, or type in Story Editor.
    Here is where it gets very bizarre.  In any text BEFORE this point in the document, text entry and editing is fast, clean, and efficient.  The point in the document where the change from fast to slow takes place stays the same, REGARDLESS OF WHETHER I DELETE SOME TEXT.  In other words, I've found the precise paragraph where the slow typing starts.  If I delete that paragraph, then the NEXT paragraph shifts up and becomes the start of slow editing.  Paragraphs before and after this point are all styled with the same body paragraph style, so it has nothing to do with the style itself.  In fact ANY style below the "magical point" in the document has very slow typing.  Any style or paragraph above this point types and edits fine.  It almost seems like this magical point happens after a certain number of characters in the document.  If I delete text above this point, the magical point shifts further down the document text.
    Thinking I had a corrupted file, I exported the entire file as IDML (InDesign Markup) and reimported it.  I get THE SAME BEHAVIOR IN EXACTLY THE SAME SPOT.  The file is about 11 pages long and consists of one story that runs through threaded text frames.  There are about 5 images that have been anchored to text.  (But not near the "magical point" where text editing becomes as slow as molasses.)
    I've tried making new documents, changing styles, loading different master pages, deleting the images, deleting the master page, etc. and nothing affects this issue.  And yet I can create a new document, fill it with a hundred pages of placeholder text and I don't get this behavior anywhere in the document.
    Has anyone else experienced something similar??  It's MADDENING!!

    This is definitely an issue in the Windows environment that has absolutely no impact in a Mac environment. I was just introduced to it, and I'm really scratching my head.  I do most of my layout on a really nice Intel Mac using ID CS5, and I'm currently working on a huge project with multiple team members working on a variety of computers. I was unaware until yesterday that one of the team members who is working on a Windows 7 laptop was having problems making text edits in documents that work just fine on my Mac. There was a severe lag when typing. She could go get a coffee while waiting for one simple typed sentence to appear on the screen. We opened up system resources and everything is maxing out while text is being typed, CPU, memory, network. It's a real stumper. This is not a simple machine, it was purchased to be a graphic design computer and has really good specs, but just to make sure it wasn't the computer, I tried it on two other PCs. One is my laptop that I freelance on and the other is a fellow designer's machine that has absolutely amazing specs (actually better than my Mac), both running Windows 7.  On all three computers I have the same typing lag, though I can reduce the lag some by turning off everything that saps ID performance (auto preflight, screen redraw, dynamic spelling, balance columns, etc.).  The files are on a server, so I even tried copying them to the local harddrive and severing link and InCopy connections. I've tried turning off balance columns and still the lag.  The lag is most prominent in a fairly complex table and I've noticed it is worse when editing text that is on a 10 percent black background. 
    I can provide a file to play with if anyone wants to see the behavior. I can reproduce it on any computer with a Windows environment (both CS5 and CS5.5).  I would appreciate a fix either in the way my documents are created or for the app because I'm doing hundreds of these documents for the next couple years and this lag is a severe problem in our workflow.

Maybe you are looking for