[cs3] [JS] Find entry with no text in the Layout

Hello

I need to enter a Layout.I without any text (idle) have used the following code.

app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;

app.findGrepPreferences.findWhat = "\n";
app.findChangeGrepOptions.includeFootnotes = false;
app.findChangeGrepOptions.includeHiddenLayers = false;
app.findChangeGrepOptions.includeLockedLayersForFind = false;
app.findChangeGrepOptions.includeLockedStoriesForFind = false;
app.findChangeGrepOptions.includeMasterPages = false;

var myFoundItems = new Array;
myFoundItems = app.activeDocument.findGrep ();
var len = myFoundItems.length;
Alert (Len);

I don't know if my approach is correct or not? Please suggest me.

Concerning

Kumar

Try this:

app.findGrepPreferences.findWhat = "" ^ \\r ";"

@+

Marc

[Edit: paragraph meta is not \nand \r ]

Tags: InDesign

Similar Questions

  • Find entries with several conditions, including the comparison

    Hello

    I take the edition of I v6.2.7 a ride, I'm looking at the use case is the following. I have a "table" with about 100 k records defined by this object:

    @Entity
    public class LTROW {
    
      @PrimaryKey
        private Integer id = null;
    
        @SecondaryKey(relate=Relationship.MANY_TO_ONE)
        private Integer tableId = null;
        
        @SecondaryKey(relate = Relationship.MANY_TO_ONE)
      private String col0 = null;
        @SecondaryKey(relate = Relationship.MANY_TO_ONE)
        private String col1 = null;
        @SecondaryKey(relate = Relationship.MANY_TO_ONE)
        private String col2 = null;
        @SecondaryKey(relate = Relationship.MANY_TO_ONE)
        private String col3 = null;
        @SecondaryKey(relate = Relationship.MANY_TO_ONE)
        private String col4 = null;
        @SecondaryKey(relate = Relationship.MANY_TO_ONE)
        private String col5 = null;
        @SecondaryKey(relate = Relationship.MANY_TO_ONE)
        private String col6 = null;
        @SecondaryKey(relate = Relationship.MANY_TO_ONE)
        private String col7 = null;
        
        private String result0 = null;
        private String result1 = null;
        private String result2 = null;
        private String result3 = null;
        private String result4 = null;
    // ...
    }
    

    Typical research I must apply is: give me all the entries contained in tableId X where the value of co0 is equal to 7, 1112 exceeds the value of col1 and col2 value is less than 8.

    I got in the definition of index for all columns defined in the class, but can't seem to understand how to combine these criteria. I looked at EntityJoin but it doesn't seem to be what I'm looking for.

    Thank you!

    You cannot use multiple indexes for this kind of query. Instead, create and use a single index for one of the conditions and filter on other conditions. I hear, by 'filter' select the records you want using an 'if' statement Try to choose the index that returns the smallest number of records.

    See:

    http://www.Oracle.com/technetwork/database/database-technologies/BerkeleyDB/performing.PDF

    -mark

  • find a block of text on the page with the name of script

    Hi all

    I need to create a script for

    find a block of text on the page with the script titled "xxx".

    and read its contents into a variable.

    The content of the text block is a number.

    Thank you

    Hello Roberto,

    Welcome to the forum,

    This is the textFrame marked on the current 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

  • How can I change the beige tabs with white text to the text of the tabs beige with black (or another dark color)?

    Classic restoration changed by FF 29 tabs beige with black text on the tab active and beige with white text on other open tabs. The white text is not visible. How can I change the text in white with a darker color?
    If this cannot be done, is there a way to reinstall FF 29 with just the security updates (and not all the other stuff) so that I can keep my 28 FF settings? Thank you.

    1. Open the modules (Ctrl + Shift + A Manager; Mac: Command + shift + A), then the Extensions category.
    2. Beside the classical restaurant theme, click on the Options button.
    3. Click the custom colors tab, then the less than (active/hover/default) tab.
    4. Below (active) tab, check 'Text', then click on the color swatch and choose black.
    5. Click the tab (unread) / new tab.
    6. (Unread) tab, check 'Text', then click on the color swatch and choose black.
  • I'd like to edit a PDF secure document did not change the text, or the layout at all I would do is highlight the text.  How can I do this?  With the help of Adobe Acrobat DC 15.9.20077.160923

    I'd like to edit a PDF secure document did not change the text, or the layout at all I would do is highlight the text.  How can I do this?  With the help of Adobe Acrobat DC 15.9.20077.160923

    You know the password? Otherwise, the security policy does not allow adding comments in the file, then there is nothing you can do about it.

  • Hello world. How can I change 2000 channels of unique text in the layout ID to another 2000 located in the Excel table?

    Hello world. How can I change 2000 channels of unique text in the layout ID to another 2000 located in the Excel table?

    Hello

    1 click using the Multi-Find/Change to our clever friend Marthino da Gloria, version 2.0.

  • [AS] [CS3] script find/repalace with style groups

    Hello world

    I've been struggling with this problem for a while and hope someone can enlighten us.

    I'm trying to use applescript to run a series of queries to search and replace.

    For example:

    Tell application "Adobe InDesign CS3"
    paragraph style applied to find the value of "Text" text preferences
    font style to find value text preferences 'italic book '.
    style character applied to change the value text preferences 'italic book '.
    tell document 1
    change the text
    tell the end
    tell the end

    This works great except if the document contains styles within groups of styles, in which case, I get an error saying

    "Adobe InDesign CS3 has been an error: invalid value for the set of"applied paragraph style"property."

    String, style section or anything, but received the "text". »

    If you do the find/replace manually, the paragraph style text (hand) indicating that the text is inside the hand of the style group.

    How can I specify it in the script?

    Thank you!

    InDesign is forgiving if you specify your style just in name, but in the case of groups of styles, be more specific.

    Tell application "Adobe InDesign CS4"

    -paragraph style applied to find the value of "Text" text preferences

    the value applied paragraph style to find text preferences for the paragraph style "Text" of the paragraph style group 'Hand' of the active document

    end say

    Dirk
  • Problems with editing text in the window Live in shared Mode

    I use CS3, because that's what we had in this work, that I am.  Recently, I had the chance to go back to CC, when we went to CC2015.  I had CC2014 on another job and worked with him OK.

    I work in shared Mode because I love to see both points of view.   But some things are go, I don't remember being a problem when I had cc2014 (not to mention earlier versions).  I remember very well by clicking on the text in the 'live' view of the page, I'm working on and seen the code section moving to the same piece of text - but not now. And I also don't seem to be able to modify in the pane is 'live'.

    I'm doing something wrong? Or is there a setting I need to change?

    You very probably work in Design mode in previous versions, which will go to the Code view for the correct lines when you click a Design element.

    Live View edition is new, CBWMS and previous versions had no direct editing feature at all.

    Click on the small triangle next to the Live button in the toolbar and select design, it should work more as you describe from there.

  • How to find and replace this text in the url

    I have a NCLOB column with a text with the url between the two as shown below:
    ========================================================================
    This text is intended to testign. This text is intended to testign.
    < a PL/SQL and SQL < U PL/SQL and SQL / < u > < / a >
    Required text is also aimed at testign. This text is intended to testign.
    < a http://forums.oracle.com > < oracle metalink U > < / u > < / a >
    This text is intended to testign. This text is intended to testign. This text is intended to testign. This text is intended to testign. This text is intended to testign. This text is intended to testign. This text is intended to testign. This text is intended to testign.
    ========================================================================
    Requirement:
    ========
    It is necessary to implement find and replace functionality.
    I just need to check if the search text is present in the url or not?
    Suppose that if research of orcale.com, given that research should therefore be successful otherwise search for his part of the url must be unsuccessful.
    Here, I can give you the indicator, as always the url is located between the anchor tags * (< < /A >). *

    Tahnks in advance.
    SELECT REGEXP_SUBSTR('testhttp://forums.oracle.comoracle.comhttp://ora.com', '((.*?oracle\.com.*))') FROM dual
    
  • Displaying a value hidden with static text in the field "show text".

    Hello
    I've sifted through a lot of search results and could not find an answer, so I hope someone might be able to help.

    I have a hidden value that contains a date that I extracted from my database. I also have a "Show text" field shows that under certain conditions. I want to show the hidden value in my screen as text with another text field.

    For example, if the value of the hidden field is "10/11/09" I want to show a message that says "database was updated on 10/11/09".

    Advice on how to proceed would be appreciated!

    Thank you

    You can change the "Source" to "SQL query" Type and specify a query similar to

    Select "database update on | : The double HIDDENFIELDNAME

    CITY

  • How to find? in a text of the view (definition) in all schemas

    Hello

    Version of DB Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    OS RHES 5U2

    I would appreciate if someone can tell me how to get a list of all views in the database that contains? in the text of the view definition.

    I tried with the two DBA_VIEWS and ALL_VIEWS to aid after the query, but it returned error.

    SELECT MASTER: '. ' || VIEW_NAME
    OF ALL_VIEWS
    WHERE THE TEXT LIKE ' %? %'
    AND the owner not in ('SYS', 'SYSTEM', "SYSMAN", "GENERAL", "OLAPSYS", "MDSYS", "CTXSYS")
    ORDER OF OWNER;
    WHERE THE TEXT LIKE ' %? %'
    *
    ERROR at line 3:
    ORA-00932: inconsistent data types: expected NUMBER got LONG


    SELECT MASTER: '. ' || VIEW_NAME
    FROM DBA_VIEWS
    WHERE THE TEXT LIKE ' %? %'
    AND the owner not in ('SYS', 'SYSTEM', "SYSMAN", "GENERAL", "OLAPSYS", "MDSYS", "CTXSYS")
    ORDER OF OWNER;
    WHERE THE TEXT LIKE ' %? %'
    *
    ERROR at line 3:
    ORA-00932: inconsistent data types: expected NUMBER got LONG

    Thank you

    WHERE THE TEXT LIKE ' %? %'

    The TEXT here is a LONG data type, you cannot use it in an expression.
    You can do this:

    SQL> select count(*) from user_views where text like '%OPRD%';
    select count(*) from user_views where text like '%OPRD%'
                                          *
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected NUMBER got LONG
    
    SQL> create table myviews (view_name varchar2(30), text clob);
    
    Table created.
    
    SQL> begin
      2  for i in (select view_name,text from user_views) loop
      3  insert into myviews values (i.view_name,i.text);
      4  end loop;
      5  end;
      6  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select count(*) from myviews where text like '%OPRD%';
    
      COUNT(*)
    ----------
           136
    
    SQL>
    

    Nicolas.

  • CS3: GREP find/change with the character Style?

    Hello

    Was surfing autour through various resources, but have not been able to understand how / if possible...

    Basically, all along of a wide catalogue, there are a lot of situations with lines of text like this:

    CF2 = Double caramel icing

    and I want to look for this string and apply a character style to just the "CF2" who will be "BOLD".

    Is this possible?

    Thank you!

    Andrew

    Search

    \bCF2 (? == double caramel icing)

    Put your character style "BOLD" in the field of formatting to replace.

    Change all.

  • Problem creating entries, exits and text in the block of Script Scilab

    I recently installed the Labview with Scilab gateway.  I'm under Labview 11.0 and Scilab 5.3.3.  Files example executed correctly, but when I try to set entries or exits, there is no option to add ports.  The block ignores also any text I type in or copy to it.  I tried this on a white vi.


  • InDesign CS3 is in conflict with CS2 Web on the same PC

    Hi, I use CS2 Web on my PC under Windows XP2, and I installed InDesign CS3 on the same computer. The installation went well. The software works well. The problem is that I received an InDesign file to a co-worker who is also running InDesign CS3, but I can't open the file. I get an error of my InDesign message telling me that it cannot open the file because I need to upgrade my version of the software (upgrade check tells me that there are no other updates available for my InDesign). In the HELP menu I check the version and I'm under InDesign 3.0.1. The packaging clearly says CS3 on it. But he insists on acting as if InDesign was only CS2 as the Web Suite that I have on the same PC (but I'm not runing this software at the same time as InDesign) and does not open the files of other users of InDesign CS3 in my office.

    All the files I created with my InDesign and sends to a work colleague appear to them as if they were introduced in CS2.

    This conflict is avoidable somehow? Or is the software designed to not be compatible with Adobe software to other versions on the same PC?

    Thanks for any help.

    Joe B.

    What I wanted to say is: you have CS 3.0.1 and CS3 (5.0?) installed at the same time, but you double click on the new file and seeks to open it in CS 3.0.1.

  • Newby needs help with external text and the madness of the actionscript.

    Hello

    Try to load an external plain txt file into a field of text with Actionscript 3.0. The text file is saved in UTF-8 format in the same file as the Flash movie and I use the following code:

    var external_txt:TextField = new TextField();
    var externalReq:URLRequest = new URLRequest ("external.txt");
    var externalLoad: URLLoader = new URLLoader();

    externalLoad.load (externalReq);

    externalLoad.addEventListener (Event.COMPLETE, textReady);

    external_txt.x = 175;
    external_txt.y = 100;
    external_txt. Border = true;
    external_txt. Width = 200;
    external_txt. Height = 200;
    external_txt.WordWrap = true;

    addChild (external_txt);

    function textReady(event:Event):void
    {
    external_txt. Text = event.target.data;
    }

    When I test the movie, the following error message appears in the output window:

    Error #2044: Unmanaged by ioError:. Text = Error #2032: error flow. URL: file:///F|/FlashCS3/FlaFiles/external.txt
    at ScrollingTextField_fla::MainTimeline/ScrollingTextField_fla::frame1()

    I know that the solution is probably very simple, but I'm new to Actionscript and it cannot work around. Anyone have any suggestions?

    Scoots


    Your Kglad,

    Check my folder options and had the type of file extensions hidden, was "external.txt.txt" as the URL of the request. Sorry guys!

    Thanks again!

Maybe you are looking for