ID-CS4 -JS - - Can't find using Grep options - Reg.

Dear All,
  Here I have a doubt about the "Find / Change Grep" in InDesign CS4.
I can find the "Force Line Break" using the Grep options : ([a-zA-Z]*)-\\n([a-zA-Z]*)]
Some time this Grep is working, some time this is not working ...
I don't know what I made the mistakes. Please let me know any one can suggest and modify the below coding.
I supposed to close and re-open the InDesign CS4 and ExtendScript tool, then First time this Grep is working fine...
So I confused this. Please any one can give me a solutions.
//================= Coding ==================//
   var myDoc=  app.activeDocument;
       app.findChangeGrepOptions.includeFootnotes = false;
       app.findChangeGrepOptions.includeHiddenLayers = false;
       app.findChangeGrepOptions.includeLockedLayersForFind = false;
       app.findChangeGrepOptions.includeLockedStoriesForFind = false;
       app.findChangeGrepOptions.includeMasterPages = false;
       app.findGrepPreferences.findWhat = "([a-zA-Z]*)-\\n([a-zA-Z]*)";
         mySearch = app.findGrep();
         for(var myForce =0; myForce<mySearch.length; myForce++)
          app.select(mySearch[myForce]);
          var mySel = app.selection[0];
           myConts = mySel.contents;
          app.select(mySearch[myForce]);
          var mySel = app.selection[0];
           myConts = mySel.contents;
          app.findGrepPreferences = NothingEnum.nothing;
           app.changeGrepPreferences = NothingEnum.nothing;
//=============== End of the Coding ========================//
Please any one can kindly help me....
Thanks & Regards
T.R.Harihara SudhaN

Dear Vaasu Devi,
  Many thanks for your reply...
I found, where I mistaken....
Here My Correct Code :
//================= Coding ==================//
   var myDoc=  app.activeDocument;
       app.findChangeGrepOptions.includeFootnotes = false;
       app.findChangeGrepOptions.includeHiddenLayers = false;
       app.findChangeGrepOptions.includeLockedLayersForFind = false;
       app.findChangeGrepOptions.includeLockedStoriesForFind = false;
       app.findChangeGrepOptions.includeMasterPages = false;
       app.findGrepPreferences.findWhat = "([a-zA-Z]*)-\\n([a-zA-Z]*)";
         mySearch = app.findGrep();
         for(var myForce =0; myForce<mySearch.length; myForce++)
                    app.select(mySearch[myForce]);
                     myConts = mySearch[myForce].contents;
                     $.writeln(myConts);
          app.findGrepPreferences = NothingEnum.nothing;
           app.changeGrepPreferences = NothingEnum.nothing;
//=============== End of the Coding ========================//
app.select() is working fine, meanwhile, I get the selection of the contents. That time only its throw the Error message. So I used to divert, app.select and Select Value of Contents to pass the "myConts" variable then I will do the other funtions.... Now My this time I'm not getting the Errors...
Thanks Once again
Regards
T.R.Harihara SudhaN

