A while back I wrote a Quicklook plugin that displayed some text related to image files.
But I wanted to be able to show additional information when the user clicked a button or hovers over an image . The plugin uses a HTML construction to put the preview together. Apple has examples on how to do this in its Qucklook Plugin introduction . So I am not going to go into that here. But what I was missing was how to use Jquery. The Quicklook plugin is sandboxed and is not allowed to load any data from the outside world.
The simple answer is add the jquery Library file to your bundle and then reference it in the html.
I guess thats how many may feel when they are looking at the first ever blank page of their first ever blog.
I never thought I would be one of them. You know bloggers..
And in truth I am not. I think..!
Bizarrely I am just looking for a cheap way to get a download or page view counter for any apps, scripts etc. I share on the internet. Just so I can gauge interest.
I know, right! whats this got to do with blogging.
Over the years I have written a lot of Applescript to help me and my colleagues do our daily jobs. But as time has gone on, the scripts have become organic in nature. Growing and becoming more complex. Mainly to cope with changes to workflows, Mac Os or portability to new areas.
So I have been rewriting a lot of them as cocoa application. And leaning (very slowly ) objective -c as I go along.
My quest to learn has a long way to go. I do have a couple of books that I keep meaning to get on with.
But I always seem to need to jump into the fray and write some urgent code that is beyond where I am in the books.
I fear this may be leading me into bad habits with the way I code.
One of the best ways I find I learn is to have an on going task. Rather than read through books.
So although I strive to do the aforementioned above. I also like to look at questions on fora (forums) like AppleStack Exchange ,StackOverflow [Objective -c ] MacosxHints and see if I can solve some of the issues for myself.
I have posted some answers up on them. Not many and probably not that great so don’t get exited.
So part of my quest is to slow down and do the basics of Objective – c and keep my hand in with Applescript.
Lastly, I have been wanting to have a place to put up bits and pieces of code snippets, apps etc. This Blog may be it. We will see.