Note that there are some explanatory texts on larger screens.

plurals
  1. POEasiest way to make QuickLook generator on OS X? (script -> html -> webkit view?)
    primarykey
    data
    text
    <p>I don't know Objective C but would very much like to make a simple QuickLook generator.</p> <p>Here's my plan:</p> <p>myfile.extension -> QuickLook generator parses the file using a script (e.g. a simple shell script or otherwise that I provide) that then outputs a html file -> QuickLook shows this html file using a webkit view</p> <p>I'm basically looking for a template or a tutorial where I could just insert my own script into it and not worry about how the QuickLook generator itself works and without having to learn Objective C (which I am in the process of doing but slowly!).</p> <p>Many thanks if anyone can help with this, or even just point me in the right direction. I'm sure it'll be of use to someone else in the future too.</p> <p>Edit: </p> <p>I have found the following, which I'd missed before, which does answer my question in part:</p> <p><a href="http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/Quicklook_Programming_Guide/Articles/QLDynamicGeneration.html#//apple_ref/doc/uid/TP40005020-CH15-SW2" rel="nofollow">http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/Quicklook_Programming_Guide/Articles/QLDynamicGeneration.html#//apple_ref/doc/uid/TP40005020-CH15-SW2</a></p> <p>This is a more complicated solution that I had hoped, and means I will have to delve into Objective-C. If anyone knows how I can simplify this code I would very much appreciate it.</p> <p>e.g. is there a way of changing the line in the tutorial:</p> <p>occasion=InitializeCoreDataStackWIthURL(url);</p> <p>to something similar, like:</p> <p>(String) occasion = (the output of myshellscript.sh $url)</p> <p>Please bear in mind that I don't know Objective-C, so I have no idea how to write a core data stack or even what that is!</p> <p>Many thanks for taking the time to reply.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload