Following paragraph after the GREP changeTo

Hi, I'm trying to locate the following paragraph after the changeTextPreferences.changeTo where I am applying a GREP to search for a word/s quotes

Thank you

The line in my code that is supposed to extract the index

var Currentparagrap = EnFrColumn.paragraphs.index;      does not work

my code:

trace ('Remove the quotes as "BOLD" the word/s between (column EN)');

   var results = "" ;

  var xmlElement = ""; / /-tag associated with the findGrep string xml

var strChangeTo = ""; / /-changeTo string with quotes

var strtChangeToNew = ""; . / /-ChangeTo quotes from string deleted

  if (EnFrColumn == "en"){

app.findGrepPreferences.findWhat = '(") (\\w+)(")' ;

results = this . document.findGrep ();

if(results != null)

for(var j = 0; j < results.length; j ++)

If (xmlElement.markupTag.name == 'ENMarginalNote') { }

If (app.findTextPreferences.findWhat = strChangeTo) { }

app.changeTextPreferences.fontStyle = "Bold Italic"

to change only the first word/s and the word/s in the next paragraph

story.changeText ();

}

app.findTextPreferences = NothingEnum.nothing;

app.changeTextPreferences = NothingEnum.nothing;

}

}

}

]

Thanks Peter, you saved me hours of work.

You are a genius...

Tags: InDesign

