GREP Search - Save to file

Hello,
I wonder if it's possible to do a GREP search in an Indesign CS3 document, then save the results to file (like .csv).
Thanks
Marco Lugli

Sure it is possible.
Assign your found texts to a variable, write the variable to a text file.
myVar = "";
// add text to variable
myVar += "text\tsecondtext\n";
newFile = new File ("~/Desktop/mycsvfile.csv");
newFile.open('w');
newFile.write(myVar);
newFile.close();

Similar Messages

  • "Save Pdf File" window

    Hi,
    I have an Access 2000 aplication which works fine with Acrobat 8.1.2 Pro
    -you select a product name
    -a PDF file is generated from this product's "Report"
    -and it's sent by mail
    It is a VBA code which stores: folder name, file name, printer name into Windows Registry
    I have migrated the file to Access 2007 and now there is a problem.
    It opens a "Save Pdf file" window and asks me to select a folder and to enter a file name.
    Seems that name and folder retrieve from the registry is not working.
    What is it? What can I do to resolve the problem? Any idea?
    Thanks,

    I searched without success ...How to find it?
    I have this:
    ' Put the output filename where Acrobat could find it
    bSetRegValue HKEY_CURRENT_USER, _
                     "Software\Adobe\Acrobat Distiller\PrinterJobControl", _
                     Find_Exe_Name("application", "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE"), _
                     sOutputFolder & "\\" & sPDFName

  • When I open Firefox (with Google as home page), I get prompted to save a file (application/octet-stream)

    This is my mother's computer. It's an HP Pro something. It has Win 7 Pro and Firefox is up to date. I'm not sure when this started because she doesn't use it every day. We can't get to Google at all using Firefox. I even tried a new tab just now and I get prompted to save a file (earlier the file it is prompting to save is NFRC_FLE13007-1A-RD_3300_SN_CIG_IS20_i89.pdf [the two dashes might be underscores - can't read my own writing!] Now it doesn't show me the file name). I tried using bing to search for this file name and didn't get any results.
    I already tried clearing the cache and also resetting the browser using CTRL-F5. I've rebooted after that too. No changes...
    I have not cleared cookies - I think she relies on a lot of them and I don't want to get her more confused!
    Also, I've set up a number of "shortcuts" on her desktop so she can go directly to some websites. One is for Yahoo, one is for WebMD, etc. When I click on these, I do not have the issue. Seems to be related only to Google. Okay, just tried Google Maps and the same thing happens... And same thing happens with GMail. I captured the window, see the attachments..
    Thanks!
    p.s. I occasionally (on my computer) get prompted to save a file in Firefox when I hit the back button. I just say cancel and then do it again and everything is fine. I don't know if this is related either. I have Win 8.1 on a Lenovo laptop.

    Try to boot the computer in [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows Safe Mode with network support] (press F8 on the boot screen) open firefox and see if that happens again.

  • How to remove a hidden text in pdf file with Acrobat Pro 9. How to save pdf file and remove hidden text?

    I
    I made this file in indesign, the highlited empty spaces indicates that their is a hidden text and it pop up when searching for some words in pdf file. so how can I save pdf file to keep only the seen text ???

    Dear lrosenth,
    I went through some codes/suggestions in internet and I found that I need to have cmap file and cid font file for the respective font since pdf doesn't support unicode fonts directly.
    Can you help me to know where can I get cmap file and cid font file for tamil language font Latha(TrueType) microsoft font.
    Regards,
    Safiq

  • I am trying to save a mp3 file but firefox does not allow me to save it...it allows me to play the file but not download and asave it to my computer. How do I enable it to save mp3 files on my computer?

    I am trying to save a mp3 file but firefox does not allow me to save it...it allows me to play the file but not download and asave it to my computer. How do I enable Firefox to save mp3 files on my computer?

    Go to Options>Applications tab > search MPEG Layer 3 audio(audio/mpeg) > use "Save File" option on drop down menu.

  • I can no longer directly print from the USPS print servelet. I now have to save the file and rename the extension to PDF load in another program to print. It used to be automatic. What happened?

    When trying to print from the USPS website (to print a label) when I click to pay and print instead of my print selection screen coming up I get the "Firefox doesn't know what to do with this" screen. THrough some web searching I found I can save the file, then change the extension to PDF and load it in another program and print but it adds two steps and is a real pain. Why would this have changed????

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See also "Disable virus scanning in Firefox preferences - Windows"
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • I can no longer save illustrator files, please HELP?

    I have work saved on my mac that for some reason can no longer be saved as a illustrator file, to be honest there is quite a bit. I can save it a EPS or PDF but not Ai. Does anyone one have a solution for my problem? Or can i just save all work as EPS what effect will this have in the long run?? Cheers guys.

    Hi Jacob
    I have tried searching for them files in spotlight but nothing of that file name is found. I have also tried holding the command buttons mentioned when illustrator starts up but still no joy i cannot save ai files in my first user account. I have also tried go to folder, still no joy. The folder with illustrator settings cannot be found...
    Should i just save all work to disk and then delete the first user and start again in the user where ai files can be saved? Or should i remove illustrator, reinstall and look for the folder again?
    Could you please in simplest form tell me how to find the folder in question, so that i am not missing something in my stress...
    I appreciate your help with this matter jacob and your patience...
    Semiproflea..

  • How to save php files w/out testing server?

    Don't shoot me, I'm totally not a techie. I know HTML pretty
    well, but not php. But I did take over maintenance of a site built
    with php. I use DW MX and never installed php. The site doesn't do
    anything dynamic, but it does use includes. This is all fine, but
    here's the problem:
    My client bought DW8 and is now taking over maintenance
    himself. He's less techie than I am, by the way, but he has used
    DW4 without problems. So he's trying to play around with the site,
    creating a new file and saving it with his DW8. But he gets an
    error message saying that he's supposed to define a testing server.
    I told him to go into the edit sites section and specify "none" for
    server model and access (that's how I have it set up with my DW
    MX). He said he tried that and it still won't let him save his
    files.
    So is there some way to tell Dreamweaver that even though
    he's using a .php extension, the files don't need to be tested
    locally? I'm having a tough time helping him with a product I don't
    even have.
    Thanks.

    Have him IGNORE the error message by clicking NO.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "barngirl" <[email protected]> wrote in
    message
    news:el9tr1$br$[email protected]..
    > Don't shoot me, I'm totally not a techie. I know HTML
    pretty well, but not
    > php.
    > But I did take over maintenance of a site built with
    php. I use DW MX and
    > never
    > installed php. The site doesn't do anything dynamic, but
    it does use
    > includes.
    > This is all fine, but here's the problem:
    >
    > My client bought DW8 and is now taking over maintenance
    himself. He's less
    > techie than I am, by the way, but he has used DW4
    without problems. So
    > he's
    > trying to play around with the site, creating a new file
    and saving it
    > with his
    > DW8. But he gets an error message saying that he's
    supposed to define a
    > testing
    > server. I told him to go into the edit sites section and
    specify "none"
    > for
    > server model and access (that's how I have it set up
    with my DW MX). He
    > said he
    > tried that and it still won't let him save his files.
    >
    > So is there some way to tell Dreamweaver that even
    though he's using a
    > .php
    > extension, the files don't need to be tested locally?
    I'm having a tough
    > time
    > helping him with a product I don't even have.
    >
    > Thanks.
    >
    >
    >

  • Can't open or save any files on iMac

    I have a early 2008 imac running mountain lion. It has been acting very strange lately. For one thing it won't shut down. I have to use the power button to shut down. I have rund disc warrior several times as well as techtool pro. Now it won't let me save a file from any program! It will open a window, and all I get is a blank window with the spinning gear. Same thing when I try to open a file from within any program. Any ideas?
    thanks
    Joe

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Recording does not save the file

    We are facing a serious problem with Captivate 2. After
    recording about 40 -50 slides it does not save the file.
    The system hangs for several minutes and there’s no
    response.To analyze this problem we have tried out User Forums and
    FAQs.In the User Forum too similar problems are reported. For
    example, visit:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=464&threadid =1261116&enterthread=y
    In fact, in our team Captivate is loaded on a standalone
    hi-end system with ample space and memory.
    We have also tried workarounds to address this issue. For
    example, we deleted all temp files from library and we also saved
    it on a short path like c:/project.
    Nothing works!!!

    Hi Madduser and welcome to our community
    When you say
    To analyze this problem we have tried out User Forums and
    FAQs are we to assume you simply searched them and read the
    threads? I'm assuming this because this is your first post here.
    You will note that the thread you linked to mentioned the
    person was attempting to save on a network. I do see you have tried
    using the shortened local path to no avail, so I'm guessing the
    network is ruled out here.
    As usual, I've got more questions than answers, but hopefully
    as we work through them something will come to light.
    * Have you EVER been able to create and save things using
    Captivate? Or did you just install it and it's never worked for
    you?
    * Have you tried what is outlined in the following Technical
    Note?
    Click here to read the
    Technical Note
    Cheers... Rick

  • Is there a function to Search a Text File?

    I am writing a program that will read data from a URL and then save that URL to a text file. I then need to be able to search the text file for certain strings and must know which line they appear on. I realize that I could read the text file in line by line looking for the string and then note the current line number. However, I need to search for 20-30 different strings in each URL and this would be very inefficient. I would really like some way to say:
    int lineNumber = 0;
    lineNumber = searchText("sometextfile.txt", str);
    And have searchText return the lineNumber on which the String str was found. Alternately, if there is way to search a URL that would cut out the middle man of writing it to a text file first.
    Any help would be greatly appreciated as I could not find this anywhere. Thanks.

    I have done something similar to to this, but it depends on what you want to use it for. I was looking for specific data on websites and would copy that data into a database. So, I used regex to find the data on the site and copy it. I also had to use String Tokenizer in certain places to get the correct data sometimes.
    orozcom

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • I forgot to save a file in Numbers. Is there any way I can possibly get it back?

    I forgot to save a file in Numbers. Is there any way I can possibly get it back?

    Do a search in Finder for Untitled.Numbers. If you find such a file, or some variation, try to open it and see what's there. That's if you never saved.
    Mavericks is pretty good about autosaving, so you chances are not too bad. In the future though, never write a thing in a new document until you give it a name and a place.
    Jerry

  • I have used Image Capture to scan images/documents and then saved them as either PDFs or PNG files.  For some reason, just this past week Image Capture will no longer save the file.  It scans, and the Scan Results window pops up, but it won't save file.

    I have used Image Capture to scan images/documents and then saved them as either PDFs or PNG files.  For some reason, just this past week, Image Capture will no longer save the file.  It scans, and the Scan Results window pops up, but it won't save file.
    The file name has no special character in it, just letters and no spaces.
    I have done this in the past and it has worked, but now it will not.
    I have not upgraded any software, that I am aware of.
    After scanning, the Image Capture pops up the Scan Results with the file name in the window, but neither the Scan Results nor the Image Capture window responds to inputs.  The Image Capture window is frozen, with only the "Overview" and "Cancel" buttons active (but non-responsive).
    Is this a software issue or a scanner hardware issue?  I am using a HP Photosmart C6200 series printer/scanner on a network using a Time Capsule airport.
    Thanks.

    I had the same problem.
    Got a 90% fix.  Apparently the Mavericks preferences won't work with Yosemite, so I just deleted the Image Capture preferences.
    Unfortunately, the "Scan to" folder seems to be permanently set to the Pictures folder.
    1.  Quit Image Capture
    2.  Go to Finder > Go > Home, which opens up your home folder (named after your user name)
    3.  Open Library > Preferences > com.apple.ImageCapture.plist - Drag this file to the Trash
    4.  Start "Image Capture", click "Details" and change all your settings as you prefer
    5.  Quit and restart "Image Capture".   Notice it remembers all your settings except "Scan to" folder.  It insists on saving to "Pictures".
    That's as far as I was successful.  I tried changing the "Scan to" folder to "Desktop", but on launch, Image Capture always sets it back to "Pictures".
    This is what I tried:
    6.  Download and install "Pref Setter" from http://www.nightproductions.net/prefsetter.html
    7.  Quit "Image Capture".  Right-click on "com.apple.ImageCapture.plist" and open with Pref Setter.
    8.  Search for "Pictures", which finds "~/Pictures" (the tilde character at the start means your home directory).
    9.  Double-click on "~/Pictures" and change it to the folder you prefer.  I like "~/Desktop"
    10. Choose File > Save then Quit from Pref Setter.  Note that re-opening the plist file still shows "~/Desktop"
    11. Start up "Image Capture" -- on startup, "Image Capture" sets "Scan to" folder to "Pictures"
    I consider this a bug.

  • How to save the files to a USB memory plugged into the EVS-1463RT

    I am trying to collect images with EVS-1463RT by running a vi. The EVS has LV Real Time v13.0.1 installed. The vi runs well and save images to a folder ('C:\Images\') in the development PC. But, when I deploy the vi to EVS-1463RT, the vi cannot find the directory and nothing is saved in the folder. I am considering to save the files to a USB drive connected to a port on the EVS. Would it be possible to save the image files to a USB memory plugged into the EVS-1463RT? If so, what would be the file path to the USB connector?

    Thanks for the information.
    Then, the problem becomes where I get this "USB Storage Support". Search in the NI site doesn't tell me much other than something related to LabVIEW Communications System Design Suite. Is that what I need? I am not sure if I have it. If it is not easily available, another option can be using a CompactFlash card as long as I know the file path to use. Thanks.

Maybe you are looking for