BenPorebski / QuickLookPDB

A QuickLook plugin for rapid preview and identification of PDB files
2 stars 1 forks source link

wow what a plugin? is there any reason that this would not work in OSX 10.13.5 (High Sierra)? #1

Open mmagnus opened 6 years ago

mmagnus commented 6 years ago

--edit: OK, this is not relevant.

[mm] Desktop$ qlmanage -p U6_ISL_minimal.pdb
Testing Quick Look preview with files:
    U6_ISL_minimal.pdb
2018-06-20 16:42:24.053 qlmanage[1344:23216] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x7203, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2018-06-20 16:42:24.201 qlmanage[1344:23216] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1451f, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
mmagnus commented 6 years ago
screen shot 2018-06-20 at 5 32 21 pm

OK, I got this to work. However when I click on the space key to see quicklook I get a blank preview. Any idea?

mmagnus commented 6 years ago

OK, I see now the problem is how to install Jolecule.

Any help how to install it?

I'm able to run

[mm] jolecule-master$ ./jol-electron.sh
[ '/Applications/Electron.app/Contents/MacOS/Electron', '.' ] []
/Users/magnus/Desktop/jolecule-master/examples/1mbo.views.json

and see the demo. But how to set it up for the plugin?

BenPorebski commented 6 years ago

Hi Marcin,

Sorry for the slow response, I've been a bit busy this afternoon in the lab.

I unfortunately have not kept this plugin up to date as Apple were updating OSX and quicklook faster than I could update the plugin.

To be honest, I'm surprised you have got part of it working at all.

The last time I attempted to get the plugin working again, I ran into problems with how quicklook was sandboxing the html/js code. For some reason, I was unable to pass the contents of the file into the html code that would launch jolecule, or there was some problem with jolecule not being rendered correctly. It may have also been that quicklook disabled the use of html/js since when I had the plugin working.

Looking at your latest comment on the issue, it seems that you tried to install jolecule externally to the plugin. The plugin is probably not going to be able to utilise this as I was using a stripped down/hard coded copy of jolecule within the plugin contents.

I'm currently running OSX 10.12.3 on my laptop. If I get some time this week, I can try dig into the code again, but I'm not sure that I can fix it for either sierra or high sierra.

mmagnus commented 6 years ago

Hihi, thanks for these great plugins, I wanted to have something like this for years!

I see this is way more difficult to get this jolecule to run.

Do you think it would be easier to simply hack something that will make cartoon preview based on PyMOL in Spotlight and QuickLook, and keep fancy jolecule for later?

I will try to contribute later and promote the tool in labs that I know people might want to use it, maybe some of them will chip in and we can get this done.

I think even simple cartoon preview in Quicklook and Spotlight would be awesome. I do code, but I have never coded anything within Apple ecosystem nor QuickLook plugin. If you could hack something like this, that would be awesome.

Anyway, still it's pretty great, and a nice starting point for development.

BenPorebski commented 6 years ago

Hi Marcin,

The last time I tried to update this code was in 2016, where I was looking at incorporating the PV javascript pdb viewer into quicklook, but was unsuccessful in getting it to work.

A simple cartoon preview generated by pymol or some other application should definitely work.

I'll hopefully find some time in the next week to start on it.

mmagnus commented 6 years ago

Thanks! and if you could comment on how to change a bit cartoon representation in thumbnails, that would be also great!

mmagnus commented 6 years ago

The plugin is awesome!

quicklook-pymol

mmagnus commented 6 years ago

OK, it seems that changing .pymolrc file is enough.

screen shot 2018-06-21 at 11 59 57 am