[cs3][JS]Find Enter with no text in Layout

Hi,
   I need to find enter with no text(idle) in a Layout.I have used the following code.
        app.findGrepPreferences = NothingEnum.nothing;
        app.changeGrepPreferences = NothingEnum.nothing;
        app.findGrepPreferences.findWhat ="\n";
        app.findChangeGrepOptions.includeFootnotes = false;
        app.findChangeGrepOptions.includeHiddenLayers = false;
        app.findChangeGrepOptions.includeLockedLayersForFind = false;
        app.findChangeGrepOptions.includeLockedStoriesForFind = false;
        app.findChangeGrepOptions.includeMasterPages = false;
        var myFoundItems=new Array;
        myFoundItems=app.activeDocument.findGrep();
        var len=myFoundItems.length;
        alert(len);
I don't know whether my approach is correct or not? Please suggest me.
Regards
Kumar

hi Kumar,
you need to find "double enter" and then process second paragraph in each found result - but you need to process found items backward
or if you want to find empty TextFrames - you wont find them in this way - becuase empty TFs are empty no enter or any other characters
robin
www.adobescripts.co.uk

Similar Messages

  • Use smart mailbox to find email with specific text in attached pdf

    Does anyone known if a smart mailbox can be created to find emails with specific text within a pdf attached document. I know that spotlight can do this and it works fine but it would suite me better to be able to do this in mail.

    After some digging, I found that Spotlight returns the pdf attachment (found within the library/mail/download folder), but not the actual email. The only time it returns the email is if the search text or numerics are coincidentally within the written contents or subject line.
    Yes, i have tried setting up smart mailbox search criteria using the entire message contents but this does not find emails where the text exist within the pdf.
    I've checked spotlight pref.'s and all categories are checked off.
    Essentally, i need the smartbox search criteria to return results where the search text is found within the pdf attachment if possible. If this is not possible, i'll continue using spotlight searches outside of mail.
    I appreciate any help you can offer.

  • Find problem with the text search in jdeveloper.

    When i press "ctrl + f" sometimes i am unable to edit the data which is already in the text box.
    Same case with the line number even. When i press "cntrl + g" the text box with line number is uneditable.
    My machine config :
    RHEL 4,
    Jdeveloper version : 10.1.3.0.4.3673

    I've seen this issue too. It appears to be related to top level window focus. Sometimes the modal dialogs for Find and Go to Line number are on top, but without focus. This seems to be some generic Java issue on Linux (I'm using Gnome, unsure about other desktops).
    One workaround for find: instead of using Ctrl+F, try using Ctrl+E instead. This invokes incremental search. A lot of people prefer this to regular find anyway.
    Brian

  • Strange, long program name for Photoshop CS3 in Finder Open with

    I recently upgraded from Adobe CS2 to CS3 (since they FINALLY fixed the Acrobat issue!), but now when I right-click an image file in Finder, then select "Open with", and look at the suggested programs, I've got these horrendously long, strange program names displaying for Photoshop CS2 and Photoshop CS3. Here's the one that displays for CS3:
    Adobe Photoshop CS3.app (10.0.1x10071012 [20071012.r.1644 2007/10/12:09:30:00 cutoff; r branch]))
    Screenshot:
    http://johnhmoore.com/AdobeOpenwith.png
    Any idea why this is or how I can make it go away?? (and instead just say Adobe Photoshop CS3.app)
    Thanks!
    John

    I would try resetting your LaunchServices database with something like Onyx or Cocktail (I think it does it too). Note that this will wipe out any custom file associations you might have setup.

  • Event Viewer: How to search and find event with specific text in the EventData

    Hello,
    When I use "Find..." option in the windows event log, it does not search within event's detail or text in <EventData> xml node on the event.
    Is there any easy, out of the box way to find all events that include an specific phrase in the <EventData> ?
    Thank you,

    Hi Allan,
    I‘m writing to check if the suggestions were helpful, if you have
    any questions, please feel free to let me know.
    If you have any feedback on our support,
    please click here.
    Best Regards,
    Anna
    TechNet Community Support

  • Spotlight has stopped working properly. Even when a known file is entered (with full file name) in search, it fails to find it. Any ideas?

    Spotlight has stopped working properly. Even when a known file is entered (with full file name) in search, it fails to find it. It finds some things, but is not to be depended upon. Any ideas?

    Try reindexing spotlight: Spotlight: How to re-index folders or volumes - Apple Support
    If you still have problems, open Console app, select All Messages, then search for mds in the search field. Then search for mdworker. See if there are any messages indicating it is having problems with certain files.
    You can also delete the index altogether and cause it to reindex with a command in Terminal. I have always assumed the method above will do the same, but I'm not certain. You must run this command while  logged into an admin account. Copy the whole line and paste it into Terminal.
    sudo mdutil -E /
    sudo temporarily elevates your privileges and will ask for your password. When you type it in, there won't be any response in the Terminal. Just type it and hit return.

  • CS3 - Problem with dynamic text -

    Hello,
    I have a problems with my text, when i write a few ligne inside a dynamic text box, if i selec the text and by the way drag it down the first line goes up and disapear. Is there any way to solve this?

    This is the Flash Player forum; please post your question in the appropriate product forum.

  • Find words within a text file

    Hey all.
    I am playing around with the idea of finding a line of text within a text file, by using scanner and some next methods.
    The way I am trying to get it to work is that one enters a string and the program then finds all the lines of text containing that
    user-entered string and then prints them.
    The text file in question contains names of University papers and their room numbers, quantity of students etc.
    Example:
    IBUS212     EALT006     1am     72     AL     LI     
    BMSC241     MCLT102     2     pm     8     AL     COOREY     
    My problem annoyingly enough seems to be that I can't think how one could compare the string entered to the lines of text being
    scanned in the text file.
    My latest go involved what you see in the code, scanning the examdata.txt file for a user-entered course number, using course.next();
    by going with the example above it would be IBUS212. The task was to then to find all of the lines containing that number and print them out using
    println (what I have tried with id and line) as well as the rest of that line eg: EALT006     1am     72     AL     LI .
       public void printCourse()
        try
            String details, input, id, line;
            int count;
            Scanner user = new Scanner(System.in);
            System.out.println();
            System.out.println();
            System.out.println("Please enter your course ID: ");
            input = user.nextLine();
            Scanner course = new Scanner(new File("examdata.txt"));
            course.next();
            course.nextLine();
            id = course.next();
            line = course.nextLine();
            if(input.equals(id))
                System.out.println("Your course times are: "  + id + "and" + line);
            else
              System.out.println("Your course does not exist."); 
            catch(IOException e)
                System.out.print("File failure");
      }Any advice/help/troubleshooting would be greatly appreciated.
    Edited by: AUAN on Aug 13, 2009 9:43 AM
    Edited by: AUAN on Aug 13, 2009 9:44 AM
    Edited by: AUAN on Aug 13, 2009 9:49 AM

    You'll want [to loop while|http://java.sun.com/docs/books/tutorial/java/nutsandbolts/while.html] the course Scanner has a next line and then print the line if it contains the entered text.
    For useful methods you can check the Javadoc of String and Scanner (use your browser search on keywords like 'next' or 'contains' to find them).

  • Align on comma tabs with tagged text in ID CS2

    We have a problem generating tabs aligned on comma with tagged text in CS2.<br />It works for other characters (like dot for example). Any attempt until now leads to an Indesign CS2 crash at import.<br /><br />The problem seems to be that the comma is also the separator for the parameters of the pTabRuler tag.<br /><br />In order to find a suitable syntax we have tried the following (without success) :<br />1) use the syntax from the documentation (tagged text user guide)<br />2) do some roundtripping (ie export and place the same tagged text. This works in CS3, but the CS3 syntax is version 5 while CS2 is version 4)<br />3) use an hexa definition of the comma <0x002C> similar to the "Indesign tags for special characters<br />4) upgrade to the last CS2 update (4.0.5)<br /><br />Of course one could say we just have to upgrade to CS3 and case is solved.<br />As we have a lot of scripting to convert between CS2 and CS3, we had like to know first if there is a solution for CS2.<br /><br />b Here is a sample of the tagged text we cannot import in CS2:<br /><br /><ASCII-WIN><br /><Version:4><FeatureSet:InDesign-Roman><ColorTable:=<Black:COLOR:CMYK:Process:0,0,0,1>>< br /><DefineParaStyle:NormalParagraphStyle=<Nextstyle:NormalParagraphStyle>><br /><ParaStyle:NormalParagraphStyle><pTabRuler:113.38582677165356\,Char\,\,\,0\,\ ;> 1,23<br /> 12,3<br /><pTabRuler:><ParaStyle:NormalParagraphStyle><pTabRuler:113.38582677165356\,Char\,\,\,0\ ,\ ;> 123<pTabRuler:><br /><br />b Here is the export of the same in CS3 that works in roundtripping:<br /><br /><ASCII-WIN><br /><Version:5><FeatureSet:InDesign-Roman><ColorTable:=<Black:COLOR:CMYK:Process:0,0,0,1>>< br /><DefineParaStyle:NormalParagraphStyle=<Nextstyle:NormalParagraphStyle>><br /><ParaStyle:NormalParagraphStyle><pTabRuler:100\,Char\,\\\,\,0\,\ ;>     1,23<0x000A> 12,3<br /><pTabRuler:><ParaStyle:NormalParagraphStyle><pTabRuler:100\,Char\,\\\,\,0\,\;> 123<pTabRuler:><br /><br />Note : tab align on comma is the way it should be in continental europe for displaying prices for example.<br /><br />Any hint would be very appreciated.<br /><br />Emmanuel

    We have a problem generating tabs aligned on comma with tagged text in CS2.<br />It works for other characters (like dot for example). Any attempt until now leads to an Indesign CS2 crash at import.<br /><br />The problem seems to be that the comma is also the separator for the parameters of the pTabRuler tag.<br /><br />In order to find a suitable syntax we have tried the following (without success) :<br />1) use the syntax from the documentation (tagged text user guide)<br />2) do some roundtripping (ie export and place the same tagged text. This works in CS3, but the CS3 syntax is version 5 while CS2 is version 4)<br />3) use an hexa definition of the comma <0x002C> similar to the "Indesign tags for special characters<br />4) upgrade to the last CS2 update (4.0.5)<br /><br />Of course one could say we just have to upgrade to CS3 and case is solved.<br />As we have a lot of scripting to convert between CS2 and CS3, we had like to know first if there is a solution for CS2.<br /><br />b Here is a sample of the tagged text we cannot import in CS2:<br /><br /><ASCII-WIN><br /><Version:4><FeatureSet:InDesign-Roman><ColorTable:=<Black:COLOR:CMYK:Process:0,0,0,1>>< br /><DefineParaStyle:NormalParagraphStyle=<Nextstyle:NormalParagraphStyle>><br /><ParaStyle:NormalParagraphStyle><pTabRuler:113.38582677165356\,Char\,\,\,0\,\ ;> 1,23<br /> 12,3<br /><pTabRuler:><ParaStyle:NormalParagraphStyle><pTabRuler:113.38582677165356\,Char\,\,\,0\ ,\ ;> 123<pTabRuler:><br /><br />b Here is the export of the same in CS3 that works in roundtripping:<br /><br /><ASCII-WIN><br /><Version:5><FeatureSet:InDesign-Roman><ColorTable:=<Black:COLOR:CMYK:Process:0,0,0,1>>< br /><DefineParaStyle:NormalParagraphStyle=<Nextstyle:NormalParagraphStyle>><br /><ParaStyle:NormalParagraphStyle><pTabRuler:100\,Char\,\\\,\,0\,\ ;>     1,23<0x000A> 12,3<br /><pTabRuler:><ParaStyle:NormalParagraphStyle><pTabRuler:100\,Char\,\\\,\,0\,\;> 123<pTabRuler:><br /><br />Note : tab align on comma is the way it should be in continental europe for displaying prices for example.<br /><br />Any hint would be very appreciated.<br /><br />Emmanuel

  • Spotlight does not find files with "_" (underscores), but only for certain file types

    Hey Folks,
    this is strange, maybe someone has an idea.
    I already searched the internet for a while, nothing found so far.
    I have a file "calc_mean.m" on my desktop.
    When I type "calc" in spotlight, it shows the file.
    But when I type "calc_" it suddenly does not show the file anymore. Nor does find the file, when I enter "calc_mean.m" in spotlight.
    When I enter "calc mean.m" in spotlight, it finds it (using space instead of the underscore).
    Now comes the real surprise:
    When I rename the file to "calc_mean.txt", spotlight suddenly DOES find the file when entering "calc_mean.txt".
    I recreated this "feature" with other files, copying and renaming ".txt" files to ".m" files, and if there's a underscore in the file, spotlight wont find it.
    Playing around a bit more, it seems spotlight does find files with underscore when they are documents, at least it works for the following extensions:
    .pdf
    .doc
    .txt
    .xls
    But these extensions for example do not work:
    .mp3
    .m
    .k
    .a
    .ka
    (and other random endings I tried).
    I am pretty confused. Sure it's no big deal learning to search for files that include underscores in their name using space instead. But I'm still quite puzzled. Any idea?

    All of those have meaning in various database search syntax (not sure if it matters).
    _ usually means any character.
    % usually means any run of characters.
    - is often used to negate what comes next, i.e. "don't include results that have the following text."
    I don't see any problem on my Mac, though.
    I also don't have any problem finding file names with those accented characters using Spotlight. I would suggest reindexing Spotlight, but if cmd-f finds them, I'm not sure that would help.
    Spotlight: How to re-index folders or volumes

  • Find issue with -exec

    Hi, I have a strange issue (since loading the 10.8.5 seed?). When entering something like
    find . -exec grep something {} \; -print
    find complaints with
    find: -exec: no terminating ";" or "+"
    which is strange since I ever used it this way and always worked. Even stranger, if I recall a previously issued command from the history it executes without issue. Even when changing the command line text. However, typing the very same text returns above error message. I'm very, very puzzled.

    As you insist so...
    https://devforums.apple.com/thread/187058

  • Yosemite finder crashes with previewig .txt and other files

    Hello,
    under Yosemite  the Finder crashes with previewig .txt and other files.
    Is this just my problem? Help please.
    Thank you very much.
    Regards.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the name of the crashed application or process. For example, if Safari crashed, you would enter "Safari" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ User Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of crash reports. The name of each report starts with the name of the process, and ends with ".crash". Select the most recent report related to the process in question. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • Cannot create new folders on desktop. Cannot drag new items onto desktop. Desktop in Finder opens with Terminal. Not sure if this has anything to do with upgrading to Mavericks but I need help if anyone has ideas. Thank you.

    I can no longer create new folders on my desktop. The option to do that is now light gray on the drop down menu and can't be selected.
    I cannot drag new items onto desktop any longer either.
    The Desktop in Finder opens with Terminal.
    Folders and items on Desktop open and work normally.
    Not sure if this has anything to do with upgrading to Mavericks but I need help if anyone has ideas.
    Thank you.

    Take these steps if the cursor changes from an arrow to a white "prohibited" symbol when you try to move an icon on the Desktop.
    Sometimes the problem may be solved just by logging out or rebooting. Try that first, if you haven't already done it. Otherwise, continue.
    Select the icon of your home folder (a house) in the sidebar of a Finder window and open it. The Desktop folder is one of the subfolders. Select it and open the Info window. In the General section of the window, the Kind will be either Folder  or something else, such as Anything.
    If the Kind is Folder, uncheck the box marked Locked. Close the Info window and test.
    If the Kind is not Folder, make sure the Locked box is not checked and that you have Read & Write privileges in the  Sharing & Permissions section. Then close the Info window and do as follows.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    xattr -d com.apple.FinderInfo Desktop
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You should get a new line ending in a dollar sign (“$”). Quit Terminal.
    Relaunch the Finder.
    If the problem is now resolved, and if you use iPhoto, continue.
    Quit iPhoto if it's running. Launch it while holding down the option key. It will prompt you to select a library. Choose the one you want to use (not the Desktop folder.)

  • Metadata rejected ("3.2 Apps with placeholder text will be rejected")

    Hi everybody,
    I have a problem with Apple but I hope that I can find someone here who has faced the same matter and can help me!
    Some weeks ago I sent my first app (the publication is a single-app catalogue) to iTunes Connect and everything was smooth (it has been accepted and placed in the App Store in 5 days).
    Instead last week I sent another similar publication (a single-app catalogue created in the same way as the first one) but the app has been rejeceted for this reason:
    3.2: Apps with placeholder text will be rejected
    Oct 21, 2011 03:38 PM. From Apple.
      3.2
    We found that your app and/or its metadata does not appear to include final content, which is not in compliance with the App Store Review Guidelines.
    Specifically, we noticed that the app metadata does not include a description of the app's features.
    While your iTunes Connect Application State will show as Metadata Rejected, we do NOT require a new binary if you only need to change your metadata. (A new binary is required only when you have to also make changes within the app.)
    If you only need to change your metadata, please visit iTunes Connect, Manage Your Applications, and revise the appropriate metadata values or settings, then click Save. After saving, click "Save," then click "Submit New Metadata" in the top right.
    Actually I do not understand what they mean with "placeholder text" but above all I would like to ask to someone expert - I rely on BOB! -  (I am a newby to DPS and Apple) if this means that I have to re-create from the start the app from the Folio Builder changing something in Indesign or if they just mean I have to modify something in iTunes Connect without touching the binary file.
    I am in a great confusion because they say the "app metadata" does not include a description of the app's features but I do not know how can I change the "metadata" within the app (in fact I believe that when they refer to the "app metadata" the mean the "metadata" inside the app and not the metadata that I add in iTunes Connect).
    The doubt that I have now is that maybe the last update of the Viewer Builder or of the Folio Builder has changed something that now generates this issue?
    Of course I am contacting also Apple for this issue, but in the meanwhile it would be a relief for me to hear a suggestion from here!
    Thank you to anyone for any reply!

    app metadata is the description text you enter while adding your app into
    iTunes connect.
    as is in the statement, for doing metadata changes, you don't need to submit
    a new binary (aka .zip file containing your folio)
    add more details of the feature of you app into the description in iTunes
    connect aand you should be fine.
    there is no 'metadata' inside tje binary of your app that you can change.
    but Bob can add sth. to this eventually.
    —Johannss
    (mobil gesendet)
    Am 22.10.2011 11:40 schrieb "Pierluis" <[email protected]>:
       Metadata rejected ("3.2 Apps with placeholder text will be rejected") created by
    Pierluis <http://forums.adobe.com/people/Pierluis> in *Digital Publishing
    Suite* - View the full discussion<http://forums.adobe.com/message/3984939#3984939>

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

Maybe you are looking for