Find open and close smart quotes

Dear scripter,
Here I am trying find whether all the open double smart quotes(") are closed with close double smart quotes("). Here is my small work to find how many open and close quotes.
myopenqu=app.activeDocument.search("^{", false, false, "^{");
myclosequ=app.activeDocument.search("^}", false, false, "^}");
myopenqulength = myopenqu.length;
myclosequlength = myclosequ.length;
if(myopenqulength!=myclosequlength)
alert("Quotes not matched\n"+ myopenqulength +" Open quotes found\n" + myclosequlength +" Close quotes found")
It works well, the script just alert if I have 25 open quotes and 23 close quotes
Quotes not matched
25 Open quotes found
23 close quotes found
Now I want to find the quote set where the 24,25th set close quotes are missing?
Is there any way to find the misisng quotes
Thanks in advance
regards
a r u l
vpublish.net

You'd have to look for unmatched quotes, in this case two cases of two open quotes without an intervening closed quote. This is difficult to script in CS2 because it doesn't have GREP natively and because of footnote problems. In CS3/4 it should be possible. But even then it will work only if you don't have quotes within quotes.
Peter

Similar Messages

  • Finder repeatedly opens and closes in my PowerBook G4

    I have been wrestling with this problem for some time. Finder repeatedly opens and closes in my PowerBook G4. When I log in to my Administrator Account, the Finder will repeatedly open and close with a rainbow spinner till the whole system freezes. I have reinstalled the OS and the problem returned. Now, I need to get my files on that account backed up and start over again. The trouble is that I can't access the files because the Finder isn't accessible. I've created a 2nd account, and am in the process of trying to copy the files I need to the new profile, but so far those files are barred. My main concern is why is this happening, and will it happen again if I reinstall? What's the best way to reinstall and start over?

    If the second account is an admin one and since the issue is specific to your original user account, you can proceed in two ways. One is to log into your new account, make a list of the preference files (plists) located in /username/Library/Preferences/, including any in the ByHost subfolder, log back into the original account, move everything on that other account's list from the original account's Preferences folder into a newly created folder on the Desktop, log out and back in, and see if the problem goes away. If so, you can copy the ones in the Desktop folder (one at time) back into /Preferences/, restart, and see if the problem returns. If so, you've identified the corrupt/conflicting one. Continue with all of them until isolating the bad ones. That'll save you the trouble of resetting preferences.
    The second way is much more detailed and I'll not burden you with the steps unless the above doesn't fix the issue.

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • How can I enable the center mouse click to open and close tabs in Firefox and Chrome?

    I have a MacBook Pro Model A1261 purchased in 2009. On my other mac at work (and my PC) I can center click to open a link in a new tab while in Chrome or FireFox, and also to close a tab by clicking on it in the tabs at the top. I am using an external USB mouse on my MacBook Pro and when I click the center scroll wheel it brings up the dashboard. I looked in the settings but wasn't able to find a way to change that setting for the center button to open and close tabs in my web browser. Is there a way? Please help!

    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    * browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    * browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    * browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.latched -> <b>false</b>
    *http://kb.mozillazine.org/about:config
    See also:
    *pinchy: https://addons.mozilla.org/firefox/addon/pinchy/

  • Any way to see ICONS in Open and Close Dialog boxes?

    Is there any way to see ICONS in Open and Close Dialog boxes, instead of just lists of items names?
    I know you can preview one at a time, but I'd love to see all my artwork as picture icons, just as you can in a finder window.
    Windows does this, but not OSX that I know of. Is there a third party app that enables you to see icon view in the Open and Close Dialogs?

    Thank you Steve Jobs. I guess that feature has been added in Leopard. Now there really is nothing that I'll miss from Windoze.

  • Two intervals in Open and Close Posting Period (OB52)

    What is the purpose of the two intervals (period 1 and period 2) in Open and Close Posting Periods (transaction OB52)?

    Hi,
    Financial statements cannot be prepared on the last day of the accounting period... to find out the correct profit and to determine the correct financial positing... sometimes you may require to make some adjustment  to accounting records after the closing of the accounting year... like adjustments for expenses payable, income receivable, writting off bad debts ...etc. 
    For posting those transactions....period 2 is maintained ..which are also called as special periods... to make the postings in these periods ...special authorisation is required..... 
    Period 1 is for regular postings ...
    Radha

  • Open and close posting periods urgent! (ob52)

    Hi SAP gurus,
    i am trying to post open and close balances (it is spesific to my country) however i do not want users to post to 2007 except me.
    how can i achieve this with not blocking all users.
    in other words, i need authorization to post last year although it is closed for all users.
    note: can you pls explain the difference btw "from period 1" and "from period 2"  in OB52. and also there is an authorization group at the last column what does this mean?
    thx in advance.

    Hi,
    If you stand on the field "authorization group" and use "F1" you can find the help on that field, you will find that it is very helpful.
    You should define period 2 for all users and period 1 to the restricted users,
    Next, you should assigned a free symbol in the field "authorization group" (which refer to period 1), then ask the person that responsible in your organization of the authorization to assign the authorization object F_BKPF_BUP with that specific symbol to the restricted users,
    That should do the job.
    If that helps, feel free to assign points…
    Kind regards,
    Yoav

  • IMessage beta loose all saved conversations when I open and close a window.

    iMessage beta looses all saved conversations when I open and close a window.
    Just reporting this bug... Could not find anyother place to do it.
    Jonathan

    I thought it was doing that also. But I found that if I start a new chat with someone I was messaging before, then the old messages re-appear in the messages window.

  • I have macbook pro. The pinch open and close is not working in firefox 4, but works in safari. How can I get that feature back

    To find pinch open and close and how it works in macbook pro go to the apple icon. Open system preferences and the choose trackpad. Each item is illustrated.

    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    * browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    * browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    * browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.latched -> <b>false</b>
    *http://kb.mozillazine.org/about:config
    See also:
    *pinchy: https://addons.mozilla.org/firefox/addon/pinchy/

  • [bdb bug]repeatly open and close db may cause memory leak

    my test code is very simple :
    char *filename = "xxx.db";
    char *dbname = "xxx";
    for( ; ;)
    DB *dbp;
    DB_TXN *txnp;
    db_create(&dbp,dbenvp, 0);
    dbenvp->txn_begin(dbenvp, NULL, &txnp, 0);
    ret = dbp->open(dbp, txnp, filename, dbname, DB_BTREE, DB_CREATE, 0);
    if(ret != 0)
    printf("failed to open db:%s\n",db_strerror(ret));
    return 0;
    txnp->commit(txnp, 0);
    dbp->close(dbp, DB_NOSYNC);
    I try to run my test program for a long time opening and closing db repeatly, then use the PS command and find the RSS is increasing slowly:
    ps -va
    PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
    1986 pts/0 S 0:00 466 588 4999 980 0.3 -bash
    2615 pts/0 R 0:01 588 2 5141 2500 0.9 ./test
    after a few minutes:
    ps -va
    PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
    1986 pts/0 S 0:00 473 588 4999 976 0.3 -bash
    2615 pts/0 R 30:02 689 2 156561 117892 46.2 ./test
    I had read bdb's source code before, so i tried to debug it for about a week and found something like a bug:
    If open a db with both filename and dbname, bdb will open a db handle for master db and a db handle for subdb,
    both of the two handle will get an fileid by a internal api called __dbreg_get_id, however, just the subdb's id will be
    return to bdb's log region by calling __dbreg_pop_id. It leads to a id leak if I tried to open and close the db
    repeatly, as a result, __dbreg_add_dbentry will call realloc repeatly to enlarge the dbentry area, this seens to be
    the reason for RSS increasing.
    Is it not a BUG?
    sorry for my pool english :)
    Edited by: user9222236 on 2010-2-25 下午10:38

    I have tested my program using Oracle Berkeley DB release 4.8.26 and 4.7.25 in redhat 9.0 (Kernel 2.4.20-8smp on an i686) and AIX Version 5.
    The problem is easy to be reproduced by calling the open method of db handle with both filename and dbname being specified and calling the close method.
    My program is very simple:
    #include <stdlib.h>
    #include <stdio.h>
    #include <sys/time.h>
    #include "db.h"
    int main(int argc, char * argv[])
    int ret, count;
    DB_ENV *dbenvp;
    char * filename = "test.dbf";
    char * dbname = "test";
    db_env_create(&dbenvp, 0);
    dbenvp->open(dbenvp, "/home/bdb/code/test/env",DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_TXN|DB_INIT_MPOOL, 0);
    for(count = 0 ; count < 10000000 ; count++)
    DB *dbp;
    DB_TXN *txnp;
    db_create(&dbp,dbenvp, 0);
    dbenvp->txn_begin(dbenvp, NULL, &txnp, 0);
    ret = dbp->open(dbp, txnp, filename, dbname, DB_BTREE, DB_CREATE, 0);
    if(ret != 0)
    printf("failed to open db:%s\n",db_strerror(ret));
    return 0;
    txnp->commit(txnp, 0);
    dbp->close(dbp, DB_NOSYNC);
    dbenvp->close(dbenvp, 0);
    return 0;
    DB_CONFIG is like below:
    set_cachesize 0 20000 0
    set_flags db_auto_commit
    set_flags db_txn_nosync
    set_flags db_log_inmemory
    set_lk_detect db_lock_minlocks
    Edited by: user9222236 on 2010-2-28 下午5:42
    Edited by: user9222236 on 2010-2-28 下午5:45

  • Accordion-Toggle Open and Close

    I apologize if this has been covered before, but I checked
    and couldn't find a solution. I'd like the accordion to toggle
    between open and close the same panel. Right now, when I click on
    it, it opens, but it doesn't close when I click on the same panel
    again. Is there any way that can be achieved?

    Don't you just want the :
    http://labs.adobe.com/technologies/spry/samples/collapsiblepanel/collapsible_panel_sample. htm
    http://labs.adobe.com/technologies/spry/samples/collapsiblepanel/collapsible_panel_sample. htm

  • Logging open and close of documents?

    I'd like to have a record of when I open and close documents, so that I can support my diary notes of jobs I've been working on. So I need to have the filename recorded. I can find an app' to log application usage; is there one for file usage ?
    regards, alan

    Hi, alan.
    This search of VersionTracker reveals two apps that track document time. Of the two, T3, looks exactly like what you want, but it is expensive. Check out the developer's site
    Active Timer may be more to your liking: it can track time at the application window level and is free.
    You can investigate other solutions by searching MacUpdate or Version Tracker. The user-submitted reviews accompanying the listings can be helpful in sorting the wheat from the chaff. Try searches for time track and look at the various options each provides.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • OB52 : open and close FI period by sales office

    Dear experts,
    I have a client who wants to open and close FI period by sales office.
    After some researches, I find that itu2019s only possible to create the variants by FI company.
    But what kind of solution I could suggest to the client ?
    Thanks in advance for your help.
    Best Regards.
    Nathalie

    hi
    in ob52, you can define periods by account type i.e. A,K,D,M,S.
    in your case if your sales office shall cater to Customers, you can specify those particular Account codes.
    here i assume that a sales office shall cater to only certain group of customer accounts.
    thanks

  • Trackpad is presenting a bug to open and close windows, mission control, and to move/roll the application (App) up and down.

    Totally out of the blue, my trackpad is presenting a "bug". Every time that I try to open and close my mission control, or in the moments that I move / roll up and downs the Applications Screen, my Mac freezes for less than a second.
    It never suffered any damage (NEVER!)! I am feeling very frustrated because I have no idea about what could cause such problem.
    My MacBook Air is running OS X 10.9.5.
    Any help will be very welcome!

    Well, it all really depends on the custom program and how it was written. Does it have an ActiveX interface? If it does, than that's the easiest way to go. If you put an automation refnum on the fron panel, you can right click and it and choose Select ActiveX Class>Browse. The browser will list all of the ActiveX type libraries that are registered on your system. If you can find one that refers to your custom program, then you should be able to use it's methods and properties to control. If it does not have an ActiveX interface, then things get much more difficult.

  • My firefox always opens a crash report when I close it. Even if I have no tabs open and close firefox.

    The Crash information is:
    AdapterDeviceID: 95c4
    AdapterVendorID: 1002
    Add-ons: TFToolbarX@torrent-finder:1.2.6,{1de0de3c-0b5c-4f67-90c6-689623894991}:0.3,{9fb7d178-155a-4318-9173-1a8eaaea7fe4}:2.1.11,{B17C1C5A-04B1-11DB-9804-B622A1EF5492}:1.2.1,{c0c9a2c7-2e5c-4447-bc53-97718bc91e1b}:5.4,{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}:1.3.9,{D4DD63FA-01E4-46a7-B6B1-EDAB7D6AD389}:0.9.8,{ef4e370e-d9f0-4e00-b93e-a4f274cfdd5a}:1.4.4,{b9db16a4-6edc-47ec-a1f4-b86292ed211d}:4.9.5,[email protected]:4.0.2,{1E73965B-8B48-48be-9C8D-68B920ABC1C4}:10.0.0.1410,avg@igeared:7.008.031.001,[email protected]:1.3.5
    AvailableVirtualMemory: 3804364800
    BuildID: 20110902133214
    CrashTime: 1316851060
    EMCheckCompatibility: true
    Email: [email protected]
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1315413340
    Notes: AdapterVendorID: 1002, AdapterDeviceID: 95c4, AdapterDriverVersion: 8.872.0.0
    D2D? D2D+
    DWrite? DWrite+
    D3D10 Layers? D3D10 Layers+
    ProductName: Firefox
    ReleaseChannel: release
    SecondsSinceLastCrash: 452
    StartupTime: 1316850895
    SystemMemoryUsePercentage: 78
    Theme: LavaFox_V1-Blue
    Throttleable: 1
    TotalVirtualMemory: 4294836224
    URL: https://support.mozilla.com/en-US/questions/new?product=desktop&category=d2&search=My+firefox+always+opens+a+crash+report+when+I+close+it.+Even+if+I+have+no+tabs+open+and+close+firefox.&showform=1
    Vendor: Mozilla
    Version: 6.0.2
    Winsock_LSP: MSAFD Tcpip [TCP/IP] : 2 : 1 :
    MSAFD Tcpip [UDP/IP] : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD Tcpip [RAW/IP] : 2 : 3 :
    MSAFD Tcpip [TCP/IPv6] : 2 : 1 : %SystemRoot%\system32\mswsock.dll
    MSAFD Tcpip [UDP/IPv6] : 2 : 2 :
    MSAFD Tcpip [RAW/IPv6] : 2 : 3 : %SystemRoot%\system32\mswsock.dll
    RSVP TCPv6 Service Provider : 2 : 1 :
    RSVP TCP Service Provider : 2 : 1 : %SystemRoot%\system32\mswsock.dll
    RSVP UDPv6 Service Provider : 2 : 2 :
    RSVP UDP Service Provider : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    This report also contains technical information about the state of the application when it crashed.

    Have a read of the rather complicated article
    * [[firefox crashes]]
    * and for anyone with firefox crashing before you can key in about:crashes see: <br/> http://kb.mozillazine.org/Breakpad#Location_of_crash_reports
    I note you have found bp-54df2ba6-de52-405d-9ccc-4dd272110924 have you any other recent crash signatures or crash IDs, the one you provide seems rather uncommon [https://crash-stats.mozilla.com/report/list?product=Firefox&query_search=signature&query_type=exact&query=karasx2.dll%400x2535&reason_type=contains&date=09%2F24%2F2011%2001%3A44%3A07&range_value=1&range_unit=weeks&hang_type=any&process_type=any&do_query=1&signature=karasx2.dll%400x2535 [karasx2.dll%400x2535]]
    Do you still get the problem in [[safe mode]] and with default themes, and all plugins disabled. Note common causes of crashes are malware, and versions of the software IDvault. (do you use IDvault ? - often provided by Comcast)

Maybe you are looking for