Quick look for text files with non-registered extensions

It seems there was a way in 10.5 and 10.6 to register certain extensions with Quick Look to tell them how to preview a file. I have a lot of plain text files with different extensions that are not initially recognized by Quick Look. How do I hack the registry to tell Quick Look to preview a .cfg (or .aux, etc.) file as plain text?

Can't Quick Look for some text files
Re: Is it possible to change the viewing format?
Quick Look for files without extensions.
Re: Can I view text files without a .txt extension in Quick Look?
How do I add support to Quick Look

Similar Messages

  • Font Used For Quick Look Plain Text Files?

    Hi,
    Does anyone know what font Leopard uses when you Quick Look a plain text file? It's one that isn't anti-aliased. I can't seem to find it anywhere in my Font Book.

    You could override that with code in userContent.css, either for all websites or for specific websites.
    *http://kb.mozillazine.org/userContent.css
    <pre><nowiki> pre{font-family:monospace!important}
    @-moz-document domain(svn.uni-konstanz.de){
    pre{font-family:monospace!important}
    }</nowiki></pre>

  • Upload text files with non-english characters

    I use an Apex page to upload text files. Then i retrieve the contents of files from wwv_flow_files.blob_content and convert them to varchar2 with utl_raw.cast_to_varchar2, but characters like ò, à, ù become garbage.
    What could be the problem? Are characters lost when files are stored in wwv_flow_files or when i do the conversion?
    Some other info:
    * I see wwv_flow_files.DAD_CHARSET is set to "ascii", wwv_flow_files.FILE_CHARSET is null.
    * Trying utl_raw.cast_to_varchar2( utl_raw.cast_to_raw('àòèù') ) returns 'àòèù' correctly;
    * NLS_CHARACTERSET parameter is AL32UTF8 (not just english ASCII)

    Hi
    Have a look at csv upload -- suggestion needed with non-English character in csv file it might help you.
    Thanks,
    Manish

  • Change Open With for all files with a specific extension

    Hi, I've been using OS X for quite some time, but more recently cannot see how you do the following which is proving frustrating:
    * Open Get Info for a file,
    * Use the drop down under Open With to choose Other,
    * Select an appropriate application that wasn't on the drop down list (in this case Smultron text editor for CSV files),
    * Press the Change All button and the drop down turns back to Excel which was the previous default.
    So basically, how do I change all files with CSV extension to Smultron when Smultron wasn't in the list of Open With items and I have to use Other from the list. This is repeatable for any file type with any application that isn't listed and is on both my iMac and my work's MacBook. Try it yourself and you'll see what I mean!!
    Thanks

    Stuart Mchattie wrote:
    Thanks NeroWolf,
    Your solution does work for that single file, but doesn't change the system wide association of that file extension with a particular application. It is because this works that I believe the problem I am having is uncircumventable and is in fact a bug in the OS. Could anyone else confirm this?
    Cheers,
    Stuart
    It might be a bug. What I found is that the icon does not change unless I log out/in or reboot, even when the app normally puts an icon on the file.
    For example if I change an audio file to always open with VLC, it does even though the icon remains as before. However, even though clicking plays the audio with VLC, if I right click the file and select "Open With" it still says iTunes (app) default which is incorrect.
    Message was edited by: nerowolfe

  • Quick Look for files without extensions.

    I have many files without extensions that quick look does not recognize as text files. Bash shell scripts generally do not use an extension, for example (they are identified by their first line). Similarly I have a lot of text file notes w/o a ".txt" extensions.
    Is there any way to have quick look recognize these as text files? They currently have either text edit or textmate as their default "open with" app. I presume there is a config file of some sort for quick look that will let me default files with no extension to text files, but have not found it yet.

    Can't Quick Look for some text files
    Re: Is it possible to change the viewing format?
    Quick Look for files without extensions.
    Re: Can I view text files without a .txt extension in Quick Look?
    How do I add support to Quick Look

  • Looking for a file manager with these features:

    Hi everyone,
    I'm looking for a file manager that has the following features (in that order of importance):
      - Designed with keyboard users in mind (but full mouse support also)
      - Easily configurable
      - Supports copying, moving, deleting and the usual operations
      - Good search functionnality
      - Can see a lot of files at once, does not take up too much room on screen
      - Can tie certain file types to applications (ex. open .avi files with video player)
      - Nice to look at
      - [opt.] Can preview pictures (thumbnails or a preview pane)
    Does such a file manager exist? What would you reccomend?
    By the way, my current window manager is pekwm.
    I am new to linux desktops, so this may change.
    Last edited by peets (2007-05-14 23:17:34)

    phrakture wrote:
    slackhack wrote:not trying to be a wiseguy, but the command line actually does everything you require (except mousing, obviously) better than any gui you are likely to find. give it a try, you might be surprised at how often you start using it by default.
    Hah, I was going to say exactly that... "keyboard users in mind? my file manager has some awesome hotkeys - like 'l' then 's' to list files, and 'c' then 'p' to copy, 'm' then 'v' to move, it goes on and on, and it has millions of 'plugins'!"
    Yeah. I fell in love with linux because of the command line. But it's not always the best tool.
    One advantage of graphical file managers is that they offer 'automatic ls': you always see the contents of your directory.
    Also, yesterday I needed to move most files in one directory to another. They had varied names. This would have taken a long time with the command-line: I could have named the files one by one, or moved all of them and then name one by one the files that I want moved back. With a graphical file manager, I can select all files and then 'unselect' the ones I don't want to move with just a few clicks. It's faster and simpler. (Or maybe there's some really fancy CLI tool that I don't know about)
    When choosing a tool for a job, first I look for the most ethical one, then the most practical one. In most cases I would say I prefer the command line, but sometimes a graphical interface is better. Computers are really good at both, so using both methods is the way I go.
    I absolutely love your humour though, slackhack and phrakture. Keep it up!

  • Looking for a file manager with copy queue

    Hey,
    I'm looking for a file manager with a file-copy-queue feature.
    It is useful when browsing mounted samba shares, and you find something you want to copy.
    You'll then start copying the files, and then spot another useful folder. You start copying that as well
    and suddenly you got 5 different file copies processing at the same time, which decreases the copy speed.
    I also miss the feature when transfering files from my external harddrives.
    If there is a lot of FM's with this feature, I prefer one without kde-dependencies, as I am using xfce.

    Ranguvar wrote:If MC really does have that as a feature, it's once again proved itself _the_ graphical (sorta) file manager.
    sorry for misinformed.
    mc has a background job option while copying, it is not exactly a queue like functionality, but simulating to be a queue, and you can stop/resume a background job.

  • Using cRIO Profibus master/slave module with Siemens device. Looking for GSD file

    Using cRIO Profibus master/slave module with Siemens device. Looking for GSD file. Would NI or Siemens be able to provide this?

    Hey Kurt,
    For Profibus, only the slave needs to be defined with the GSD file, so you would likely get that from Siemens if their device is acting as the Slave in this setup. If you are using the NI Profibus module as a slave, then the GSD is automatically included with the driver.
    Take a look at the following article for more info on how to use the included GSD file.
    CompactRIO PROFIBUS DP:
    http://download.ni.com/support/softlib//embedded%20networks/NI-Industrial%20Communication/profibus/n...
    Regards,
    Ryan

  • New bee looking for applescript help with text edit app

    I have a huge text files (20+) , I want to find a list of words like weather, farmers, ploughing. I want to find these words one at a time, as my text file is 250+ Mb in size.
    I want applescript to count the how many times each word appears in the text.
    Paste that occurrence of word into an spreadsheet file in a row named after text file , and in a column named weather, farmers, ploughing.
    Please help.
    Thanks much.
    CF
    PS so far I can open the text files with applescript, that is about the extent of my ability in programing.
    Message was edited by: coldfusions onco

    For a file of that size, you would need to use some shell utilities to get decent performance. To count words, the following script breaks up the text into words, then counts the number of times the specified word is found (a dictionary file is used as an example, so the match is equivalent to 'contains'):
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set theFile to "/usr/share/dict/web2" -- a 2.5MB list of words
    set someWords to {¬
    {theWord:"weather", theCount:0}, ¬
    {theWord:"farmers", theCount:0}, ¬
    {theWord:"ploughing", theCount:0}}
    repeat with anItem in someWords
    set aWord to quoted form of theWord of anItem
    try -- break up into individual words, then search and count
    set theCount of anItem to (do shell script "tr -cs '[:alpha:]' " & quoted form of linefeed & " < " & theFile & " | grep -ic " & aWord) as integer
    end try
    end repeat
    someWords
    </pre>
    Is this related to your Automator post?

  • Importing text file (with file names) into Automator.. is it possible?

    Hello all,
    I have been working with Windows Batch files for my line of work. I have a couple of file names in a text file (a column), which I want to copy from one folder of one hdd to another folder on a different hdd. I have been trying to do this kind of work with a Mac. I already know how you copy and rename files in automator (which isn't difficult, of course) but you have to 'select' the files in the finder first (with get specified items).
    But the only way i see that you can specify items is by selecting them... is there a way to import a text file with all the file names instead of selecting all the file names manually?
    or is there an AppleScript alternative which I can use to import the text file (or just copy into applescript) and run before the query's of copying and renaming the files? I am kind of new to Apple programming.
    The text file looks like this:
    image1.jpg
    image2.jpg
    etc..
    so there has to be a command to: 'goto' a specific folder as well.
    Thanks in advance!

    You can import text files, but if they are just names you will need an additional action to add the source folder path. A *Run AppleScript* action can be used, for example:
    Tested workflow:
    1) *Ask for Finder Items* {Type: files } -- choose the text file containing the names
    2) *Combine Text Files* -- this gets the text file contents
    3) *Filter Paragraphs* { return paragraphs that are not empty } -- skip blank lines
    4) *Run AppleScript* -- copy and paste the following script:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 680; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters} -- add folder path
    add the specified folder path to a list of file names
    input: a list of text items (the file names)
    output: a list of file paths (aliases)
    set output to {}
    set SkippedItems to {} -- this will be a list of skipped items (errors)
    set SourceFolder to (choose folder with prompt "Choose the folder containing the file names") as text -- this is the folder containing the names
    repeat with AnItem in the input -- step through each name in the input
    try
    set AnItem to SourceFolder & AnItem -- add the prefix
    set the end of the output to (AnItem as alias) -- test
    on error number ErrorNumber -- oops
    set ErrorNumber to ("  (" & ErrorNumber as text) & ")" -- add the specific error number
    set the end of SkippedItems to (AnItem as text) & ErrorNumber
    end try
    end repeat
    ShowSkippedAlert for SkippedItems
    return the output -- pass the result(s) to the next action
    end run
    to ShowSkippedAlert for SkippedItems
    show an alert dialog for any items skipped, with the option to cancel the workflow
    parameters - SkippedItems [list]: the items skipped
    returns nothing
    if SkippedItems is not {} then
    set {AlertText, TheCount} to {"Error with AppleScript action", count SkippedItems}
    if TheCount is greater than 1 then
    set theMessage to (TheCount as text) & space & " items were skipped:"
    else
    set theMessage to "1 " & " item was skipped:"
    end if
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SkippedItems, AppleScript's text item delimiters} to {SkippedItems as text, TempTID}
    if button returned of (display alert AlertText message (theMessage & return & SkippedItems) ¬
    alternate button "Cancel" default button "OK") is "Cancel" then error number -128
    end if
    return
    end ShowSkippedAlert
    </pre>
    5) *Copy Finder Items* { To: _your external drive_ }

  • How copy just line in text file with cat? (SOLVED)

    Hi.
    How i make to copy just only line in text file with cat?
    For example:
    [:0.0]
    file=/home/Arch/./.wallpaper.png
    mode=0
    bgcolor=# 0 0 0
    I want copy just "/home/Arch/./.wallpaper.png" part.
    Actually i want create a shortcut for last wallpaper set from Nitroget, then i put this in SLim background.
    Recently i use hsetroot for wallpaper (~/.wallpaper.png) and i create a shortcut in /usr/share/slim/theme/MYTHEME whith ln -s ~/.wallpaper.png /usr/share/slim/theme/MYTHEME/background.png.
    I want make a same with Nitrogen.
    I now this looks like crazy, but...
    Sorry my English.
    Last edited by kramerxiita (2008-06-04 16:50:48)

    moljac024 wrote:
    kramerxiita wrote:
    moljac024 wrote:How can you make SliM change the background ? You link the theme background to another file ?
    Yes. In theme directory i put background.png shortcut for my wallpaper. So, when a change wallpaper, slim background change too.
    Example:
    ln -s mywallpaper.png /usr/share/slim/themes/default/background.png
    So, Slim background always is my wallpaper.
    So the wallpaper has to be a *.png ?
    No, jpg is possible. But when you create a symbolic link, remember put the extension too. If change png to jpg, change a symbolic link extension.
    But, remember if slim theme directory have background.png and background.jpg, Slim always choice .png. So, put only one this.

  • HT2128 Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Luis
    Good question - and one that a lot of (business) people would like solved!
    Your question prompted me to do some research, and I found this workaround posted by Scott Grossberg:
    His solution actually addresses a second problem too - how to attach a document when replying to an email message. In your case you may not need to consider the "reply" aspect - but if not right now, it'll come in useful someday!
    I've pasted it verbatim - if it works for you (it does for me) then all credit goes to Scott for solving the problem. There's just one thing I'd add to his solution: you will probably want to rename the message, as by default Goodreader gives it the Subject line: Mail with GoodReader attachments.
    THE GOODREADER OPTION
    1.  CREATE the document you want to send.
    2.  SAVE it to GoodReader (this will require you to buy and install the app).
    3.  Go to your email and OPEN the email thread to which you want to Reply and attach your file.
    4.  COMPOSE your Reply.
    5.  DOUBLE TAP the message.
    6.  TAP SELECT ALL. This will copy the entire email thread.
    7.  OPEN GOODREADER on the iPad and go to the file you want to send as part of your Reply.
    8.  At the bottom of the GoodReader screen you will see an EXPORT icon (it looks like a rectangle with an arrow pointing to the right).
    9.  TAP the Export button.
    10.  TAP EMAIL FILE. Depending on your needs, tap either SEND FILE “AS IS” or “FLATTEN ANNOTATIONS.” This will open a compose message screen with the chosen document already attached.
    11.  TAP in the body of the email screen. TAP PASTE. This will place your composed Reply and the prior email thread into the message.
    12.  ENTER the Recipients’ names in the TO: field of your message.
    13.  SEND your email Reply.
    The modified version (= when composing a new message rather than a reply):
    1 Make sure that the doc you want to attach is saved in GoodReader
    2 In the message you are composing, double tap, select all, and then copy.
    3 Open GoodReader and select the file you want to attach
    4 Select the export button at the bottom of screen
    5 Select e-mail file
    6 Position cursor in body of the email message, tap and paste. You may want to delete the "sent from GoodReader" text that precedes the attachment.
    7 Rename your message (as by default it will be Mail with GoodReader attachments)
    8 Add the recipient's address in the To field.
    Hope this helps! All thanks to Scott for this workaround.

  • AccessControlException -- Where is it looking for my file?

    I developed part of my program using WebGain, but at my house I'm using NetBeans.
    My program (which consists of three .java class files) is using a FileReader to read in a file called "courses.txt".
    Example code:
    BufferedReader inStream = new BufferedReader (new FileReader("courses.txt"));
    When it goes to open this file, it throws an "AccessControlException".
    My courses.txt is located in the same directory as my .java files. Is this incorrect? I've tried renaming the courses.txt file to see if it sees the file at all, but it STILL gives me an AccessControlException even when the file is no longer present.
    So, where is NetBeans (my java program) looking for my file?

    I'm reading in the file from a set file name. I don't
    want the user to be able to select it.
    I'm getting an error when I do the following (as you
    suggested):
    BufferedReader inStream = new
    BufferedReader(getClass().getResourceAsStream("/courses
    txt"));
    The error I get is "cannot resolve symbol".Is the above line within a non-static method? If not, then replace "getClass()" with [yourclassname].class
    Also, you'll have to play with the API. Since getResourceAsStream returns an InputStream (not a Reader), you may have to wrap it with an InputStreamReader as well.
    >
    Also, how would I load an image using that method?The Image API have methods/constructors taking file names, as well as URLs. To load from the classpath, use the ones taking a URL. So, for example, instead of Image("fileName"), use Image(getClass().getResource("/filename"))

  • Extract text file with HTML tags from JTextPane

    hello world
    I have a big problem !
    I am creating an applet with a JTextPane ...
    so I can write text, (bold, italic etc), i can insert images.
    Now i want to create a text file with all the HTML tags
    corresponding to what I wrote in my JTextPane.
    I want to have and save the HTML file corresponding to what i wrote ...
    Is it possible ? Help me please ....
    Jeremie

    writing to a file from an applet is going to take a fair amount of work on your part.
    in order to write to a file from your applet, you have to use servlets or jsp to write to a file on your server. if you wish to write locally, look into signing your applet or policy settings of your browser.
    for writing to a file to the server, i suggest you look into servlets and tomcat to run the servlets.
    i just finished a project that used servlets and they take some time to figure out, but its definitely worth your time.
    here are some websites...
    http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html
    http://jakarta.apache.org
    other websites have tutorials that you can look at too
    Andy

  • Reading dilimited input from a text file with tokenizer

    i am trying to read in a text file with the following structure: 2 integers on each line with comma as the delimitor.
    i am using the BufferedReader stream and Tokenizer to detect ",".
    try {
    BufferedReader in = new BufferedReader(new FileReader(filename));
    //read in the data file
    while ((s = in.readLine())!= null) {
    int i = 0;
    for (i = 0; i < 100; i++) {
    t = new StringTokenizer(s,",");
    A1 = Integer.parseInt(t.nextToken());
    catch (IOException e) {System.err.println(e);}
    When i print out A1[i], it only reads the last line of the text file. Please tell me what's wrong.
    Also i'd really like A1[i] to store the integer before the comma and another array A2[i] to store the integer after the comma. Please help.
    Thanks.
    p.s. A1 and A2 are arrays...when i previewd message in Netscape 7 it left out the brackets and the index....

    What is the for i loop for? If it is to read the next line from the file, then the while loop has taken care of it. Other than this there should be no problem with the rest of the code.
    Just add another line to store the next token into A2.

Maybe you are looking for