How to filter the different list of words in the same list?

Percy Brandon

Patricio Wilson

Bombay

Roberto Bunch

Leo Koppel

Saul Smith

Hong Kong

Manila


In this list, there are two styles of paragraph (names and cities)


To get two separate lists a method could use OCD, but it involves a lot of steps.


It is possible to generate scripts this idea to get two separate lists?

No format is required. Just straight lists.



Something like this:

myDoc = app.activeDocument;
style1 = myDoc.paragraphStyles.itemByName("Style1");
style2 = myDoc.paragraphStyles.itemByName("Style2");
app.findTextPreferences = null;
s = app.selection[0];
app.findTextPreferences.appliedParagraphStyle = style1;
f1 = s.findText();
app.findTextPreferences.appliedParagraphStyle = style2;
f2 = s.findText();
d = myDoc.textFrames.add();
d.geometricBounds = [0,0,"5cm", "10cm"];
for (i = 0; i < f1.length; i++){
    f1[i] = f1[i].contents;
}
for (i = 0; i < f2.length; i++){
    f2[i] = f2[i].contents;
}
d.contents = f1.concat(f2).join("");
d.select();

Select the text you want to separate and run the script.

Tags: InDesign

Similar Questions

  • How to map the same tag of the element with a different value in BI Publisher rtf model.

    Hello

    I have an xml file with the same name in the < tag > element and I do not know how to associate the same < tag > element to different string in the document rtf template attribute.

    For example: "' Eswitch <number > is repeated in this xml file, when I am mapping this element to the document rtf with a different string, I have same value 'D00002 ' . I should get values D00002 and DMR00002.

    < document >

    < TitleBlock >

    < number > D00002 < / number >

    < itemType > Document < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    < description > gtedgg < / description >

    < shippableItem > n < / shippableItem > < / cartridge > < / Document >

    < DMR >

    < TitleBlock >

    < number > DMR00002 < / number >

    < itemType > DMR < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    test nomenclature model bom1 < description > < / description >

    < POS > < value > Test < / value > < / POS >

    < shippableItem > n < / shippableItem > < / cartridge > < / DMR >

    < / AgileData >

    I followed steps below for map document model rtf with the same tag xml with a different value.

    1. install Office word 2013.

    2 BI Publisher for desktop software installed. It will add a BI Publisher plugin to the word document.

    3. with the help of desktop publisher BI, created a model of document rtf file.

    4 imported the document rtf template example xml file.

    The data is loaded successfully.

    5 tires model rtf field symbol to map the tags to xml to rtf document attributes element.

    7 saved the document in PDF format.


    Thank you

    Please mark it correct so that it is useful for others to find the solution to a similar request.

  • How to filter the modules of the version of TB?

    My version of TB: 31.1.2 on Win7

    The Add-ons Manager has a section called "Featured addons". I think that, Hey they must be cool if they are featured! I try "Contacts Sidebar" only to discover that it was updated in 2007 and does not support recent versions. How to filter the Add-ons to display only those compatible with my version of TB?

    All the people who still use older computers from apple. This is the last version that will run on them.

  • How to filter the by using (-) less symbol.

    Hello
    We use oracle EBS as OLTP. Sale of data stores the PO_HEADERS_ALL, PO_LINES_ALL table, which contains data of rejection/cancellation order.
    Rejected/cancelled in data store also the same tables. We are able to identify the base denied/cancelled quantity indicated (-) less symbol. (Example: Qty:-30), and the Amount column is also indicated as (-) less symbol. So, how to filter the data on quantity everything is indicated - less symbol in OBIEE.

    Kind regards.
    CHR

    Jay wrote:
    IF it is set to digital use function of cast to convert to a char, then using as check the reason for the less to be filtered in the filter condition formula.

    If you want to filter all values of negetive, then use filter: measure<0 in="" filter="">

    Hope this will help you.

    Thank you
    Jay.

    If the column was purely digital, why cast to CHAR? The OP can do everything suggested Robert Angel. My suggestion was where there was some other non-numeric values in the column that could be the reason why the column is CHAR, then using the SIMILAR filter operand would solve this problem.

    The first part of your suggesting was not necessary if the column is a numeric data type and the second part was just a repetition of what Robert.

  • How to filter the view LOV object?

    Hello

    Can someone help me please how to filter the LOV VO according to the selected result of LOV another?

    Thank you.

    Jon

    In the second LOV have additional lov map.

    In the property inspector
    Set the property ITEM of criteria with the first value LOV
    LOV region article - select the attribute of second LOV that specify the link between your two LOV.
    Required - True property

    You have defined the question of the criteria for the second LOV with the value of the first LOV, second lov runtime will filter the values based on the values first of lov.

    Hope this will help you. For more information you can always see the development guide.

    Arvind

  • How to make the same effects to many titles?

    I want to use an effect of its FFT filter to a bunch of MP3 files, but there are just too many that I can't do it one by one. Can someone tell me how to do the same effect to a bunch of files? Thank you!!!

    P.S. I wanted to do so that the MP3 sound file last so it sounds better on my stereo.

    The instructions are here.

  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How to make the same effect of scrolling like Tumblr (beginning Web page) with Adobe Muse?

    How to make the same effect of scrolling like Tumblr (beginning Web page) with Adobe Muse?

    I used Adobe Muse since the day it first came out, I played with the timings and effects of scrolling a lot. Tumblr landing page scrolling is very nice, I can see why you want a similar effect. Something similar could be created using the scrolling in AdobeMuse effects, especially if you familiarize yourself with the scrolling of the transparency. Start with a color block simple try it scroll up to double speed, then add items to the next page with the scrolling transparencies. Best practical work, use layers to do this, it makes things so much easier when you need to edit the page.

    Once you have played with the effects of scroll, you will begin to note how the elements of the Tumblr page can be re-created. This will be a sharp learning curve, but very doable in Muse for a similar effect. You will have a number of layers with page elements and new blocks of color on each layer when your done, fine tweaking the movement of scrolling and timings will make perfect. Good luck.

    If not, try adding an animation on board, you can create a Web page in Adobe Edge, but again... probably much more involved learning with this option.

  • How to use the same point of view as read only in the ADF and editable

    Hello

    How to use the same point of view as read only in the ADF and editable? How can we succeed in TF?

    -James

    Hello

    Steven Davelaar wrote a presentation on this 'building highly reusable Taskflows.

    From slide 14, that's where your use case comes into play

    Frank

  • How to install the same copy of creative suite on the second computer?

    Basically, I'm on a Macbook Pro and upgraded my hard drive. A

    After that I got the data using time machine, I was unable to access my CS6 applications, which all became the trial version. So I would like to know how to install the same copy of creative suite to the new disk.

    Transfer usually doesn't work - you must install using installation files, in the same way that you originally installed the programs.

    Download and Installation Help-

    https://helpx.Adobe.com/download-install.html

  • How to export the same MB size of my cr2 files in jpg or tiff files in Lr?

    How to export the same MB size of my cr2 files in jpg or tiff files in Lr?

    Let's say that my height is 22 MB, when I export the file in TIFF or jpg, although careful Iam with size of file settings, size, resolution, I can't manioukate how I want it.

    With jpg I tried everything, no matter what I do or a change in file size or meanless remains the same size - 7 mb instead of 22...

    Please advise,

    Best wishes

    T

    You should not even try to do it.

    JPG uses compression technology, so the files will have to be smaller than the original size of your RAWs. In addition, JPGs are 8-bit, while your RAWs are probably 14 bits, so the size needed to store your image will be smaller.

    Thus, there is absolutely nothing wrong with getting a 7 mb JPG of a 22 MB RAW.

  • How to select the same forms of color in the adobe flash program?

    How to select the same forms of color in the adobe flash program? for example, we assume that 10 forms of rectangle. 3 of them are red and others are green. I want to use only one method or click to select 3 of them. Please help me

    Thanks kunter

    You can use Ctrl + F.

  • How to use the same services-config for servers the and remote.

    My flex project works very well using the bottom but when I download my flash on the server I do not work, all the files and related paths are the same execpt remote is a linux server.

    <? XML version = "1.0" encoding = "UTF-8"? >
    <>services-config
    < services >
    < id = 'amfphp-flashremoting-service' service
    Class = "Flex.Messaging.services.RemotingService"
    messageTypes = "flex.messaging.messages.RemotingMessage' >"

    < destination id = "amfphp" >
    <>channels
    < Ref channel = "my-amfphp" / >
    < / channels >
    Properties of <>
    < source > * < / source >
    < / properties >
    < / destination >
    < / service >
    < / services >
    <>channels
    < channel-definition id = "my-amfphp" class = "mx.messaging.channels.AMFChannel" >
    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "
    < / channel-definition >
    < / channels >
    < / services-config >

    I think the problem is the line


    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "

    but I don't know how to use the same services-config for servers the and remote.

    I'll back up a bit.

    Breakpoint URLS are defined as follows in the services - config.xml:

    https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure

    The meaning of each of the tokens is clearer when we see them as part of a complete url. If your context root is set to http://localhost , then I have no idea how your application runs in any environment.

    If you leave the server.name and server.port chips in your configuration file, then they will be replaced when executing according to the location from which your application is served. However, the context.root token is replaced at the time of the compilation based on the value that you specify in Flex Builder or when calling mxmlc.

    In order to reuse your file services - config.xml, you must use the same context-root on your development environment and to your deployment environment.

  • How to repeat the same line more than once in the report 10g

    How to repeat the same line more than once in the report 10g

    If I print the barcode more than once
    in the report;

    Published by: user11106555 on May 9, 2009 05:50

    OK, thought it was just a recording, then try:

    SELECT COL
      FROM TABLE,
           (SELECT 1
              FROM DUAL
             CONNECT BY ROWNUM
    
  • How to filter the list of digital certificates for signing PDF

    Is it possible to change the configuration of the installation of the reader to filter the list of installed certificates that can be used to digitally sign documents?

    The filtered list is displayed when users try to select a certificate to digitally sign a document.

    Thank you.

    Hi Carla,.

    Unfortunately, Extended Key use is not one of the properties that you can apply.

    The things that you can set are:

    • appearanceFilter (i.e. to force the use of a custom signature appearance)
    • certspec (that is, the signing certificate must meet certain specific criteria)<----- this="" is="" what="" you="" are="" more="" interested="" in,="" more="">
    • digestMethod (i.e. to force the use of a specific cryptographic hash algorithm)
    • filter (i.e. to force the use of a specific security manager if you want to use something other than the one integrated in Acrobat)
    • legalAttestations (i.e. apply the motive or object of certification of signature)
    • Lockdocument (i.e. apply other changes to the document, after the signature is appended)
    • CDM (i.e. the rules for changing the document applied as part of a certification signature)
    • reasons (i.e. a list of one or more patterns signatory may use, in contrast to adding their own)
    • shouldAddRevInfo (i.e. to force the inclusion on the revocation (CRL or OCSP response) information in the PDF file)
    • subfilter (i.e. to require the use of a specific signature format. It's very mysterious)
    • timeStampspec (i.e. to require the use of a specific timestamp server)
    • version (ie the minimum version of Acrobat that can decrypt the signature. the only two options are to versions 6 or 8)

    The second element is the certspec, and that's what I was pointing you to. In the sake of discussion, think about what you can read in a certificate as an extension. The serial number is an extension, the subject is an extension, the valid date is an extension, etc. When a certificate is created, some of these extensions are necessary, other optional and you can even add an extension that are not publicly defined, and only you will know everything.

    Acrobat is able to enforce the signer to use a certificate that contains some, but not all known extensions. The extensions, it can enforce are:

    • Transmitter (i.e. to require the use of a certificate that is issued by a specific certification authority)
    • keyUsage (i.e. require the signatory certificate contain one or more of the nine possible values that can be included)
    • OID (i.e. requiring the certificate policy extension contains a specific value)
    • topic (i.e. require that the document is signed by a specific person using a digital ID specific)
    • subjectDN (i.e. require that the document is signed by a specific person, but they get to choose what your digital ID to use)
    • urlType (i.e. If the user is directed to the URL, there a web server where they can download a digital ID or a remote server of signature where the digital identification remains on the remote server)

    That's all. If she isn't one of these elements, then Acrobat is unable to argue that the article is available. Advanced use of the key is not on the list.

    Steve

  • How to filter the elements of web application with element Boolean field is checked (true) in module_webapps

    Maybe I forget something in the docs of BC but I can't find an answer to my question.

    How can I filter the web app items when a web-app-point-Boolean field (= true) in the backend?

    The web application itself is a list-web-app. What I want to achieve is, that when the web-app-point-field is selected, the web - app element (and its web-app-point-fields) will be displayed on the web page.

    The web page contains code that refers to the web-app-point-fields

    Hope you can help me with this.

    Thank you

    Sincerely, Carla

    Are you referring to the return of the page, using liquid, if the box is checked?

    For the rendered Liquid, you can do this:

    {% If this.} {["My Boolean field'] == '1'-%}

    The Boolean field is checked, show some fields or information are here.

    {%-%}

    The Boolean field is not checked so that you can show what you want here.

    {endif %}

    If you don't want to show anything if it is not checked, then proceed as follows:

    {% If this.} {["My Boolean field'] == '1'-%}

    Go only if it is enabled.

    {endif %}

Maybe you are looking for