Similar Messages

  • I just got my new iPad and I can't find the hotspot option in settings ? Plz guid me on how to turn my hotspot on in that case if I can't even see the option !!

    I just got my new iPad and I can't find the hotspot option in settings ? Plz guid me on how to turn my hotspot on in that case if I can't even see the option !!

    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • HT201263 I can't find software update option in general in settings???

    I can't find software update option in general in settings???

    If you are using iOS 4 (or earlier) there is no Software Update in Settings. That feature was first added in iOS 5.
    To update you will have to connect your iPad to iTunes on a computer (preferably the one you sync with and backup to).
    See here: http://support.apple.com/kb/HT4972

  • HT2534 I can't find the "None" Option in the payment option, what should I do?

    I'm setting up my Apple ID to register it to App Store but as I continue to my Payment option, I can't find the "None" option. I don't have a credit card so I won't can't fill up the card number or something. How can I continue with this?

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (must be a valid email address; don't use the one you have created earlier)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

  • When I swipe up to get the control center on my iPad I can't find the airdrop option

    When I swipe up to get the control center on my iPad I can't find the airdrop option - I see airplay, but no airdrop

    Pay attention to the models of the ipads. For example, my ipad 2 can't and won't ever have airdrop. So if you have an older one that could be why you can't see it.

  • I can't find the menu option in iTunes to authorize my PC.  Where is it?

    I can't find the menu option in iTunes to authorize my
    PC.  Where is it?

    Press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
    (113428)

  • I can't find the Preferences option in the help menu on Photoshop.  Can you tell me where it is?

    My problem is that I can't find the Preferences option in the help menu on Photoshop.  Can you tell me where it is?

    For Windows, it's under the Edit menu or Ctrl k.

  • I'd like to update the ISO 4.2.1 on an old iPod Touch to ISO 7.  Can't find "Software Update" option under General Setting.  Where might I look for the option to slightly upgrade the ISO for this device?

    I'd like to update the ISO 4.2.1 on an old iPod Touch to ISO 7.  Can't find "Software Update" option under General Setting.  Where might I look for the option to slightly upgrade the ISO for this device?

    You likely have a 2G iPod and those can go higher than 4.2.1
    A 3G can go to 5.1.1
    IA 4G, with cameras can go to iOS 6.1.6.
    The 5G, also with cameras can go to iOS 8
    To update
    The Settings>General>Software Update comes with iOS 5 and later.
    Connect the iPod to your computer and update via iTunes as far as your iPod model allows
    iOS: How to update your iPhone, iPad, or iPod touch
    - A 2G to 4.2.1. Requires iTunes version 10 or higher. If a Mac it requires OSX 10.5.8 or later.
    - A 3G to 5.1.1  Requires iTunes version 10.5 or later
    - A 4G to 6.1.6  Requires iTunes version 10.7 or later. For a Mac, that requires a Mac with OSX 10.6.8 or later
    - A 5G to iOS 8 Requires iTunes 11.4 or later if you update via iTunes
    Identifying iPod models                                                         

  • I am trying to export my bookmarks to an HTML file, but the "organize" option does not appear when I click on the "bookmarks" option on the menu bar. How can I find the organize option?

    How can I find the "organize" option or export my bookmarks to HTML when no "organize" option appears when I click on the "bookmarks" word on the menu bar?

    Menu changed to show "Show All Bookmarks" see item #7 "Menu changes (wording)" in
    You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

  • I downloaded the lastest Facebook app upgrade to my iPad 2 and nowhere can I find the chat option. When I downloaded it to my iPhone4 it was there. Can anybody help me?

    I downloaded the latest Facebook app ugrade to my iPad 2, and nowhere can i find the chat option. I also downloaded it to my iPhone4 and the chat option is there. Can somebody help me?

    The first thing that has to be done with a new iPad is to activate it via iTunes. What version of iTunes, and what spec computer, have you got ? The iPad's minimum requirements are (from http://www.apple.com/ipad/specs/)  :
    Mac :
    Mac computer with USB 2.0 port
    Mac OS X v10.5.8 or later
    iTunes 10.2 or later recommended
    (free download from www.itunes.com/download)
    iTunes Store account
    Internet access
    PC :
    PC with USB 2.0 port
    Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    iTunes 10.2 or later recommended
    (free download from www.itunes.com/download)
    iTunes Store account
    Internet access
    Edit : there is troubleshootin here :
         pc - http://support.apple.com/kb/TS1538
         mac - http://support.apple.com/kb/TS1591
    Message was edited by: King_Penguin

  • I am using Illustrator CS6 (Mac). I am using free transform tool. Why can't I use Shift Option Command to distort in perspective?

    I am using Illustrator CS6 (Mac). I am using free transform tool. Why can't I use Shift Option Command to distort in perspective?

    hong,
    You need to ClickDrag just a tiny bit, then apply the Shift Option Command.

  • Where can i find the TDTITLE option in smartform

    Hi,
       I want to pass the subject dynamically when i am sending through the mail so there is a possibility to achieve this by passing the subject to the TDTITLE in output options but i am unable find that option in smartform OUTPUT OPTIONS so can pls tell where can i find the output option in case of smartform
    Regards
    Ravi

    Hi,
      The structure for Smart forms Output options is SSFCRESOP.
    For Mail options it is SSFCOMPOP, u can find the field TDTITLE in thsi structure.
    U can see this in the Source code of the function Module in Importing part
    "VALUE(OUTPUT_OPTIONS) TYPE  SSFCOMPOP OPTIONAL"
    Thanks,
    Arunsri
    Edited by: Arunsri on Oct 8, 2009 2:34 PM

  • But i can't find the import option.

    But i can't find the import option.

    Have you tried dragging it & dropping on the iTunes app icon?

  • I can't find the scroll option on the latest version upgrade in Adobe Reader.

    I can't find the scroll option on the latest version upgrade in Adobe Reader.  Can someone please help me find it or activate it?  I have the latest version X1 version 11.0.2.  Thank you

    I have never seen that (scroll bar disappearing); it should always be there if a document length exceeds the current view.
    What is your operating system?  Are these local or online documents?  If online, in what browser?
    P.S. this is how my Reader 11.0.2 on Windows 7 looks when I open any PDF document

  • Can't find Scrollable objects option in overlay panel

    I've just updated to the latest folio builder (v20), but can't see the scrollable objects tab in the overlay panel. Any pointers?
    Thanks
    M

    I already have the v19 tools installed (the one released 12th March), and there is still no mention of the scrollable objects options in the overlays panel. When you say the v20 tools, do you mean Folio Producer ?
    Thanks
    M
    Re: Can't find Scrollable objects option in overlay panel
    created by Bob Levine<http://forums.adobe.com/people/BobLevine> in Digital Publishing Suite - View the full discussion<http://forums.adobe.com/message/4376464#4376464

Maybe you are looking for

  • Laptop monitor no longer works, and neither does external monitor

    My laptop has always had a severe problem with overheating when running even the simplest games, and the fan area in the upper left consistently reaches temperatures unbearable to touch. Using software to find internal temperatures I have found that

  • Item not shoing in inventory

    hi gurus, we created a PO for a material for a internal order. the account assignment category on the PO was F. When this material was received in MIGO, it is not showing up in our plant inventory (in the storage location). On the material doc, it is

  • Mandatory check problem!

    Hello, I have a problem with PCUI field ,have set 2 field attribute as Madatory 'C' but while trying to change from this screen tab to another tab a client check popup appears 'Fill required fields', The only check present for this fields is on 'save

  • Airtunes stopped working after updating to itunes 12.0.1

    After updating to 12.0.1.26 from 11.something on a windows 8.1 Vaio Pro pc, I only get the error message "an error occurred while connecting to the AirPlay device (embarrassing name)The network connection failed."  when trying to play music on an old

  • Macbook pro crashes and goes to the background image with no access to dock etc..

    Macbook Pro Early 2011 version, running Lion OSX, crashes randomly and goes to the background image. the dock is not accesible nor are any other options, I have to hold down power to restart. I have found that a lot of my applications have started to