Similar Questions

  • Project Manager fails to cut after the new method to "consolidate and transcode.

    Greetings,

    I use first to create trailers and other equipment for a game studio. For the record, I use dxtory ( http://exkode.com/dxtory-features-en.html ), with the first/AE allows you to change the images and SOUL for rendering. A project may consist of several hundreds of GB's worth of the source footage. When made with a given project, historically I used method 'trim' first since the project manager to store copies ready images - as it is intended. This can turn a project with 400 GB of source down to a cup which is only 80 GB or more. This has worked well in the past, but because of the recent change to the new feature to "Consolidate and transcode", this operation will fail when the current creation.

    I created a full repro this for anyone who would like to try.

    The repro project: https://dl.dropboxusercontent.com/u/263501/misc/PremiereRepro/Copied_transcode_repro.7z

    I'm using Project Manager, select the following options:

    https://DL.dropboxusercontent.com/u/263501/Misc/PremiereRepro/pp_transcode_2.PNG

    This should lead to a MB avi ~9.9, which is 15 images of the larger video, the panoramic nature views slightly to the right.

    Instead, I get the following message after the end:

    https://DL.dropboxusercontent.com/u/263501/Misc/PremiereRepro/pp_transcode_1.PNG

    Looking at the directory for this new project "successful", the size of the file is the same as the source of the layer and without cropping footage actually occurred.

    The journal of the events, said the same thing:

    https://DL.dropboxusercontent.com/u/263501/Misc/PremiereRepro/pp_transcode_3.PNG

    This method worked 100% reliable before the new feature to "consolidate and transcode. It seems to be quite broken in the current one, at least for my purposes. I forgot something, or is this a bug? I am currently having to install an earlier version of first trying to work around this problem, but this obviously isn't the solution.

    You receive this warning as the selected Format (DNxHD MXF OP1a) does not support your combination of the size of the image, frame the combination of rate and on the ground. For example, DNxHD will support sizes 1280 x 720 or 1920 x 1080, while your source file is 1280 x 800.

    Try using a combination of Format/Preset that will support your settings of the source file. For example: Source of game (Mac) ProRes or CineForm Match (Mac and Windows).

    I hope this helps.

  • Add following paragraph style

    Can anyone help? I have a problem - long text (300 + pages) with questions and answers. Questions using the 'x' paragraph style and responses use the paragraph style 'y '. There are usually 3 to 6 paragraphs of the text in each response. I need to replace only the style of the first paragraph after the paragraph style 'z' issue, so that the structure of the styles would look like x-z-y-y-y-y-x-z-y-y... (now it looks like x-y-y-y-y-y-x-y-y-y...). Can it be done using scripts?

    InDesign CS6 Win 7 64 bit

    Claudius

    Hello

    Try again with a few changes in the last line:

    ...

    myStory.paragraphs [k + 1] .appliedParagraphStyle = my1stAnswer;

    ...

    That's because the. nextItem() could consume a lot of memory with great stories

    Rgds

  • In design mode, how can you add a paragraph after a div?

    Example of the problem:
    1. create a new HTML document
    2. Insert a div tag, insert > layout objects > tag Div
    3. type a few things
    4. How can I now put a paragraph after the Div? Or just get any content inserted after the div?

    I'm competent enough to use Code view, but I plead for a solution in Design mode.

    all the best
    Dave

    Thanks, but it wasn't quite what I was looking for.

    However, the good news is that I just thought about it how do.

    1. Select the div tag (press Ctrl + [a couple or several times])
    2. press once press the cursor right or down
    3 start typing, or press enter

    Beginning to insert after the div. Insert to the place before the left div use or the cursor keys.

    all the best
    Dave

  • GREP style match the characters after the last full stop

    Hello

    I am again styles GREP and syntax of regular expressions, hoping to find an answer here!

    Consider the following:

    Sun 10:00-16:00 hourly visits. Pre-book ONLY on 020 7333 8712. Last visit 16:00 Max 12 per tour. T d

    The T / d which follow the last point should be in italics (they are acronyms related to a key in the document I design). How can I tell the regular expression (GREP) to match any character after the last point? Between the first and line break meet all short? I can't get my head around :/

    Note:

    1. After the acronyms always end the paragraph
    2. T and d are not the only acronyms (think about another example: T D R G E)

    Thank you!

    Antonio

    Try a negative class with a look back to the full stop:

    (?<>

    It looks for all characters that are not full stop or paragraph return at the end of a paragraph.

  • Grep to add the tab character after the first character?

    Hello

    GREP assistants are able to help with a question?

    I am trying to add a tab character after the first character in line in a paragraph style. So, for example, I would like to a tab after the I, D, O and N in the following poem...

    Can Wincy spider climbed up the spout
    Down came the rain and swept away the spider
    Is out the Sun and dried up all the rain
    Now can Wincy spider went up the spout again


    Thank you!

    To find

    ^ \w

    Implement

    $0\t

  • No indent on the first paragraph only after the title

    I am importing a Word document and I encounter a few problems during Assembly.

    1. I don't want the first line of the first paragraph after a heading have a dash. I don't want the Indent on the following paragraphs.

    I created two new styles of paragraphs where firstbodyParagraph style does not have a dash in the 1st row and bodyParagraph style has a dash.

    Title 1A in the following style firstbodyParagraph and firstbodyParagraph a bodyParagraph in the following style. It works very well within Indesign. For example if I score of Heading1 until the next title and select use Heading1, and then click Next. But if I get a Word document where I've adapted Heading1 in word to my own defined inddHeading1 etc, this does not work no matter how I try to change the linking of the Word text in firstbodyParagraph or bodyParagraph. Following style is not honoured so to speak.

    2. Another problem is that my margin to the left and right margins settings change not is. Word document left only right margin and my body text paragraphs are to the left and right margins straight. A small sign appears on my paragraph style and I have to go through the whole of the document paragraph by paragraph to click away.

    To the text block, you can break the flow of the text on the first image, substitute the paragraph and style of object of the framework and then create a link to the stream. If a stream of text associated with various substitutes:

    Click on the first image port, followed by a click in the first frame to untie the lead

    All select and clear the replacements for the paragraphs of the text styles and select the image and erase his substitution. Italic Blue Note not style loses her style because she has no style applied character:

    Renfilez:

  • After the installation of Sierra, websites follow me like crazy!  This has not happened before.  Why this is happening and what can I do to stop it?

    After the installation of Sierra, Web sites started to follow me like crazy!  This has not happened before.  Why this is happening and what can I do to stop it?

    What are your privacy settings in Safari preferences.

  • Windows Update fails to install (code 80070002) repeatedly after following all of the recommendations

    As said in the title, my Windows Update no longer works. It says I have a download important (SP1), but will not be installed. Originally, it started downloading and was 6% before giving me the error code 80070002. After that, every subsequent attempt read Ko 0 / 0% and immediately gave the same error message. I tried to use Microsoft FixIt and following the instructions in the database. I also went through the answers to the question by others, after trying what worked in the case, mine is still not working. I get the same error code.

    I'll try to manually install service packs. Even if it is successful, however, I would still of course my updater in working condition.

    Edit: try to install SP1 resulted in the same error code. The tag on the subject led me to download the system update tool. Any other input?

    Hello

    1 are. what fixit you referring?
    2 have you made any changes to the computer, before the show?

    Method 1:
    Run the fixit available at the following link.
    The problem with Microsoft Windows Update is not working
    http://support.Microsoft.com/mats/windows_update/en-us

    Method 2:
    Run the tool on your computer system update.
    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2
    http://support.Microsoft.com/kb/947821

    Method 3:
    Temporarily disable any firewall and antivirus installed on the computer, and then try to install Windows Vista Service Pack 1.
    Note: Runs the computer without antivirus software or firewall is a potential threat to the computer; don't forget to activate the security software after completing the troubleshooting steps and after identifying the problem.

    See also,
    How to troubleshoot Windows Vista and Windows Server 2008 service pack installation issues
    http://support.Microsoft.com/kb/947366/en-us
    It will be useful.

  • After three days of my 3g modem works fine, I can't access the internet more because of what follows: "Error 734: the PPP Link Control Protocol was stopped.

    Last week for mobile connection, I bought a 3G modem on my laptop. After three days, works very well, I can't access the internet more because of what follows: "Error 734: the PPP Link Control Protocol was stopped. It occurs when I try to establish a Dial-Up connection.

    I searched the Internet and found a section of troubleshooting on the Microsoft Web site. However, although I have followed all the steps, the error continues. I've already uninstalled and again installed the program, does not. I use Windows Vista Home Premium.

    What should I do now?

    original title: 3 G Modem

    Hello

    I suggest you to contact your internet service provider for assistance.

  • After the system recovery running following a power outage, my user profile is lost. Unfortunately, he is also the administrator account. How to retrieve the profile or create a new?

    After the system recovery running following a power outage, my user profile is lost.  Unfortunately, he is also the administrator account.  How to retrieve the profile or create a new?

    ·                        Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    If the above does not work:

    ·                        http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    See if the information in the above tutorial will help you.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    Difficulty of a corrupted user profile

    After creating the profile, you can copy the files from the existing profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/kb/947242

    A temporary profile is loaded after you connect to a Windows Vista-based system

    See you soon.

    Mick Murphy - Microsoft partner

  • values based on the following logic 'values after the first values of two '_' and before last '_' values '.

    Hi all

    I need the values according to below 2logics in a single select query using instring and substring

    1 values based on the following logic 'values after the first values of two '_' and before last '_' values '.

    2 values based on the following logic 'values after the first values of two '_' and before last'-'values '.

    EXM:

    Entry: ABCD_EFGH_IJKLM - NOPQ_XYZ output: IJKLM - NOPQ

    Entry:. ABCD_EFGH_IJKLM - NOPQ output:IJKLM

    Thank you.

    Check the following

    WITH DATA1 AS

    (SELECT "ABCD_EFGH_IJKLM - NOPQ_XYZ" double val)

    UNION ALL

    SELECT 'ABCD_EFGH_IJKLM - NOPQ' double val

    )

    SELECT SUBSTR (VAL, INSTR(VAL,'_',1,2) + 1, DECODE (BIGGER (INSTR (VAL, '_',-1, 1), INSTR(VAL,'-',-1,1)), INSTR (VAL,'-', - 1, 1), LENGTH (VAL) + 1, INSTR (VAL, '_',-1, 1))-(INSTR (VAL, '_', 1, 2) + 1))

    OF DATA1;

    Concerning

    Salim

  • During the typing of text after paragraph 4, the text jumps the same block of text there. Not sure if it's because of a page break. Help, please

    During the typing of text after paragraph 4, the text jumps the same block of text there. Not sure if it's because of a page break. Help, please

    And make sure that you do not use the Enter key on the numeric keypad.

  • Get the following message after closing or printing a document: the Organizer database is damaged and will be rest next time Acrobat is launched.

    Get the following message after closing or printing a document: the Organizer database is damaged and will be rest next time Acrobat is launched.

    Hi kathleenm92885635,

    Please check the solution in this doc. KB: http://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html

    Let me know how it goes.

    Kind regards
    Nicos

  • First paragraph of the text is larger than the following paragraphs

    I have a page with a lot of text on the subject. For some reason, the first paragraph seems larger than the following paragraphs. But all that I checked shows that they are identical in terms of specs. I copied/pasted/no formatted/spruced up... but no matter what I do, that first paragraph is looking to be bigger! Is this some secret parameter that I don't know?

    I took screenshots and they are indeed the same size. But that first paragraph seems just different! Why would it be?

    I have attached a screenshot. Let me know if my client and I are just seeing things.

    Julie

    example.jpg

    Seems to be the same size.

    See the image below, the first line of paragraph 2, overlapping the first paragraph. (o during even as o in the company)

    Can be an illusion of perspective due to all caps in the first paragraph.

Maybe you are looking for