[JS CS3] Why Search Grep to superscript numbers does not?

Hello

Here's a script that did a Grep search for any number three-digit superscript. Well, that's what it is supposed to return, but he returned every one to three digits. Any suggestions on what is wrong? If I do a manual search of Grep for the numbers that are superscript, it works fine, so I know that this is possible.

Tom

myDoc var = app.activeDocument;
Notes end var = theGrepFinder (myDoc, "\\d {1,3}");

function theGrepFinder (docRef, grepFindIt) {}
app.findGrepPreferences = NothingEnum.NOTHING;
app.changeGrepPreferences = NothingEnum.NOTHING;
app.findGrepPreferences.appliedCharacterStyle.position = Position.SUPERSCRIPT;
app.findGrepPreferences.findWhat = grepFindIt;
var arrGrepFindIt = myDoc.findGrep ();
Return arrGrepFindIt;
}

Change

app.findGrepPreferences.appliedCharacterStyle.position = Position.SUPERSCRIPT;

TO

app.findGrepPreferences.position = Position.SUPERSCRIPT;

The first trying to get to "any character style which is superscript" and this is not possible - you define only the name of "appliedCharacterStyle" for this. He gets ignored because you did not provide a name, and so she is all the numbers, rather than only those of the exhibitor.

The embankments of the latter by 'exposing' at the same place as you would do in the GUI.

Tags: InDesign

