CS3, VBS, Selecting multiple text frames in a region is very slow

Hello,
I'm writing a script that selects a large crossword grid (19cm x 19cm), and changes the font and alignment before exporting out as an eps.
When I run the code below, it starts off selecting the frames quickly and then gradually slows to a crawl, before being painfully slow at the end. It takes 35mins to run it on the clues grid and then the solution grid.
Can anyone think of a way to rewrite the code so it's quicker? Or are there some settings that could be changed so it handles better? I've changed the Display Performance settings to the bare minimum, but it only has a little effect.
Thanks for any help ... Nigel
rem Selects grid and fixes text
Set mySolPage = myDocumentA.Pages.Item(2)
For myCounter = 1 to mySolPage.TextFrames.Count
Set myTextFrame = mySolPage.TextFrames(myCounter)
myBounds = myTextFrame.GeometricBounds
If myBounds(0) > 35 and myBounds(1) > 5 and myBounds(2) < 240 and myBounds(3) < 210 Then
myTextFrame.select(idSelectionOptions.idaddTo)
myTextFrame.Texts.Item(1).AppliedFont = "Tahoma"
myTextFrame.Texts.Item(1).fontstyle = "Bold"
myTextFrame.Texts.Item(1).baselineShift = 0
myTextFrame.textFramePreferences.VerticalJustification = idVerticalJustification.idCenterAlign
myTextFrame.textFramePreferences.ignoreWrap = 1
myTextFrame.textFramePreferences.firstBaselineOffset = idFirstBaseline.idAscentOffset
else
myTextFrame.select(idSelectionOptions.idremoveFrom)
End If
Next

hi Nigel,
1) move your TextFrames to separate layer - then you don't need to check Bounds
2) turn OFF redrawing:
Property EnableRedraw As Boolean
Member of InDesign.ScriptPreference
If true, enables redraw during script execution.
3) create and use Para or Char Style - then you don't need to apply many times same params
myTextFrame.ParentStory.Texts.Item(1).AppliedParagraphStyle = myParaStyle
or
call myTextFrame.ParentStory.Texts.Item(1).ApplyParagraphStyle(myParaStyle,True)
and why you have:
else
myTextFrame.select(idSelectionOptions.idremoveFrom)
there is no Select command ...
but if you have Select command somewhere before - you can iterate .Selection collection - so you don't need to check bounds
robin
www.adobescripts.com

