Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

A similar question was asked here but the answer refers to something called QL Stephen, which only claims to preview files with no extension. I need something that will show previews of files with extensions that are unknown to the Finder. They are all plain-text files. And, it needs to run on Lion (10.7).

To clarify: I'm not looking for a default QL for any unknown extension, but rather for one that will preview certain specific extensions (e.g., .sps, .fort) as plain text.

share|improve this question
1  
Since all unknown file extensions are not necessarily text, this is a bad idea. –  Slomojo Aug 30 '11 at 2:00
1  
A QuickLook plug-in version of HexFiend seems like the ideal unknown/default previewer, if QuickLook could be thus configured. –  Daniel Lawson Aug 30 '11 at 2:41
    
@slomojo: good point; I didn't mean all unknown file extensions, but rather several specific ones that are not known to the Finder. I worded that badly. –  Chap Aug 30 '11 at 3:32
    
@Chap Harrison, I think a QL viewer that can be configured to view a set of file extensions as text (or as Daniel says, a hex dump) would be nice, for sure. I might have a look at doing this. –  Slomojo Aug 30 '11 at 3:40
    
@Daniel: I think I gave you the wrong impression, too -- please see revised statememt of question. –  Chap Aug 30 '11 at 3:40
show 3 more comments

1 Answer 1

After a quick google, maybe this is what you need?

http://hints.macworld.com/article.php?story=20071028184428583

It explains how to declare specific file types as plain text, QuickLook will use these declarations.

share|improve this answer
    
Well, we're getting warmer... main problem I see is that these files I'm interested in were created by a Perl program, not an .app, so there's no Info.plist. (Also the hint claims to be 10.5 only, FWIW.) –  Chap Aug 30 '11 at 3:51
    
@Chap Harrison, that won't matter, pick an app that you would like to open the files in, for example, TextMate or Text Editor.app, and then add these extensions to that info.plist as per the article. Also the 10.5 info.plists haven't changed in this regard, so you're ok with Lion. –  Slomojo Aug 30 '11 at 3:58
    
It may be possible to get the extension added to Text Editor.app by doing Get Info, Opens with. I'll try it later and report back. –  Slomojo Aug 30 '11 at 4:09
    
Hm - I tried the macworld technique to TextEdit, and then tried launching TextEdit (to make sure I hadn't broken anything) and it crashed with "code signature invalid"! IIRC, that's something new with Lion. Is editing Info.plist enough to have done that? –  Chap Aug 30 '11 at 4:28
1  
@Chap Harrison, Yes, editing a .plist changes the code signature for an application. –  Daniel Lawson Aug 30 '11 at 4:47
show 7 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.