Similar Questions

  • Search 1 table D work does not double

    Can anyone tell why search 1 table D function does not work as expected in the attached VI?

    Hi Singh,

    The 2 numbers you have are not equal:

    Table number is actually: 0.5872335427799636, you can see this by changing the display format.

    Its to do with the way the double value is stored on the computer.

    I use an array called "equal about" Comparing the figures with a specified decimal:

    I have attached the vi "approximately equal to". As said, you can specify the accuracy of the comparison.

    RGS,

    Lucither

  • Why an amplification of the RAM does not change the index performnance of windows vista?

    Why an amplification of the RAM does not change the index performnance of windows Vista?

    Hello

    I m not very well, but maybe you have more than 3 GB of RAM and Vista 32 bit.
    Usually the 32 bit OS is capable to manage and send only 3.2 GB.
    The more than 3.2 GB RAM will not operating system used and therefore would not increase the index
    In addition the laptop will be not really faster after upgrading RAM. You will notice better performance using applications at the same time, but this does not affect the index of Vista.
    But this is only my personal hypothesis.

    Welcome them

  • Why my windows freeze and go does not respond when I try to install the msn photo on hotmail download tool?

    Why my windows freeze and go does not respond when I try to install the msn photo on hotmail download tool?

    The active x bar descends into the small window and freezes all windows open right there and will not respond. This happens when I open a new message and try to attach photos.

    Things I tried but has not made a difference:

    reinstalled IE 8, deleted the history of the browser, disk Cleanup, removed msn photo upload control, optimized IE8

    With xp media center

    PS. This occurs also at any time the information down to install an active x on any site control

    The only way to surf now with frustration is to use IE 8 NOT add optional

    So I fixed that on my own and that's how I did it.

    You must uninstall IE 8 completely which will bring you to IE 7 (in my case) and then install IE 8 via the site updates or microsoft.

    Uninstallin IE 8 by going to:

    Start--->

    Control Panel--->

    Add Remove programs--->

    Scroll down to IE 8--->

    Click on delete.

    IE8 updates must be removed also, if not then click the box 'To see the updates' on the top of the window to scroll down, look for the IE 8 security updates and delete.

    Resart your computer and install IE 8.

    This worked for me and may or may not work for you.

  • Search programs and files does not work: when I try to look for things in windows 7 slot search files and program it does not display anything

    When I try to look for things in windows 7 slot search files and program it does not display anything

    Help

    Hi girls NMS.

    Try to run the next Fixit:

    Fix Windows Search when it crashes or shows no results

  • Numbers does not correctly Import CSV files

    Using numbers v 3.6.2 under OS X El Capitan v 10.11.6 CSV files are not imported correctly. A file with 8 columns appears in number with the first two columns containing data of 7 columns and the second containing the remaining column data. This does not happen with numbers v 2.1 I have on another Mac OS x 10.6.8

    Well, I know one answer would be to always download on the Mac of the latter, but I'm trying to stop using it, once all the data I need is available on the other, later, Mac.

    If Apple could provide a program that does work properly, why on Earth can't a version later do the same thing, it is a fundamental requirement and I don't want to play anywhere to try to sort out just that it works as it should.

    might be useful to provide an example of the file, or, perhaps to share data... Nobody here can change the numbers, we are all of the users like you.  The only options that we are thus solutions using what is already there, or work around issues by other means.

    You can still provide feedback to post using the menu item "numbers > provide Feedback numbers.

  • Suddenly cannot enter anything into some empty search fields, drop-down menus does not and javascript popups freeze randomly. WTH?

    I noticed a few things randomly does not not on my computer in the last month or two, and I have tried everything I can think to figure out what it is... still have not thought about it yet. Examples - I was on ebay and the tracking number, I clicked on the page 'My ebay' jumped open a javascript window, but then froze the page so I had to close the tab all. Then on Grooveshark, home page comes up, but if I type anything in the search field, I see what I type, but at the same time, I can still see their default search message. If I try to enter something and click search, it gives me just the warning that I wonder if I want to leave the page, he is never looking for. There are a few other times I think that I tried to use a menu drop-down, and they don't always work - they look just like they are which is clicked but nothing shows. Also do not know if it of related or not, but it is worth mentioning: I tried to install Freecorder and even if I tried both the toolbar and just the installation options button, it does not appear to me to use it, and who is with more disabled adblock. Also not positive took my last update of Adobe Flash, even if I downloaded it.

    I like adblock, but I have had that for years, and it has never caused a problem or stopped me to see everything I wanted to see. My system was pretty bada * before that, and it's frustrating that all of a sudden I can't go everywhere and do everything I could before. Why he does this, and I can fix it?

    Meh... If I had started here rather than try this search at random, I would have fixed the problem weeks ago. I just did a reset of Firefox and tried all the things I mentioned in the op, and everything seems to work fine now. Well well, outside Freecorder, but I can do the work in a different way, I guess. In any case, reset Firefox = solution. Yay!

  • new numbers does not open old documents

    So when I have updated the computer my version of numbers updated. Now I have problem trying to open old documents & have to choose the version of numbers to use. Super irritating. Why have I not 2 versions of numbers instead of a updated version that works well for all my files of numbers?

    You had iWorks ' 09 (numbers v2.3) installed. When you have installed v3.6.1 numbers (a completely different application), he moved silently Numbers ' 09 v2.3 in Applications: iWork ' 09 file. 3.6.1 numbers will open spreadsheets of calculating Numbers ' 08 and ' 09, as long as they do not include features that are not supported in numbers 3.6.1.

    If you click on the red light on the title bar left to close a document, it does not actually stop Numbers ' 09. The application continues to run and will be in ambush of any attempt to open a Numbers spreadsheet. When this worksheet is created by a rejection any numbers v3, you will get the following message:

    because the architecture of document numbers v3 is not compatible with Numbers ' 09. The solution is to actually leave Numbers ' 09 and then just double-click the spreadsheet him open correctly in numbers 3.6.1.

  • search for Windows 7 libraries does not

    Hello

    I noticed that when you use Windows Explorer and typing in the search box when I'm in a library directory, it works.

    I'll type in the first 3 letters of a file and nothing comes up.

    However, when I do not use the library and go to the drive and the folder I want to search in works.

    Does anyone know why this is?

    Thank you.

    This should be an easy fix.  On the left side of your file, under libraries, right-click on each library that has a problem and click on 'Remove' (no real files will be deleted).  Then right-click the libraries section and choose "Restore default libraries" and it should be all fixed up.

    If that does not do it, open Indexing Options in Control Panel and rebuilt the index to see if it fixes it.

  • Windows 7 Advanced Search - "dimensions: 128 x 128' does not.

    I'm trying to filter a folder for images with dimensions of 128 x 128 pixels, but can not get windows 7 to filter by dimensions.

    In the search box, if I type in "dimensions: 128 x 128" I never get any results. It is relatively easy to change it to "height: 128 width: 128" but why it does not work as it should with dimensions?

    As I'm typing in "dimensions: 128 x 128", things seem to go well, the search begins to fill as I type the first 128 but as soon as I hit the 'x', all elements, it is filtered just disappear and do not return.

    Is this a problem with my machine or is this another Windows broken search 'features '?

    Put a space between the number and the x for example 128 x 128

    I tested on windows 7 using a property of an image file meta data. You can check the metadata by right click, choose Properties and clicking the Details tab.

  • RH11: Restart page numbering does not

    More HR issues:

    When I have two (or more) lists numbered in the same section, continuous numbering from one list to the other - instead of restarting at the 1. Even when I access the bullets and numbers dialog box, select the check box restart numbering to and set the value to 1 - nothing changes. The numbering continues from the previous numbered list (defined as a paragraph style).

    Is this a know bug? Are there alternatives?

    Thanks in advance.

    After scouring the HTML code of subjects who have a correct numbering, I found the solution:

    list-style: rh-list;"?>

    Click Add a filter.

    Start = "1" attribute does the trick. I don't understand why using the bullets and Numbering dialog box not adding the attribute.

  • Finder: Search in the current folder does not work

    I have a folder in my finder 'search in the current folder' where returns 0 results even though I get the names of the files in this folder.

    I tried to add this to the honor, then removing it so that its reindexed and I tried to remove finder invisible (and other) files, but that is not worked.

    I ca 300 PDF files in this folder. I tried to create the new folder somewhere else and add these PDF here and yet the search does not work.

    Someone knows how to fix this?

    Greetings eklisiarh,

    Thanks for posting in the communities of Support from Apple. I see that there is a folder with about 300 PDF files that you are not able to search through the search option. I know that the research allows me to find just the right file. I'll be more than happy to help.

    You did a great job so far with re-indexing of that folder. First of all, to start in safe mode. This will be clear cache files and perform a few system checks. Once in safe mode, see if you can search inside this folder. Here is the article about how to start in safe mode. You can ignore the part where it says "If your Mac does not complete startup".

    Try safe mode if your Mac does not end commissioning - Apple Support

    Reboot will leave safe mode. If this does not work, try to test this question in a new user and copy the folder in this new user to see if this is a question broad system.

    How to test a question in another account on your Mac - Apple Support

    Make account and let us know how things are going.

    Take care!

  • Search suggestions is enabled but does not work?

    The search bar in the "Awesome bar" has recently ceased to offer suggestions from research or from my search history Google itself. When I control-click in the search bar, "search suggestions" has a check mark next to it, and it is also checked in the preferences.

    I have re-set network.http.speculative - parallel-limit to 0 and then put in 6 and 10, with no difference. Restart the browser makes no difference.

    Browser.Search.Suggest.enabled = true
    Browser.urlbar.Suggest.Bookmark = true
    Browser.urlbar.Suggest.History = true
    browser.urlbar.suggest.history.onlyTyped = false
    Browser.urlbar.Suggest.OpenPage = true
    Browser.urlbar.Suggest.Searches = false

    I had problems with Javascript it just seems to stop functioning after the browser has been running for awhile on updates several last, affecting things like comment on some sites, menus based on Java doesn't work, etc, but I don't know if that would be linked to this problem. A reboot does not fix things in this case, at least not today.

    Try to clear cookies from Google.

    Do you have any suggestions if you type in the address bar or do you find no in the drop-down list at all?

    Have you checked the prefs to browser.urlbar to see if any are user defined (in bold)?

    • browser.urlbar.maxRichResults
    • Browser.urlbar.AutoComplete.Enabled
  • Firefox home page search and click right options does not.

    After updating Firefox hoping to increase the speed of response, I have found that a right click on a web page address does a menu appear much longer than before, which is correct, but now none of these options seem to work. 'Open the link in a new tab' does not work, nothing happens. Similarly, 'Copy link location' does not work, or 'copy image' for the photos. Also my Firefox home page, which is a search for Firefox, not working, when a search item is entered and 'Search' clicked, the entry disappears and nothing else happens. To get here to ask for help, I had to enter www.google.com on the FF browser address line and then use Google search to access these pages in support of Mozilla. I since started Firefox in safe mode without success by allowing these features disabled. I've also updated Firefox once more without success, no change except my Menu bar disappeared. What can I do to revive these features disabled? I don't want to not risk losing my bookmarks.

    Thank you!

    Uninstall it and reinstall brought the right click functions with the original, much smaller and fortunately preserved inscription my favorites.

  • Search Safari 9.1.1 does not work in the url field. Tabs are not securities.

    After I instaled 9.1.1 safari search option does not work since the URL field and tabs is not titles. IOS 10.11.5 macbook pro late 2011.

    Restart your Mac while holding down the SHIFT key. Secure boot is slow, so give it time to start your Mac completely and then restart normally.

Maybe you are looking for