Need to add any Pointer/Bookmark for the Hyphenated words

Dear Experts,
Im very new to Scripting.
I'm creating a Validation tool which shows hyphenated words in a ListBox & i done it well in VB6.
Now all my need is i have to jump to the location in the document while clicking the ListBox Item.
Is there any options to do this?
Looking forward your comments.
Thanks in advance.
SaRaVaNaN.N

Hi Try this code...
I created this for windows XP, Indesign CS4.
#targetengine "session";
var myDoc = app.activeDocument;
var stories = myDoc.stories.everyItem ().getElements ();
var myFind = new Array(); var myCounter = 0;
var times1, times2;
times1 = new Date().valueOf();
//-----------------------------For display---------------
var w = new Window ("palette", "Hyphenated words");
var list = w.add ("listbox", undefined, "", {numberOfColumns: 1, showHeaders: true,columnTitles: ["Hyphenated Word"], columnWidths: [185]});
    list.maximumSize.height = $.screens[0].bottom-200;
var myStory_id = new Array(); var myitem_id = new Array();
main();
times2 = new Date().valueOf();
var timeTaken = ((times2-times1)/1000);
displayWindow();
if (myCounter > 0){
w.show();
else { alert("Double Hypehnation Not Found"); }
function main(){
    var lineCount;
    myResetFindChangeGrep ();
    app.findGrepPreferences.findWhat = "(\\w+)([-~=])(\\w+)";
    var myIndex = new Array();
    for (i=0; i<stories.length; i++){
        myFind[i] = stories[i].findGrep(true);
        for (j=0; j<myFind[i].length; j++){
            lineCount = myFind[i][j].lines.length;
            if (lineCount>1){               
                var story_id = i; var myFind_id = j;
                var myText = myFind[i][j].contents;
                addItem(myFind[i][j], i, j);
                myCounter++;
                }//End if
            }//End of Find Length
        }//End Story length
    //alert(myIndex.length);
//------------------------Function Declarations--------------
function displayWindow(){
    //window declared as global variable here
    var panel1 = w.add('panel');
    panel1.minimumSize.width = 210;
    var group1 = panel1.add('group');
        group1.orientation ='row';
    var close_ = group1.add ("button", undefined, "Close", {name: "ok"});
    group1.add("statictext", undefined, "Fetched in "+timeTaken+" sec");
        close_.maximumSize.width = 44;
    list.onDoubleClick = function ()
            if (this.selection != null ) {
            var myIndex = this.selection.index;
            var storyNum = myStory_id[myIndex];
            var findNum = myitem_id[myIndex];
            var selectText = myFind[storyNum][findNum];
            app.select (selectText, SelectionOptions.replaceWith);
            app.activeWindow.zoomPercentage = 200;
    close_.onClick = function () {w.close ()}
function addItem(myItem, sto_id, item_id){
    list.add ("item", myItem.contents);
    myStory_id .push(sto_id);
    myitem_id .push(item_id);
function myResetFindChangeGrep(){
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
Green4ever

Similar Messages

  • Do I need to buy any extra cables for the airport express??

    I was wondering if i need to buy any extra cables for the airport exprees.what kind of cables do i have to get to connect the airport express to my DSL modem?

    Typically all you would need is an Ethernet cable (cat5, rj45 end), and it would be connected to the LAN port on the DSL modem, and the Ethernet jack on the AP Express.

  • How to find end of the Page in Crystal ? or I need to add one Horizontal line at the end of the page.--- URGENT HELP NEEDED

    Hi friends,
    I need to add one horizontal line  for the detail section at the end of the page.
    I tried to put that line in page footer and i tried with Box also. Both are not properly working. Some space problem is coming.
    Is there any feature to find end of the Page.
    I want report format like this.
    set id  |  set name |  date  Name
      1         x           dddd   vijay
                            dddd   sarathi
                            dddd    reddy
    (End of the page)
    Thanks in advance...
    vijay.

    Do you know how many detail records are showing up per page?
    If you do - you could create a Details B section that is suppressed except for on Record N (where N is a counter, and N is the last Detail record that will show up on a page).
    The Page footer is indeed built so that it will be rendered at the bottom of your physical page of paper.

  • HT201318 Hello. I have just built a website using iWeb but cannot upload it. I curently have the 25gb account. There doesn't appear to be any facility here for the net. ASm I correct in thinking I need an upgrade, or am I doing something wrong?  Thanks

    Hello. I have just built a website using iWeb but cannot upload it. I curently have the 25gb account. There doesn't appear to be any facility here for the net. Am I correct in thinking I need an upgrade, or am I doing something wrong?  Thanks

    iCloud does not provide website hosting. You will need to find another website hosting service - there are many to choose from - and upload your site there. How you do this depends on what version of iWeb you have.
    In order to upload your existing site in iWeb '09 and above:
    Click on the name of the site in the sidebar: the publishing settings pane will open. Set 'Publish to' to 'FTP'. Enter the name of the site and a contact address (if desired).
    In the 'FTP Server Settings' section you will need to know the server address (your hosting service can tell you that), and your username and password for that service. Your site will be published in a folder with its name at root level of the server, with an index.html file at root level (which will overwrite any index.html file which may be there already). The 'Directory/Path' field may need to include a path such as '/webspace/' or 'ht_docs/' - this is dependent on your hosting service and they should tell you this. If you want to publish within a folder you can add that to the path.
    You can then click the 'Test connection' button so that iWeb can check that it can get access to your server space. You should enter the URL of the site in the 'URL' field so that rss feeds and internal links have the correct address.
    To publish using an earlier version of iWeb:
    From the File menu choose 'Publish to a folder'. You should create a folder somewhere convenient specifically for this and choose it when publishing to a folder: this folder should not contain anything else.
    You now need an FTP program (FTP is the 'protocol' used for uploading) to upload the contents of the folder to your server.Cyberduck is free (donation requested): Transmit is $34 but I think better. You will need the server address (your hosting service can tell you that), and your username and password for that service. You can drag the contents of your folder to your webspace, or create a folder there and drag the contents to that if you prefer.
    Some facilities that iWeb provided when hosted on MobileMe will not work on other servers: comments on weblogs and photos, password-protecting your site (some hosts may provide this), searching in the weblog, and a hits counter (again, some hosts can provide code for this). Slideshows in iWeb will work on other hosts than MobileMe (they use different code when FTPing which doesn't depend on scripts hosted on MobileMe as the MobileMe version does); however there is an issue with the 'buttons' which control the slideshow which are images hosted on me.com - these depend on images which used to be hosted on MobileMe. The poster 'Old Toad' on the Apple Forums has provided a workaround, described at http://oldtoadstutorials.net/No.26.html.

  • I was told I need to remove the enterprise server account I have and need to add a new one for work but the IT person did not tell me how to do this.  Can anyone help?

    I was told I need to remove the enterprise server account I have and need to add a new one for work but the IT person did not tell me how to do this.  Can anyone help?

        Jennymbell, never fear help is here!
    Have you tried contacting your IT department for assistance? You can visit http://bit.ly/QECbGh for steps on how to enterprise activation.
    Keep me posted if you need further assistance.
    John B
    Follow us on Twitter @VZWSupport

  • Hi! I need to cancel my membership plan for the creative cloud but I can't find any contact different from the live chat. I MUST cancel it before March 22nd. Please help me!

    Hi! I need to cancel my membership plan for the creative cloud but I can't find any contact different from the live chat. I MUST cancel it before March 22nd. Please help me!

    This is an open forum, not Adobe support... You need Adobe support to cancel a subscription
    -start here https://forums.adobe.com/thread/1703848
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    --and two links which may provide more details, if the above links don't help you
    -http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

  • Any new firmware for the Cisco AP541N access points.

    Do you know if Cisco has come out with any new firmware for the Cisco AP541N access points.

    Latest release is 1.8.0 from Jan 25, 2010:
    http://tools.cisco.com/support/downloads/go/ImageList.x?relVer=1.8.0&mdfid=282790482&sftType=Small+Business+Pro+Wireless+Software&optPlat=&nodecount=2&edesignator=null&modelName=Cisco+AP+541N+Wireless+Access+Point&treeMdfId=278875243&treeName=Wireless&modifmdfid=null&imname=&hybrid=null&imst=null&lr=Y

  • When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder?

    When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder? The endless scrolling technique is far too tedious when trying to add a new bookmark, because the window is simply too tiny. Is there maybe a plug-in that will let me grab the corner of that window and re-size it? Thanks!

    I suggest you install the "Add Bookmark to Here2" extension, then you can expand the the list but you will not see the bookmark itself in the list if that is what you wanted. At the top you have three major folders you can select one of them and scroll up and down. Below that you have your most recently used folders and you can select one of them instead and scroll up and down. You can see the folder the bookmark is in -- they get added to the bottom
    If you really want to see the bookmark within the folder the same extension allows you to bring the bookmark to the folder from say the bookmarks sidebar that is why it is named as such. I use it but mainly i use the dialog.
    Please continue reading about bookmarks and some related extensions at
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
    * http://dmcritchie.mvps.org/firefox/firefox.htm#addbookmarkhere2
    * http://dmcritchie.mvps.org/firefox/kws.htm
    If you are not using tags at all, you can remove a whole lot of confusion by removing them from the dialog via the extension.

  • So all the bookmarks I've "bookmarked" for the past year are just gone - I have a mac, how do I go back & retrieve everything I've ever bookmarked on Firefox?

    So all the bookmarks I've "bookmarked" for the past year are just gone - I don't understand why Firefox just doesn't automatically save every bookmark you make each session & put them in a place so you can organize them ... maybe there's some extra step you can take every session to force firefox to do this - I don't know what that is - but am also a bit aggravated that there has to be an extra step to do this - Internet Explorer just auto saves everything you bookmark, why can't Firefox - I see this as a big disadvantage to Firefox that needs to be made much simpler ... I have a mac, how do I go back & retrieve everything I've ever bookmarked on Firefox?
    I think all the details are sufficiently covered in the question (which then in filling out the help form Firefox quite sillily made me shorten so I reposted the whole thing in this comment above - just another unnecessary step, seems to be the Firefox norm)
    And btw the articles on lost bookmarks, saving bookmarks, etc. - were not helpful at all. Very not helpful. Almost anti-helpful.
    I generally like Firefox & use it all the time, but this one area as to bookmarks is very frustrating & causing me to seriously consider not using Firefox at all & switching back to Internet Explorer or another browser like Google Chrome. What's the point of bookmarking something (which by itself indicates you are wanting to save the site link so you can re-find & re-visit it in the future) if Firefox just auto deletes all your bookmarking everytime it starts up? Just a completely user-unfriendly idea.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    S*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *http://kb.mozillazine.org/Lost_bookmarks

  • I can't add or remove bookmarks from the bookmarks menu or bookmarks bar and I've completely removed and reinstalled Firefox.

    I am not able to add or remove bookmarks. The bookmarks library is empty. I can't restore to any back up bookmarks. I restarted in safe mode. No bookmarks. I reset Firefox. No bookmarks. I uninstalled and reinstalled Firefox. No bookmarks. I did a Revo Uninstall and cleared the registry. No bookmarks. I deleted the localstore.rdf. No bookmarks. This is kinda a deal breaker for me. I might have to go to Chrome or IE.

    Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
    You can check for problems with the places.sqlite database file in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file

  • I can't add any more columns. The option is suddenly greyed out.

    I can't add any more columns. The option is suddenly greyed out.

    Allen,
    Actually, there is a TRANSPOSE Function, but no Command or Tool for that. It's one of the more useful and popular omissions in Numbers. Perhaps because it falls into the "didn't plan ahead so now I need a tool" category of features, it didn't make the cut.
    Use of the Transpose Function is described in the Function Browser, the Help feature and in the Functions of Formulas User Guide PDF. It involves using the INDEX function to read out the array created by the Transpose function. Another way to do this is to use the OFFSET function in an expression and by exchanging the row and column references.
    Yvan Koenig has written an Applescript that will automate the transposition for data and for certain simple expressions. You can get it from his Box Account, on this page.
    Jerry

  • How to add a document type for the residence status GB in infotype 48

    Hi Team,
    How to add a document type for the residence status GB in infotype 48.
    Please answer this  at the earliest.PFA screnshot.
    Thanks
    chris

    I believe there is a PDF doc which comes with the component (it should be at your harddrive when you install it), which describes everything you will need.
    In a nutshell, there are two types of relationship: sibling - sibling, parent - child (there are some more nuances, but it follows the same logic).
    A relationship is created between two existing items (not sure, if you can also create a relationship for a new checked in item, but it would be just a usability). You select the type of relationship and the item - I believe depending on the relationship you may start from either item. The dialog to start is INFO (display metadata) or UPDATE (update metadata).
    When a relationship is created you may watch it also from either end (again INFO is the starting point).
    It is quite self-explanatory, so if you have the component installed you may just play around with it for a while and that is it.

  • Need to add 2 new columns to the existing table control of C223 transaction

    Hi ABAP Gurus,
    I have to do a screen enhancement for transaction C223.
    Below is the requirement:
    need to add 2 new columns to the existing table control of C223 transaction.
    there is no customer exits, screen exit or user exit present for this transaction C223, i have found one enhancement spot for this transaction.
    i dont have any idea how to do this in standard transaction C223, the table control in C223 saves the data to MKAL table and the table control uses the structure MKAL_EXPAND in the screen program.
    i have created an append structure for  the 2 fields to the standard table MKAL.
    Can anyone please suggest me how this can be done in standard screen C223, will the enhancement spot can be used to do this....
    please sugest...
    Thanks & Regards

    Hi Santosh,
    Thanks for the reply. I have looked into this Enhancement Spot CPFX_SCREEN_SET , inside this there is only one method INPUT_DISABLED having below parameters
    IM_MKAL     Importing     Type     MKAL                                                                                Production Version
    EX_MSGID     Exporting     Type     SY-MSGID                                                                                Messages, Message
    EX_MSGTY     Exporting     Type     SY-MSGTY                                                                                Messages, Message
    EX_MSGNO     Exporting     Type     SY-MSGNO                                                                                Messages, Message
    EX_MSGV1     Exporting     Type     SY-MSGV1                                                                                Messages, Message
    EX_MSGV2     Exporting     Type     SY-MSGV2                                                                                Messages, Message
    EX_MSGV3     Exporting     Type     SY-MSGV3                                                                                Messages, Message
    EX_MSGV4     Exporting     Type     SY-MSGV4                                                                                Messages, Message
    EX_INPUT_DISABLE     Exporting     Type     CHAR1                                                                                Display Only if X Was Set
    the BADI definition present here is a SAP internal so we cant implement the BADI , but we can created a enhancement spot implementation for this. as per my understanding on this the enhancement spot is only for making the table control fields display / change .  i dont think this can be used to add two new coloumns to C223 table control.
    I am not sure thats why seeking your help/valuable sugestion on this.
    Please provide your sugestion on this , so that i can come to conclusion on this issue.
    Thanks & Regards
    Siddhartha Mishra

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Osx 10.7.4   safari 6.0  when I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list.  this just started a few days ago after an update.  Has anyone else noticed this?.

    osx 10.7.4   safari 6.0  When I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list.  This just started a few days ago after an update.  Has anyone else noticed this?.

    Just for those who are interested, this is what cleared the "bookmark menu"  trbl I had.
    Open System Preferences > iCloud
    Deselect the box next to Bookmarks, then reselect it.
    Quit and relaunch Safari. Try a bookmark again.

Maybe you are looking for

  • Regarding Evaluation path used in Organisation structure.

    Dear All, How would i be able to get to know the evaluation path used by organisational structure to display the structure. What i found in tcode : ppome is that it is showing evaluation but not path name. I want to know the reference path name which

  • RSD...just stops on its own?

    So about a month ago the dreaded RSD started happening to my macbook. I tried several times to make appointments to see a "Genius" at my apple store, however unless I wanted 11am or 1130am on any day I tried...I couldnt get in, and forget any times o

  • Guided procedures - Sending request between actions

    Hi there, We are using GP workflow for a particular scenario in which we have a situation where the control needs to go back and forth between two actions which are under a single block. For example, Action 1 - First Action Action 2 - Second Action B

  • Very slow starting iMac

    iMac G5 iSight (bought Nov '05), 2.1Ghz, 1.5Gb ram, 500Gb hard drive (378.83 available), nothing connected to it except keyboard and mouse (which is connected to the keyboard). Start up items: PSPWareHelper, Microsoft Database, Aspyer Game Agent Help

  • Noisy fans on all the time

    I have come over from the dark side today (PC to Mac switcher). I got a second hand Mac Pro 2.66 quad with four HDD and 4GB ram and i seem to have very noisy fans. I did find this article http://www.amug.org/amug-web/html/amug/reviews/articles/intel/