5 Replies Latest reply on Apr 14, 2014 10:36 PM by Ronald63

    FindChangeByList script FAQ

    HarveyLiu Level 1

      I was wondering if Indesign Find and Change By List that can find something except one thing, for example:

       

      I want to find All the Mr. xxxxx, except Mr. Ko and then change font style.

       

      How can I do that.

        • 1. Re: FindChangeByList script FAQ
          Ronald63 Level 4

          Hi Harvey,

           

          The GREP pattern : "(Mr.\s(?!Ko\s)\w+)" include in FindChangeList.txt


          grep     {findWhat:"(Mr.\\s(?!Ko\\s)\\w+)"}     {appliedCharacterStyle:"Name"}     {includeFootnotes:true, includeFootnotes:true, includeHiddenLayers:true, wholeWord:false}

           

           

          Regards

          • 2. Re: FindChangeByList script FAQ
            HarveyLiu Level 1

            but in thins case:

             

            Afghanistan

            Albania

            Algeria

            Andorra

            Angola

            Anguilla

            Argentina

            Armenia

            Aruba

            Australia

            Austria

            Azerbaijan

            Bahamas

            Bahrain

            Bangladesh

            Barbados

            Belarus

            Belgium

            Belize

            Benin

            Bermuda

            Bhutan

            Bolivia

            Bosnia and Herzegovina

            Botswana

            Brazil

            Brunei Darussalam

            Bulgaria

            Buma (Myanmar)

            Burkina Faso

            Burundi

            Cambodia

            Cameroon

            Canada

            Cape Verde

            Cayman Islands

            Central African Republic

            Chad

            Chile

            China

            Colombia

            Comoros

            Congo

            Cook Islands

            Costa Rica

            Cote d`Ivoire Republic

            Croatia

            Cuba

            Cyprus

            Czech Republic

            Dem Rep of Congo

            Denmark

            Djibouti

            Dominica

            Dominican Republic

            East Timor

            Ecuador

            Egypt

            El Salvador

            Equatorial Guinea

            Eritrea

            Estonia

            Ethiopia

            Finland

            France

            French Polynesia

            Fuji

            Gabon

            Gambia

            Georgia

            Germany

            Ghana

            Gibraltar

            Greece

            Grenada

            Guatemala

            Guinea-Bissau

            Guyana

            Haiti

            Honduras

            Hong Kong

            Hungary

            Iceland

            India

            Indonesia

            Iran

            Iraq

            Ireland

            Israel

            Italy

            Jamaica

            Japan

            Jordan

            Kazakhstan

            Kenya

            Kiribati

            Korea

            Kuwait

            Kyrgyzstan

            Laos

            Latvia

            Lebanon

            Leone

            Lesotho

            Liberia

            Libya

            Liechtenstein

            Lithuania-立陶宛語

            Luxembourg

            Macao

            Macedonia

            Madagascar

            Malawi

            Malaysia

            Maldives

            Mali

            Malta

            Marshall Islands

            Mauritania

            Mauritius

            Maxico

            Micronesia

            Moldiva

            Monaco

            Mongolia

            Morocco

            Mozambique

            Namibia

            Nauru

            Nepal

            Netherlands

            New Caledonia

            New Zealand

            Nicaraque

            Niger

            Nigeria

            Norway

            Oman

            Pakistan

            Palau

            Panama

            Papua New Guinea

            Paraguay

            Peru

            Philippines

            Poland

            Portugal

            Qatar

            Romania

            Russia

            Rwanda

            Saint Christopher (St.Kitts) and Nevis

            Saint Lucia

            Saint Vincent and the Grenadines

            Samoa

            San Marino

            Sao Tome and Principe

            Saudi Arabia

            Senegal

            Serbia and Montenegro

            Seychelles

            Sierra Leone

            Singapore

            Slovakia

            Slovenia

             

            I want to except Austria, how can I do that?

            • 3. Re: FindChangeByList script FAQ
              Jump_Over Level 5

              Hi,

              Since this is a FindChangeList ==>

               

              1. do apply proper charStyle for all;

              2. do step back only for Austria

               

              Jarek

              • 4. Re: FindChangeByList script FAQ
                HarveyLiu Level 1

                Not really in such as this easy situation.

                 

                If in difficult situation, for example, the different country name appear in different place frequently, do step back not that easy.

                • 5. Re: FindChangeByList script FAQ
                  Ronald63 Level 4

                  Hi Harvey,

                   

                  You can do this in FindChangeList.txt

                   

                  grep     {findWhat:"(Afghanistan|Albania|Algeria|Andorra)"}     {appliedCharacterStyle:"Name"}     {includeFootnotes:true, includeFootnotes:true, includeHiddenLayers:true, wholeWord:false}

                   

                  Regards