Applying a style the nth line of any paragraph using GREP

Hi,
I'm attempting to apply a character style to the third line of a paragraph that is broken with forced line breaks.
By doing a GREP search I can find the first two lines by using the following string:
.*\n.*\n
So, I reasoned that by I'd be able to find the following line by using a positive lookbehind, but no dice. . .
It doesn't work.
Does anyone have any ideas?
Thanks,
Chris

You don't need GREP for this if you are using CS4 or later.  Instead create a nested line style as part of the paragraph style definition (it's under Drop Caps and Nested Styles). Set none through n-1 lines, then your style through as many lines as you like.

Similar Messages

  • I am doing a cover for O.M.G. by usher and it requires 4 to 5 different vocal layers. My first "line" of vocals keeps disappearing even after i save it. So I have to redo everything on the top line. Any help?

    I am doing a cover for O.M.G. by usher and it requires 4 to 5 different vocal layers. My first "line" of vocals keeps disappearing even after i save it. So I have to redo everything on the top line. Any help?

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • How to modify Exchange 2013 TXT(SMS) notifications to not include the subject line or any of the message body of emails

    We have a group of users who are not permitted to download/save any emails they receive onto public or personal devices, they are only allowed to log in manually and view their mail through OWA (I realize there are ways to use OWA to download mail, however
    the users are explicitly forbidden from doing this, and any countermeasures that can be put in place, are/will be).
    With our new Exchange 2013 server, it seems it has the built in capability to send TXT(SMS) notifications instantly when a user receives mail.  We would like to allow our users to utilize this feature, however currently, the notification includes not
    only the sender of the email, but also the subject line and part of the message body.  As it stands, we can't have this as part of the email would then be saved on their device.
    I am wondering if there is a way to modify Exchange 2013 to not include the subject or message body, so that our users could at least get an instant notification 1-that they have a new email and 2-who it's from?
    Any information would be appreciated, thanks!

    We can configure SMS Text Message Notification for various situation like Calendar notifications, Voice mail notifications, Email notifications if your user's Mailbox hosted in Exchange Server 2013
    To set up your phone to receive text messages when you want to have Calendar notifications, Voice mail notifications, Email notifications use the steps as follows
    Note: Text message fees are applicable and it will appear on your phone bill.
    Login to Outlook Web App, click Options > See All Options > Phone > Voice Mail tab.
         In the Notifications section, choose one of the following options:
    Calendar notifications... 
    Voice mail notifications... 
    Email notifications using an Inbox rule...
    Turn On Notification
    First step is to turn on the notification of text messaging. Click Turn on Notifications
    Select Setup Notification: Need to select your operator,
    It will request to provide your Mobile Operator.
    Note: As of now Exchange Server 2013 supports only the below list of operators.
    Locale: United State
    Mobile Operator: AT & T, Sprint PCS, T-Mobile, Verizon Wireless
    Locale: Canada,
    Mobile Operator:Bell Telus Mobility
    Locale: Romania
    Mobile Operator:Orange Romania
    Provide your telephone number. It will send you the passcode on your mobile number.
    Type the passcode for confirmation
    Calendar Notifications:
    On Selecting Calendar Notification: Select the option based upon your requirement.
    Email Notification Using Inbox Rule:
    Similarly for the text messaging for the email notification, select the option based upon your requirement and setup them up
    Exchange Queries

  • How to Capture the File Names of any extension using ssis

    Hello,
    Can you please let me know on how to Capture the File Names of any extension(EG : xls,text,.csv etc) at a time  and stores in excel file  using SSIS?
    Any help would be appreciated.
    Thanks,
    Vinay s

    If you need to act differently on each file type separately or if not all types of files are wanted, i.e. the Filespecifier cannot be *.* in the Foreach loop:
    In the ssis package
    make 3 variables:
    to store the file extension, e.g. User::CurrentExtension of type string
    to store the filename found in the directory: @CurrentFilename
    to store the name of the directory where the files reside e.g. User::CurrentDirectory
    make a foreach loop of type Foreach Item enumerator:
    in the items list you add each file extension that you need
    txt
    csv
    xls
    xlsx
    As Variable mappings map the CurrentExtension to Index 0
    Inside this foreach loop add another foreach loop of type Foreach File enumerator, in the collection Expressions
    add Expression Directory , set to @[User::CurrentDirecotry]
    add Expression FileSpec, set to "*." + @[User::CurrentFileExtension]
    In the Variable mappings, map Variable user::CurrentFilename to Index 0
    Inside this loop use Execute SQL Task to insert the filename in a Excel connection.
    Jan D'Hondt - SQL server BI development

  • How to insert a character and paragraph break at the beginning of a paragraph using Grep

    Dear Community!
    I am stucked...
    I have several books in indesign, which I want to export into epub. I have a standardized procedure, to be able to assign the task to students.
    My problem i I have a paragraph style 'heading2' and I would like to insert a paragraph break before which is styled 'new page'.
    Here is the theory I have thought about:
    -with find and change find the style 'heading2'
    -insert a special character + paragraph break before the first character of the paragraph
    -with a second find and change find the special character
    -replace with nothing and style with 'new page'
    My question is how to insert with grep (?) before the first character anything.
    Please help me!
    Thanks in advance
    ND

    Look in the flyout panel of your Paragraph panel.
    (Or in the Online Help -- a resource a lot of people seem to overlook... It's even *called* "Keep Options". ...
    >I have a problem along these lines that I have not found the answer to by searching, and neither have I been able to start a new discussion on this. (These forums are kind of hard to figure out)
    ... on the top right of THIS web page I can see a heading "Actions", with below it the text "Start a discussion" ...)

  • When creating a resume and not using the provided templates... How do you set the page up to all you to utilize left and right flush margins at the on the same line?  Any other tips for setting up the document for a resume would be appreciated!  Thanks...

    For an example......
    SUMMARY
    ksdlkasjdflksdmflkagflkaglaksdfmlksadmflaksmdflaskdmflaksfgalkfdgndflkngladfknga lmfv,amsdglkaglkajglkjalkgfmlmv.zmxcv.mldkglksdgjlskdfjglskdfglkdsfgmlsdkfmg
    PROFESSIONAL EXPERIENCE
    Comapny                                                                                                                                                                                                                 Location
    Title                                                                                                                                                                                                                            Date
    This side left flush                                                                                                                                                                              This side right flush
    Also, as another option how would I set up a template save it to use for motifying my resume according to the specific job inwhich I am applying?
    Thanks!

    That is poor type layout.
    European languages read left to right, a ragged left edge is the worst possible layout for listed data.
    The only circumstance you should use the left/right alignment is in header/footers for running heads and page numbers wheer they are widely separated and therefore easy to scan as individual short snipetts of text.
    Peter

  • Any chance of increasing the horizontal line height in ADG?

    Hi All,
    I am using AdvacnedDataGrid with Horizontallinesdisplay set
    to true.
    Can I increase the height of the line, so that the line would
    look bold or thicker?
    Regards
    Surendran

    "COKFlex" <[email protected]> wrote in
    message
    news:g7e5d1$m0v$[email protected]..
    > Hi,
    >
    > Thanks for the suggestion. If I try separatorSkin I cant
    change the height
    > of
    > the skin through any proerpty. Since I cant see any such
    property.
    No, you'd need to extend the skin to make this happen.
    > What all I want to know is about whether we can change
    the height of the
    > horizontal line through any property?
    You might also be able to extend AdvancedDataGrid itself.

  • How many items can be displayed on the same line in APEX form?

    Hello,
    I have 5 items that I want to display on the same line in a form, but the fifth item is displaying on the next line eventhough I defined it as "no" in Begin On New Line and "no" in ...Field. Is there a limmitted number of items that can be display on the same line? Any help is greatly appreciated, thanks so much in advance.
    I want the 5 items to be display like this,
    Appendix1 _____ 2 _____ 3 _____ 4 _____ 5 _____
    But it is displaying,
    Appendix1 _____ 2 _____ 3 _____ 4_____ 5
    Thank you,
    MT

    If you define the 'Begin On New Line' property to 'No', it should work. I just tested it. Do you absolutely need to set the 'Begin On New Field' property to 'No'? That might change the facts.
    Best regards,
    Mathieu

  • Javascript to pull a PDF field into the Subject line of email?

    I've created a fillable PDF form using Pro X.  I'd like to program the Submit button so that once in the email portion, the subject line would automatically pull 3 specific fields from the PDF file.
    Example:  After hitting "Submit"....once in the email, I'd like the Date, Vendor Name, and PO # from the PDF form to automatically pull into the Subject line.
    I have to PDF the complete document and go through the Desktop Email Application on my PC.
    Thank you!

    Hello Everyone,
    I am having the same issue as tlg814 with needing three fields to pull into the subject, and I followed the blue print of the code as well, but I am only getting one field to populate in the subject line.  I am using Acrobat XI. Here is my code:
    Mouse up> Run a JavaScript
    var parts = getField("SR#", "Urgency", "Ship To").value
    this.mailDoc({
    cTo: "[email protected]",
    cCc: "[email protected]",
    cSubject: parts,
    cMsg: "Please create a Parts Request for the items in this email. Thanks"
    Any thoughts as to why it is not pulling all three fields?
    Thanks

  • Why does the OPEN WEB LOCATION Box msg keep opening when I try tro type in the name of someone or type anything in the subject line of Yahoo mail? I have to ke

    When in Yahoo mail, the OPEN WEB LOCATION box opens for each letter I try to type in in the "To" line and/or the "Subject" line of any new e-mail to someone. I type a letter, the Box opens, and I cannot type anything in the e-mail window anywhere until I close the box. I close the box, type another letter, and the OWL Box open gain. It takes forever to type anything. This started when I updated Firefox to the new 21 version. I Uninstalled and reinstalled Firefox. No help. I uninstalled 21 and re-installed 19 (I was using 19 with no problems until today). No help. The problem will not go away. I note that others have complained of this problem. Is there a fix yet? I have been forced back to IE in the meantime.

    hello, you have two extension present in your profile (DownloadTerms 1.0 & WhiteSmoke New 10.16.2.509) that could be considered malware.
    please[[Reset Firefox – easily fix most problems|reset firefox]] and see if those entries are still present afterwards. also go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    [[Troubleshoot Firefox issues caused by malware]]

  • How to set a dropdown to the blank line value

    Hi all,
    maybe a very easy question.
    How can I set a dropdownbyindex value to the blank line?
    If I use e.g.
    wdContext.currentActionsElement().setDescription(null);
    it adds another blank line among the values and if I try with:
    wdContext.nodeActions().setLeadSelection(0);
    it doesn't work.
    Any suggestion?
    Thanks in advance.
    Angelo

    wdContext.nodeActions().setLeadSelection(IWDNode.NO_SELECTION);
    Check that node selection is not mandatory (i.e. selection cardinality is 0..1, not 1..1).
    If this does not help set initializeLeadSelection to false for this node.
    VS

  • Selecting words in the beginning of a LINE (not a paragraph)

    Hi
    I'm trying to avoid certain combinations to fall at the beginning of any line in a body text.
    How do I select a particular character only if it occurs in the beginning of a line (but in the middle of a paragraph.
    For instance I want to select the char "a" only if it occurs at the left margin of a column
    I only find the location marc "beginning of a paragraph" (^), or beginning of a word,  but not the beginning of a line.
    It could be as grep, or as a script.
    Anybody?
    Thank you
    /javier

    It would need a script. GREP is not aware of the individual lines in a paragraph.
    The good news is, InDesign's scripting language is fully aware of lines. There are, on first sight, two possible ways of locating all a's at the start of a line. Either search for all a's (doesn't need a GREP, but you must remember to set caseSensitive in the FindChangePreferences) and loop over them, checking for the ones that are at the start of a line, or check all lines one by one, checking for the ones that start with an 'a'.
    Both options seem equally slow I guess what to use depends on your text, and what you'd want to do when one is found. On that note: you must process them from last found to first, because if you change something, it may have an effect on all text that follows.

  • Xfa.resolveNode is not writing values to the last line

    Hi,
    I have an issue with the xfa.resolveNode function, i have added at comment //
    at below coding at the line where the issues is occuring, please advise what can be done in order to make the loop works and enter the loop for the last line.
    Any help/comment is highly appreciate!
    FormQuoteNotification.bdyMain.frmTableBlock.tblTable.rowTableSection.rowTableItem.colNetV alue::initialize - (JavaScript, client)
    var rowCount = tblTable._rowTableSection.count;
    var rowNo = new Array(rowCount);
    var i = 0;
    var j = 0;
    var k = 0;
    var comboType = new Array(rowCount);
    var comboPrice = new Array(rowCount);
    var productID = new Array(rowCount);
    var finalType = new Array();
    var finalPrice = new Array();
    var finalRow = new Array();
    var datasum = 0.000;
    for(i=0; i<rowCount; i++){
    rowNo[i] = xfa.resolveNode("tblTable.rowTableSection["+i+"]").rowRemarkRow.frmItem.txtLine.rawValue;
    productID[i] = xfa.resolveNode("tblTable.rowTableSection["+i+"]").rowRemarkRow.frmItem.txtProduct.rawVal ue;
    comboPrice[i] = xfa.resolveNode("tblTable.rowTableSection["+i +"]").rowRemarkRow.frmItem.frmNetValue.decNetValue.rawValue;
    comboType[i] = xfa.resolveNode("tblTable.rowTableSection["+i+"]").rowRemarkRow.frmItem.txtCombo.rawValue ;
              for(j=0; j<rowCount; j++){
                    if(j==(rowCount-1)){ // to check if this is the row before the last one
                        if(comboType[j]== comboType[j-1]){
                         finalType[k] = comboType[j];
                         datasum += parseFloat(comboPrice[j]);
                            finalPrice[k] = datasum;
                        else{
                         if(comboType[j] == null || comboType[j] == ""){
                          finalType[k] = "NotCombo";
                          datasum += parseFloat(comboPrice[j]);
                          finalPrice[k] = datasum; 
                          finalRow[k] = rowNo[j];
                          k=k+1;
                          datasum = 0.000;
                         else{finalType[k] = comboType[j];}
                    else{
                        if(comboType[j]== comboType[j+1]){
                            finalType[k] = comboType[j];
                            datasum += parseFloat(comboPrice[j]);
                            finalPrice[k] = datasum; 
                             if(finalRow[k] == "" || finalRow[k] == null){
                              finalRow[k] = rowNo[j]; 
                        else{
                         if(comboType[j] == null || comboType[j] == ""){
                             datasum += parseFloat(comboPrice[j]);
                          finalType[k] = "NotCombo";
                          finalRow[k] = rowNo[j];
                          k=k+1;
                          datasum = 0.000;
                         else{                      
                          finalPrice[k] += parseFloat(comboPrice[j]);
                              k=k+1;
                             datasum = 0.000;
    if(finalType[0] != null && finalType[0] != ""){
    for(var n=0; n<rowCount; n++){
    for(var m=0; m<rowCount; m++){
    //at this line, for the last row, even it is matching the if statement, the script is not entering for the last match of loop.
    //example, if rowCount = 2, when m=1, n=1, and the if statement is matching, , but it is simply not displaying the "XXX" for the line of n=2
    if(xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colCombo.rawValue == finalType[m]
       && xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colCombo.rawValue != ""
       && xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colCombo.rawValue != null)
        xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colProduct.rawValue = "XXX";
        //display comboprice
        if(xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colLine.rawValue == finalRow[m] &&   xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colCombo.rawValue == finalType[m]){
         var pricetodisplay = finalPrice[m].toFixed(3)+ " KWD";
         xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colNetValue.rawValue =   pricetodisplay ; 
           if(xfa.resolveNode("tblTable.rowTableSection["+n  +"]").rowTableItem.colNetValue.rawValue == null || xfa.resolveNode("tblTable.rowTableSection["+n  +"]").rowTableItem.colNetValue.rawValue == " " || isNaN(xfa.resolveNode("tblTable.rowTableSection["+n  +"]").rowTableItem.colNetValue.rawValue)){
               this.rawValue = null;

    Wouldn't this be better posted in a developers forum? This forum is for Using an iPad, not writing programs for one.

  • Horizontal lines in any exported video file type in Elements 9

    I have switched from Elements 4 to Elements 9 for my video production, and I have not been able to get rid of the horizontal lines in ANY file type or with any setting.  I have tried everything I've read so far on these forums.
    A lot of comments say that exporting to WMV is the problem, but I export hundreds of videos to WMV with Elements 4 on my 32-bit XP computer.
    Whether in 32-bit XP or on my new super powerful 64-bit Windows 7 computer, Elements 9 renders lines with motion. The screen shot shows a typical example.  Butterflies as flying lines, and the edge of a tree, as I panned, has a shadow along it made of many lines.

    I said in the last sentence of the last post that I only get the red line if I add an effect or transition, just as you predicted.
    I brought up the older camera because Elements 4.0 and my XP computer handled every bit of DV or HDV footage from that older camera, while Elements 9 on the XP computer and my new super computer won't handle ANY footage properly if it contains rapid movement.
    I make videos to use on local computers and to be viewed over the internet.  I use the WMV Lan setting when I export.  It worked perfectly with 4.0.
    Now, this is exactly where I see all attempts in other forums going astray--the assumption that WMVs may be the problem inherently.  I have processed hundreds of WMVs with 4.0 and they look great at any viewing size on the screen and on a local computer or viewed over the internet. 4.0 has worked perfectly for this.  I'm stumped!
    This combing appeared in a Flash video I made yesterday.  I sure appreciate the time you put into helping us deperate people.

  • Why isnt the time line showing up normal?

    Why isn't my tome line normal? I am unable to load my videos to the tie line in any way. It is a blank box and the best i can do some times is get the audio to show green, I have since gotten that over to the right of the box as normal but still no time line icons such as video or audio. I uninstalled Premier Pro and reinstalled it but still the same. I am also only getting a few options when I click on the file/edit/sequence command buttons at the top, the are all mainly unshaded. What the hell?

    Nobody can help you without proper system info and otehr details. That aside, such questions are best asked in the product forums, the Premiere Pro one in your case. Sounds like you need to update your graphics driver and configure it properly - assuming your hardware is actualyl supported....
    Mylenium

Maybe you are looking for