How to view contents of file without opening the file?

Does anyone know of a utility that will allow you to quickly view the contents - or a part thereof - of a file (particularly Word files) without having to open the file? I have thousands of files restored after a disk failure, but their filenames have been lost and replaced with sequential numbers. The only way of knowing the contents is to open the file, a tedious process for so many. I seem to recall seeing a shareware app that allowed this. Thanks for any help.
MacBook Pro 17   Mac OS X (10.4.8)  

Open the Script Editor in the /Applications/AppleScript/ folder and paste in the following:
tell application "Finder"
repeat with this_num from 1 to 5
set the_item to item this_num of window 1
set the_name to name of the_item
set the_text to (read (the_item as alias) from 1 to 15)
tell application "TextEdit"
set text of document 1 to (text of document 1) & the_name & return & the_text & return & return
end tell
end repeat
end tell
Before running the script, place the folder containing the files in the frontmost Finder window; you may want to split the files between several different folders and process each folder before heading on to the next one. The numbers in blue can be customized as needed; the first one controls how many files the script will search on each run, and the other two define what part of the file will be searched. The output from a file which is in a format other than plain text may contain document formatting and other content which will look like random characters.
(19999)

Similar Messages

  • How to get undo datafile number without opening the database ?

    I cannot open the database because the my undotbs01.dbf file is corrupted :
    SQL> connect sys/... as sysdba
    Connected to an idle instance.
    SQL> startup mount;
    ORACLE instance started.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Process ID: 6627
    Session ID: 170 Serial number: 5
    SQL>
    I tryed several solutions but I failed. So I want to use RMAN :
    set newname for datafile X to '/location/undotbs01.dbf';
    But how can I get X which is the file number for my undo tablespace ? I cannot call
    SELECT tablespace_name,file_id,file_name FROM dba_data_files;
    because my database cannot be opened.

    hi,
    hi have this problem and i cannot solve it, the customer has not backup data base
    can you help me ?
    thanks
    can you send me the note you are talking about ?
    thanks
    regards
    I cannot open the database because the my undotbs01.dbf file is corrupted :
    SQL> connect sys/... as sysdba
    Connected to an idle instance.
    SQL> startup mount;
    ORACLE instance started.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    SQL>

  • How to get my mail through without opening the mail app...

    Hi
    I have a tendancy to when ive finished using with my apps on my Mac I always go to top left and press quit itunes or quit mail etc
    if i do that to mail, obviously when a email comes through i dont get it straight through unless the mail program is open (like on my iphone, if an email comes it just comes straight through)
    what im asking is, is there a way for me to get my mail through straight away whilst the mail program is open? - thing is I like things tidy and dont like all these programs left open
    also what is the point of the red X in the top left corner?, if im on a website on safari and I press the X, safari is still open isnt it, but if i click back onto safari to re open the app it just goes to the homepage
    so really what is pressing the red X on the top left and quitting the app altogether, what is the difference?

    Mail has to be open to receive the new mail notification.
    Clicking the red x button just closes the window, does not quit the application.
    To quit the application, you have to select "Quit......" from the application menu.
    When an application is open, a white light indicator will be shown under the application icon in the Dock.

  • How do I launch mini player without opening the full iTunes?

    When I just want to listen to my music it's annoying to fumble with the full iTunes interface just to turn on MiniPlayer. I would like to do this in Mac OSX 10.10 and Win7/8/8.1 just make a direct link directly to the MiniPlayer or allow me to launch iTunes with a switch like -MiniPlayer to go directly into it.

    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

  • How I delete a smart group without opening the app?

    I created a too large smart group (not that smart after all) and now address book crashes all the time when I try to start it.

    Thanks a lot. I have iCloud and the suggestion of unchecking and having iOS reconstituting the address book from iCloud worked perfectly! Great suggestion

  • How to AVDocGetPDDoc without opening the pdf file

    Hi all,
    how to AVDocGetPDDoc without opening the pdf file in acrobat plugin sdk.
    Regards,
    JK

    thanks for ur reply, now its fine.

  • How do i download and e-mail from a zip drive without opening the file

    How do I download and e-mail data from a zip drive without opening the file?

    Hi.
    If you have a Zip drive, you can handle the file as you would any other file. Copy and paste.  Drag and drop. Select and attach as an email attachment.
    Zip drive data discs came in two capacities, 100MB and 250MB. So the largest files would not exceed those capacities, depending on the media from which they are pulled.
    The trick, I should think, would be finding a working drive that can read the media... and hope that media is not corrupted. Zip media was notorious for failing.
    I hope this helps.

  • How to view source of email message without opening the message?

    In addition to Verizon Email, I use Windows Live Mail.  With Windows Live Mail I can view the source of a message without opening the message.  This way I can find out if the message is legitimate or spam before potentially getting hit with malware from a bogus message by opening it.  I can then set up a blocking rule so a bogus message from either the sender or the domain never appears in my Inbox.  I have not found a way to do this in Verizon EMail. 
    Is there a way to view the source of a message without opening the message in Verizon EMail?  Right clicking just opens the message which I do not want to do.

    computerbug,
    You can get a preview of your email.  Log into the Verizon account and go to email > in the top you will see
    Conversations
    Contacts
    Calendars
    Settings
    Click on settings < General settings > Display and you will see 2 options for email view.
    (Preview is not available, if the resolution is less than 1024 by 768 pixels)
    Thanks,
    Tonya D

  • How to write IPTC metadata to files without opening the file?

    HI,
    I'm trying to run a script (preferably in JS) that allows me to write metadata to a file. I can acheive this very easily by opening the file, but I'd need to batch process many large images, so opening them would cause severe slowness. The purpose of adding the metadata to the files is to search upon them in Bridge.
    We're using CS5, but have CS6 if it's better to use.
    My Script
    // set current doc ref
    var docRef = app.activeDocument;
    // Set caption in active document
    docRef.info.caption = "Some Meta-Data";
    Do I need to use bridge to write the metadata without opening the file? Or can running the script in PS allow me to do so?
    Thanks,
    Tom

    Its easy if you use XMP metadata.
    app.activeDocument.info.caption (in photoshop script metadata)
    and it is the same field as:
         Dublin Core namespace
         namespace:     http://purl.org/dc/elements/1.1/
         Property:          description
    you change description on XMP = you are changing the same image.info.caption
    Your answer is here:
    http://forums.adobe.com/message/5743730#5743730

  • How to view aspx PDF files in Safari 4.0.3

    Hi,
    Using Safari 4.0.3 on os 10.5.8. I'm trying to view PDF files that are supposed to be viewed and editable within the browser (this is how the site works on a pc using internet explorer). When I click the relevant icon on the site, the site asks me if I'm sure I want to view that file (this is normal), and I click accept. Then Safari simply downloads the aspx file into the downloads folder. To the extent I could open the aspx manually using Reader (I can't), it wouldn't help anyway because the file is meant to be edited within a web browser, and within the pdf there are options to "save," "save and close," etc. I need to be able to open and view this file from within Safari.
    I have the latest Adobe reader and made sure the settings allowed for opening of PDFs from the internet.
    Any thoughts?
    Thanks.

    I concur with Kirk Olson1's comment above, and have been unable to solve this 'til reading this post.
    Change the .aspx extension of a saved file to .pdf and presto, Preview opens the doc for reading without complaint. This may not solve the problem the user has with editing the file within their browser. But the .aspx file, without a doubt, is in fact a file of "some" sort that is readable by Preview. As to the properties of editing the file, I can't speak to that. Since I am using this to read and save my bank statement, I would hope that the ASPX file is a signed document that can't be edited without the change being detectable... otherwise, what purpose is served by introducing a new filename extension ASPX for PDF files???
    I've had the same "Browser can't view/open ASPX file" problem under Mac OS 10.5.* and Safari and Firefox. A bank provides me with "PDF" files (so they say) that download (to view, or file-save-as) with the .aspx filename extension. Firefox 3.5.* doesn't handle them. I've not downloaded Adobe products to my Mac and have avoided doing so because I don't want Adobe mucking with the way Preview works, etc.
    In an experiment, I am unable to coerce Preview to open a copy of the same file while it had the .aspx extension (via Ctrl-Click the aspx file, Open_With, Enable All Applications to Open). Preview just sits there without opening the file, no error dialog, and I don't see any telltale warnings in the console log either. The same file, with a filename extension changed, no problem opening and viewing.

  • How to view a PDF file

    Hey, i was wondering if anyone knew how to view a PDF file in Java? I'm trying to make a button that will open a PDF file. Is there any other way without downloading an extension?

    Kandyman wrote:
    The thing with downloading extensions is that they are not free. Some are trial version. iText and Jasper are probably free and stable to a great extent. Plus they allow you to play with PDFs, Excel, Bar charts, Pie charts, CSV etc etc without the hassles of the heavyweight Swing.
    - Vaibhav Beohar

  • Printing pdf files in a browser (e.g. Firefox) without opening the file

    I have a web application, which is generating pdf files. Is it possible to print a pdf file on the default printer without opening the pdf file?
    I want to click on the link of a pdf file and the file should be printed immediately on the default printer.

    I do not think this is a feature of the browser. In Firefox I can set that a PDF file is opened using a PDF viewer. At this point I would specify the Adobe reader. Instead of opening the PDF file this file should be printed immediately.
    So my question is: Is it possible to configure the Adobe reader that the PDF file is printed immediately?

  • Viewing Sender's Address Without Opening E-Mail

    I am trying to find a way of viewing a sender's e-mail address without opening the e-mail, just in case it is unwanted spam. Anyone know how? When I was in the windows world, I used View Source in Thunderbird, but I am not able to find a comparable option in the OSX Mail application.
    Thanks!

    Hello Pankaj,
    it should be a valid E-Mail Address because you should be able to handle the bounces. And please have also a look at <a href="/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface">Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface</a> if your Mail system is configured correctly. You should be able to send out SMTP Mails via SAP Business Workplace.
    Regards
    Gregor

  • How to view corrupted word files, please help?

    Can't view doc corrupted file .How to recover unsaved documents WORD? how to view corrupted word files, please help

    It could be Word or even Windows that is having the problem. Before you start trying to restore a backup or repair a file, try opening other documents.
    Try opening your "corrupt" document from another computer. Also you can try to make a copy of corrupted files. (It could work) : http://www.filerepairforum.com/forum/microsoft/microsoft-aa/word/968-i-would-be-grateful-for-any-help-to-repair-or-the-procedures-word-files
    But if nothing helps, you can try to recover it by using DOCX Viewer Tool Download free demo versions of this software from website: http://www.docx.viewertool.com/ It’s
    gonna help.

  • Is it possible that i can view important dates of the calendar without opening the calendar.?

    how can i view the birthdays in the calendar without opening the calendar..is there any way i get a notification or anything..??

    iOS5 has the option to pull down a screen where all notifications are listed, including the upcoming events (Notification Center) . Apple - iOS 5 - See new features included in iOS 5.

Maybe you are looking for

  • How to configure Crystal Report from Test DB to Production DB

    Hi, I have a VB/asp.net application that is currently using Oracle DB. Now, I'm creating a new Crytal report that will connect using any userID, password, database, servername on runtime. When I created the Crystal Report I used the Oracle OLE/DB con

  • RE: Org Structure in HR

    Hi Gurus, I am new to HR. I have ECC 6.0/windows 2003/oracle on my desktop. I am trying to create a Org Structure using PPOCE and when i saved it asked for the trasnport request. I have created this transport request. when i get out of T-code PPOCE a

  • How to disable proxy server in my ipad mini?

    hi, i am new using ipad mini. i am currently using internet on my ipad via airtel india sim. but this net connection is working through proxy , which i did not knowso, how can i disable proxy settings in my ipd mini?

  • Session replication not working with OAM clusters

    Hi, We have a enterprise deployment of OAM 11.1.1.5.0, and we are using a cluster or OAM managed servers. Server#A (fano1) hosts the admin + OAM managed server, server#B (fano2) hosts the second OAM managed server. What we have noticed in general is

  • Creation of Multiple Account Groupings for Mvt.Type 201

    Dear All, We have one material code for a consumable material type and one valuation class attached to it. We have one Stock G/L account and multiple consumption G/L accounts. We need the post to multiple consumption G/L accounts and cost centre when