Similar Messages

  • Selecting a Text Frame in another file (JS/CS3)

    Hi, I'm a newbie so this is probably a dumb question.
    I'm trying to copy the contents of a text frame in another ID file and copy/paste them into another text frame of my active document. Every example I find creates a NEW text frame and copies it and they work fine but I'm having trouble selecting the text frame or its contents (it's the only object in the document) in the already existing document.
    The section I'm struggling with is:
    var mySourceSlugDocument = app.open(File("/Macintosh HD/Users/Shared/Testfile.indd"));
    var mySourceSlugPage = mySourceSlugDocument.pages.item(0);
    var mySourceSlugFrame = mySourceSlugPage.pages.item(0);
    app.select(mySourceSlugFrame.parentStory.texts.item(0));
    app.copy();
    app.activeDocument.close();
    I'm doing something wrong here. It doesn't like the 'parentStory' in the select line. I'd be happy with a way of just doing a 'select all' and being able to paste it into the new document with a variable name so I can edit it.
    Cheers,
    G.

    I think the third line should be:
    var mySourceSlugFrame = mySourceSlugPage.textFrames.item(0);
    Note though that you don't actually need to select/copy/paste. You can use duplicate().
    Dave

  • How do I select multiple text in Pages

    I'm using the newest version of pages.
    In MS office WORD, I can hold the Ctrl key and with multiple klick in the text I can select multiple text.
    Does pages has the similar function?

    Not possible in Pages 5.2.2, this has been removed by Apple along with 110 features.
    In Pages '09 you hold down the command key, the exact same equivalent as in Word for Windows.
    Peter

  • Cannot select multiple text items simultaneously

    Since upgrading to the latest Pages, I can no longer select multiple letters/words by holding down command. I used to use this to edit multiple things (titles, for example) all at once (make bold, underlined, italicized, larger font, coloured, etc.). Now, however, I have to select each letter/word one at a time and edit them individually.
    Is this just a bug or is there a new way of selecting multiple text characters simultaneously for editing?
    Thanks!

    There is no fix by any means.
    Switching from Word to Pages v5 (any release) is like giving up oxygen for a vacuum. The time that you will expend searching for feature/functionality omissions in Pages v5 that you had in MS Word will just suck the life out of you.

  • How to select a text frame that has been "Sent to Back"?

    Hi Framers,
    In FM 7.2 (all patches up to date, running on Windows XP Pro), I added a note inside a text frame next to an anchored frame holding an image. I nudged the text frame close to the image but it blocked out a tiny portion of the image. So I selected the text frame and from the Graphics menu clicked Send to Back.  Solved that problem, of course. Now I want to change the wording in the note but can't do it because the entire text frame has been sent to back -- how can I select it to Bring to Front so I can edit its contents???
    This MUST be something totally obvious, right?  Can I plead pre-holiday brain freeze?
    TIA,
    Gay

    galson wrote:
    Hello again, Sheila ;~)
    I selected all and moved my cursor all around the page (around various pages, actually, since Ctrl+A selects the entire chapter), and I see what you mean by the color of the arrow's head changing between black and white. Is it significant that the ONLY time it's black is when I'm outside the frame of the page itself? (That is, in the white, non-editable space around the actual frame borders on the page.) Clicking anywhere, whether inside or outside the active area, deselects everything.
    HOLD THE PRESSES!  Even though I *knew* I hadn't grouped my text frame with anything else, after reading your suggestion, I selected the page frame to make sure I hadn't somehow grouped it with my text frame: I hadn't -- but then, on a hunch, I sent IT (the page frame) to the back -- now I can select the text frame!
    I'm marking your response as answering my question and I'm also going to try to mark Peter's the same way, because each of you in your own way, helped me resolve this problem.
    Thank you both and HAPPY HOLIDAYS!  (Gee, and I didn't get either of you anything... maybe next year  ;~))
    Gratefully,
    Gay
    Hi, Gay:
    The "I-Beam" pointer tool is called the Smart Pointer, because it changes to an I-beam when it's over text, and to the Graphics Pointer tool when over a graphic, or part of a graphic, or when you press Ctrl. It's easy to select the main text frame when you Ctrl+click on its interior text area inadvertently, when you're trying to select an anchored frame edge, or when you use Ctrl+A to select all. It's frustrating to have some of these unintended events happen when you're not expecting them. Always work with View > Borders ON, to display the edges of objects and reduce confusion, and always watch where you click. You can zoom iin to large magnification to see things better.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Table of contents and the order of multiple text frames flowing across pages

    I have a multi-page document,
    on each page, there are 2 text frames:
    - A text frame for containing a PAGE TITLE
    and
    - A text frame, flowing from one page to another containing: a MAIN TITLE, a SECTION TITLE, and flowing body copy (on page 1); and another MAIN TITLE, a SECTION TITLE, and flowing body copy; (on page 2)
    When I generate a TOC, using the Page, Main and Section Titles styles, the expected outcome would be:
    Page Title             1
       Main Title           1
    Section Title          1
    Page Title             2
       Main Title           2
    Section Title          2
    But because the Main title and Section titles are all within one flowing text frame and the content flows across multiple pages, and each of the Page Titles are within 2 separate text frames, the actual TOC generated is:
    Page Title             1
       Main Title          1
    Section Title         1
       Main Title           2
    Section Title          2
    Page Title             2
    ...where the TOC lists all the TOC items from the flowing text frame in one grouping first, then the individual free standing text frame title.
    QUESTION: Is the only way to automatically rectify this is to combine all the text into one flowing text frame? or is there another workaround?
    Have played with the left/right, top/bottom alignment of the individual text frames; also experimented with the object layering, to no avail..
    Thanks for any insights.

    I ended up using a product called InFlow from EmSoftware.  The solution offers a plugin to InDesign that builds pages on the fly when there is overset text.  The setup is pretty minimual and it seems easy to use.  The only drawback that the plugin MAY have is that it does not remove the pages it built if the pages are not needed from record to record.  I could not test this myself since my test data did not test more then one record, but when I turned my proof set off, the pages that were built were still on screen.  It does seem to work well for what we are looking to do, so if anyone is looking for something that will build pages on the fly in situations where the "Dynamic Story Handling" is not available, I would suggest looking into this.

  • Multiple Text Frame dimension change - possible?

    Create 5 text frames, all duplicates so they share the same height and width.
    Select all and try to change just the height of all.
    InDesign displays the total height rather than the height of one and therein lies the problem...
    How can one change height of all in one hit? Thanks. JETNZ

    Got it:
    1. Select one of the five text boxes.
    2. Change its height.
    3. Deselect it.
    4. Select the remaining text boxes.
    5. Choose Transform Again Individually from the OBJECT >Transform Again menu.
    Just incase anyone has this come up in their work...

  • Select Multiple Text Areas

    How can you select multiple (but separate) lines of text? In
    most other programs shift lets you select from one point to
    another, and control lets you pick different points within the text
    body. Is dreamweaver capable of this?

    Matt,
    > How can you select multiple (but separate) lines of
    text? In most other
    > programs shift lets you select from one point to
    another, and control lets you
    > pick different points within the text body. Is
    dreamweaver capable of this?
    DW only allows discontiguous selections for table cells and
    position:absolute elements.
    HTH,
    Randy

  • Using the CTRL button to select multiple text segments in Design Editor

    Hi there,
    This may be a fairly elementary question, however I'm very new to RoboHelp.
    I'm currently building an online help text system, and when formatting my html files in Design Editor, I have to apply styles one at a time. I was hoping RoboHelp would have a function identical to Microsoft Word whereby holding down the CTRL key would allow you to select various segments in the file and apply the style. Eg. selecting only text you want to apply Heading 3 to.
    If RoboHelp does not have this functionality, this project will take me in the vicinity of 7 years to complete. Thanks for your time.
    Regards,
    PK

    No it doesn't work that way. What you need to do is create some character styles in your style sheet and apply those.
    Paragraph styles are defined something like
    P {
        font-size: 10pt;
        margin-top: 0pt;
        margin-bottom: 6pt;
        font-family: Verdana, sans-serif;
        color: #000000;
        font-weight: normal;
    P.Normal-Indent {
        margin-left: 20pt;
    where the second P definition will inherit all that is in P plus add the indent.
    When you select those styles, they will be applied to the whole paragraph.
    You can also create characters classes. If you do it within RoboHelp, RH will write the CSS code for you. If you edit the CSS outside RH, then instead of writing P or some other tag, you would normally start with the full stop so you might have
    .code {
        font-size: xx-small;
        font-family: Courier;
    to apply the Courier font to a selection in any paragraph style.
    In RoboHelp you need to prefix the character code with "span" to make it display in the dropdown, thus you would need:
    span.code {
        font-size: xx-small;
        font-family: Courier;
    See www.grainge.org for RoboHelp and Authoring tips

  • Is command+hold for selecting multiple text gone?

    I recently updated to a laptop with os x version 10.9.5. On my previous laptop I could select multiple, non-consecutive words by holding down the command key, which was extremely useful when re-arranging my notes or creating study guides for myself. However, on my new laptop I can't get this feature to work, and I'm wondering if anyone knows whether it's been disabled in the newer version of pages or if there's a different shortcut now?
    Thank you for any feedback.

    All Pages v5 versions cannot select non-consecutive words. This capability exists in Pages ’09, which is the more functional, and feature-laden word processor.

  • After installing ios7 my ipad keyboard is very slow for texting, emailing and entering passcode.  very slow

    after installing ios7 on my ipad the keyboard is very slow, delayed.  text, email and passcode. 

    Hi Knackerman, I was racking my brain trying to think how I did this and then I remembered that at the time because of other problems I was having with my iPad and it was under extended warranty, they offered to replace it for me.
    When I went to collect new one they asked if I wanted the to download iOS7 and they replied, NO, I did not, well that was enough for me and I told them to please leave it as is.
    I just ignore all the reminders I receive to download iOS7 on my phone and iPad.
    I am very happy with my 6 version.
    I am very sorry I am unable to help, I know how you feel, I hated it, it caused so many glitches to my otherwise perfect iPad before instalment.
    Overall though, I think Apple has to shake itself up, they are getting left behind in the Samsung wake. 

  • Selecting multiple text in JTextArea

    Howdy Java folks! I've been busting my butt trying to select more than one piece of text in a JTextArea. For example, I would like to:
    textArea.select(0, 4); // and then select another piece of text
    textArea.select(7, 9); // and show both text snippets highlighted
    But I would like to keep both and possible more pieces of text highlighted. The 2nd select() will override the first thus only showing the last area selected.
    Can anyone point me in the right direction? Thanks a mucho.

    Try this. It selects vertical block of text.
    best regards
    Stas
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.datatransfer.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.plaf.*;
    import javax.swing.plaf.basic.*;
    public class Test
    JFrame frame;
    JTextArea ta;
    public static void main(String args[])
    new Test();
    public Test()
    frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    ta=new JTextArea("test11111\ntest22222\ntest33333\ntest44444\ntest55555\n");
    ta.setCaret(new Caret_());
    JScrollPane scroll=new JScrollPane(ta);
    frame.getContentPane().setLayout(new BorderLayout());
    frame.getContentPane().add(scroll,BorderLayout.CENTER);
    JButton copy=new JButton("Copy");
    ActionListener lst=new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    Highlighter.Highlight[] selections= ta.getHighlighter().getHighlights();
    String text="";
    int cnt=selections.length;
    for (int i=0; i<cnt; i++) {
    int start=selections.getStartOffset();
    int end=selections[i].getEndOffset();
    String selectedText=ta.getDocument().getText(start,end-start);
    text+=selectedText+'\n';
    System.err.println(selectedText);
    StringSelection ss=new StringSelection(text);
    Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss,ss);
    catch (Exception ex) {
    ex.printStackTrace();
    copy.addActionListener(lst);
    frame.getContentPane().add(copy,BorderLayout.SOUTH);
    frame.setSize(300,200);
    frame.setVisible(true);
    class Caret_ extends DefaultCaret {
    Point lastPoint=new Point(0,0);
    public void mouseMoved(MouseEvent e) {
    super.mouseMoved(e);
    lastPoint=new Point(e.getX(),e.getY());
    public void mouseClicked(MouseEvent e) {
    super.mouseClicked(e);
    getComponent().getHighlighter().removeAllHighlights();
    protected void moveCaret(MouseEvent e) {
    Point pt = new Point(e.getX(), e.getY());
    Position.Bias[] biasRet = new Position.Bias[1];
    int pos = getComponent().getUI().viewToModel(getComponent(), pt, biasRet);
    if(biasRet[0] == null)
    biasRet[0] = Position.Bias.Forward;
    if (pos >= 0) {
    setDot(pos);
    Point start=new Point(Math.min(lastPoint.x,pt.x),Math.min(lastPoint.y,pt.y));
    Point end=new Point(Math.max(lastPoint.x,pt.x),Math.max(lastPoint.y,pt.y));
    customHighlight(start,end);
    protected void customHighlight(Point start, Point end) {
    getComponent().getHighlighter().removeAllHighlights();
    int y=start.y;
    int firstX=start.x;
    int lastX=end.x;
    int pos1 = getComponent().getUI().viewToModel(getComponent(), new Point(firstX,y));
    int pos2 = getComponent().getUI().viewToModel(getComponent(), new Point(lastX,y));
    try {
    getComponent().getHighlighter().addHighlight(pos1,pos2,((DefaultHighlighter)getComponent().getHighlighter()).DefaultPainter);
    catch (Exception ex) {
    ex.printStackTrace();
    y++;
    while (y<end.y) {
    int pos1new = getComponent().getUI().viewToModel(getComponent(), new Point(firstX,y));
    int pos2new = getComponent().getUI().viewToModel(getComponent(), new Point(lastX,y));
    if (pos1!=pos1new) {
    pos1=pos1new;
    pos2=pos2new;
    try {
    getComponent().getHighlighter().addHighlight(pos1,pos2,((DefaultHighlighter)getComponent().getHighlighter()).DefaultPainter);
    catch (Exception ex) {
    ex.printStackTrace();
    y++;

  • Selecting multiple text layers bug

    I have found this post from April where the bug was acknowledged in the beta: http://forums.adobe.com/message/4306413#4306413.
    I now have the official release of CS6, and I am still seeing this issue. And for clarification, here's what the issue is:
    - I start off creating a text layer with a font size of 20px.
    - I then transform this layer to make it larger.
    - I copy the layer over so I have identical text layers.
    - When I select each individually, I am shown the new, larger font size, we'll just say 40px. But when I select both together, it shows the original font size of 20px in the character palette. When I increase the font size with both selected to say 30px, it actually makes the text more like 60px.
    Will this bug actually get fixed?
    Thanks for any insight you can give.
    And for more info, I am running CS6 off of OSX Lion.

    I was going to suggest a script, but it seems that there are major bugs in the javascript DOM.
    It will only set the size if the text has not been transformed and then is not acurate (+- .5), this is a bug.
    If the text has been transformed the new text size has to be divided by the transform factor, this is a bug.
    Tested with Windows 7 and Photoshop CS6 version 13.0.1 so don't know what state other versions are in.
    This script will work for the above version and O.S.
    N.B. if Photoshop gets the bugs fixed this script will no longer work correctly!
    #target photoshop
    app.bringToFront();
    if(documents.length) app.activeDocument.suspendHistory('Set Font Size', 'main()');
    function main(){
    var win = new Window('dialog','Set Font Size');
    g = win.graphics;
    var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
    g.backgroundColor = myBrush;
    win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
    win.g1 = win.p1.add('group');
    win.g1.orientation = "row";
    win.title = win.g1.add('statictext',undefined,'Set Font Size');
    win.title.alignment="fill";
    var g = win.title.graphics;
    g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
    win.g5 =win.p1.add('group');
    win.g5.orientation = "row";
    win.g5.alignment='left';
    win.g5.rb1 = win.g5.add('radiobutton',undefined,'All text layers');
    win.g5.rb2 = win.g5.add('radiobutton',undefined,'Selected text layers');
    win.g5.rb1.value=true;
    win.g10 =win.p1.add('group');
    win.g10.orientation = "row";
    win.g10.alignment='left';
    win.g10.st1 = win.g10.add('statictext',undefined,'Please enter text size..');
    win.g10.et1 = win.g10.add('edittext');
    win.g10.et1.preferredSize=[50,20];
    win.g10.et1.onChanging = function() {
      if (this.text.match(/[^\-\.\d]/)) {
        this.text = this.text.replace(/[^\-\.\d]/g, '');
    win.g100 =win.p1.add('group');
    win.g100.orientation = "row";
    win.g100.alignment='fill';
    win.g100.bu1 = win.g100.add('button',undefined,'Set Font Size');
    win.g100.bu1.preferredSize=[130,25];
    win.g100.bu2 = win.g100.add('button',undefined,'Cancel');
    win.g100.bu2.preferredSize=[130,25];
    win.g100.bu1.onClick=function(){
    if(win.g10.et1.text == ''){
        alert("No text size has been entered!");
        return;
    win.close(0);
    var txtList = new Array();
    if(win.g5.rb1.value){
        txtList = getTxtLayers();
        }else{
    var sels = getSelectedLayersIdx();
    for(var z in sels){
    var isTxtArray = isTxtLayer(Number(sels[z]));
    if(isTxtArray == false) continue;
    isTxtArray = String(isTxtArray).split(',');
        txtList.push([[Number(isTxtArray[0])],[String(isTxtArray[1])]]);
    for(var s in txtList){
        selectLayerById(Number(txtList[s][0]));
    if(String(app.version).match(/^\d+/) == 13){
    if(getTextdivideFactor() != 0){
    app.activeDocument.activeLayer.textItem.size= (Number(win.g10.et1.text)/Number(getTextdivideFactor()));
    }else{
        app.activeDocument.activeLayer.textItem.size= (Number(win.g10.et1.text));
    }else{
        app.activeDocument.activeLayer.textItem.size= (Number(win.g10.et1.text));
    win.show();
    function getTextdivideFactor(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('textKey'));
    var textSize =  desc.getList(stringIDToTypeID('textStyleRange')).getObjectValue(0).getObjectValue(stringIDToTypeID('textStyle')).getDouble (stringIDToTypeID('size'));
    if (desc.hasKey(stringIDToTypeID('transform'))) {
                var mFactor = desc.getObjectValue(stringIDToTypeID('transform')).getUnitDoubleValue (stringIDToTypeID("yy") );
                return mFactor;
    return 0;
    function selectLayerById(ID, add) {
        add = (add == undefined)  ? add = false : add;
    var ref = new ActionReference();
    ref.putIdentifier(charIDToTypeID('Lyr '), ID);
    var desc = new ActionDescriptor();
    desc.putReference(charIDToTypeID('null'), ref);
    if (add) {
      desc.putEnumerated(stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelection'));
    desc.putBoolean(charIDToTypeID('MkVs'), false);
    executeAction(charIDToTypeID('slct'), desc, DialogModes.NO);
    function isTxtLayer(idx){
    var ref = new ActionReference();
    ref.putIndex( charIDToTypeID('Lyr '), idx );
    var desc = executeActionGet(ref);
    var isTxt = new Array();
    if(desc.hasKey(stringIDToTypeID('textKey'))){
    var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
    var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
    isTxt.push([[Id],[layerName]]);
    return isTxt;
    }else{ return false;}
    function getTxtLayers(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            if(desc.hasKey(stringIDToTypeID("textKey"))) Names.push([[Id],[layerName]]);
    return Names;
    function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
             desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                try{
                   activeDocument.backgroundLayer;
                   selectedLayers.push(  desc.getReference( i ).getIndex() );
                }catch(e){
                   selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
           }else{
             var ref = new ActionReference();
             ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
             ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
             try{
                activeDocument.backgroundLayer;
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
             }catch(e){
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
         var vis = app.activeDocument.activeLayer.visible;
            if(vis == true) app.activeDocument.activeLayer.visible = false;
            var desc9 = new ActionDescriptor();
        var list9 = new ActionList();
        var ref9 = new ActionReference();
        ref9.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        list9.putReference( ref9 );
        desc9.putList( charIDToTypeID('null'), list9 );
        executeAction( charIDToTypeID('Shw '), desc9, DialogModes.NO );
        if(app.activeDocument.activeLayer.visible == false) selectedLayers.shift();
            app.activeDocument.activeLayer.visible = vis;
          return selectedLayers;

  • When entering text into a table letters are very slow to show up.

    When I enter text into a table, the text loads VERY slowly. What's that about?

    Problem 1: In Table A, when adding or updating data, I want to select data from fields in records based on primary key in other tables. Add and update data works. But my popup "X" list is way too long. I want the popup "X" when adding or
    updating record in Table A to only give me the choice of records from Table B that matches the data I entered in a previous field in Table A, not all the records from Table B.
    For this question, you can create SortTable screen to sort the data based on table A and table B. is this what you need?

  • Editing Text within Acrobat X suite is very slow

    All other handling within this programm goes normal,
    moving trough text works normal, loading of fonts goes normal,
    Openeing of more diferent PDF documents works fine.
    It is just the editing, typing one character takes up to 5 seconds

    Hi, My OS is Windows 7 x64 Ultimate incl. SP1, 100 GB Free SSD Space, 6 GB DDR3 RAM, 2 Monitor, 1920x1080 Resolution, no big running background Processes!
    Martin

Maybe you are looking for