How to define the default quicklook viewer - quicklook

How does one define the default quicklook viewer for files which don't already have one.
For instance I would like to define textview as my default quicklook viewer.

I actually came across this project ql-plaintext
It pretty much does what I was looking for, I can now open shell scripts with QuickLook

Related

Is there an easy way I can display a short message with the default Quick Look preview?

DRM-protected iTunes movie and music files show a fairly standard-looking Quick Look preview, but with an extra line of text added above the default material:
I'd like to be able to replicate this behavior for my DRM-protected custom document type, but so far I haven't found a way. Is there an easy way to achieve this and still keep the system-default content and layout? Sure, I could easily obtain all of the metadata and build my own preview, but then I'd have to worry about localizations and future-proofing.
No, the only way is to build a custom Quick Look preview extension and/or plugin.

Multiple "panes" view in single document Windows application

I'm trying to write an editor for game scenes. So far, I'm able to present results in a single window. However, I would like to have several "panes", for example for material properties or resources preview.
The good example would be Blender layout:
I know MFC and WinAPI, I wouldn't rather use Qt, since it's not free.
I did it on a commercial application and it works fine:
Create a Single Document application
Read about CDockablePane, then look into the MFC Feature Pack exanples.
Finally implement the CDockablePanes and their contents
Arrange them the way you want by docking them to your own CFrameWndEx-derived class.

Generate custom Finder thumbnails for some file types

I'd like to be able to generate my own thumbnails for some image files with custom extensions (say, a .canon file that is really a TIFF), so that Finder would use them.
I don't want to change the file contents (nor am I interested in the embedded tiff thumbnail).
Creating the thumbnail from the file's contents would be easy, the tricky part is integration. Does anyone know if it's possible?
The custom extensions won't be associated to any/other app.
I've done a lot of iOS development but know very little about OS X components.
If it's not possible to use Finder at all, is it at least possible to store the thumbnails in resource forks and have them used by, say, a custom filesystem browser?
File thumbnails, as well as full-size previews (which are displayed when you tap the space bar), can be generated dynamically by Quick Look plugins for any file type that they're registered for. The thumbnails do not need to be stored in the file, although you can certainly use pregenerated thumbnails if they're already in there.
For more information on Quick Look, please refer to Apple's Quick Look Programming Guide.

Source of Thunderbird's Default Theme by Arvid Axelsson

I need to edit the original icons from Thunderbird's Default Theme by Arvid Axelsson.
Does Mozilla provides an SVG version?
I need to know the style of the icons, because they're really specific (inner-shadow etc). It's not a simple -moz-effect (CSS). Does anybody know where to find or download the real skin-source or how to view files inside chrome://global/skin?
There are actually three default themes - Windows, Linux and Mac OS X. You seem to be talking about the Windows theme which is indeed being attributed to Arvid Axelsson even though he doesn't seem to be working on it (looks like he created the theme around Thunderbird 1.0 and other people took over since).
Looking at the source code repository, the icons are there but their source code isn't. I also checked the bugs associated with icon changes and the source code of these icons indeed doesn't seem to be public. Which means that the only way for you would be contacting the person who designed the icons. That would be Andreas Nilsson, click his name in bug 671236 to send him a mail.

How to find object model of an OSX application?

Is there any reference documentation on the object model of every OSX application? How can I know that finder has an home attribute and textedit has a document attribute?
Is there a way to inspect all commands and events I can use with applescript ?
You can drop the application onto (Apple)Script Editor to view the dictionary. With appscript you can also generate HTML format documentation.
If you're already in AppleScript Editor, you can also select File>Open Dictionary (Cmd-Shift-O) to see a open an application's dictionary. Script Debugger has an additional feature where it will organize running applications near the top of a submenu for ease of selection.

Resources