pixelrowdies / quicklook-pat

Quicklook plugin to view Adobe Photoshop pattern files in Apple's Finder application.
https://medium.com/pixelrowdies-adventures/viewing-photoshop-pattern-files-in-finder-using-quicklook-1bf81cdeb872
33 stars 0 forks source link

Installed plugin, but isn't working #2

Open kayserifserif opened 7 years ago

kayserifserif commented 7 years ago

I've tried installing via both brew cask install quicklook-pat and the .pkg installer, but the pattern doesn't show up in QuickLook.

Running on macOS Sierra 10.12.5.

ruction commented 7 years ago

Are you sure the plugin installed successfully? What happens if you open a .pat-File for example in "/Adobe Photoshop... /Presets/" with Quicklook?

kayserifserif commented 7 years ago
screen shot 2017-08-16 at 8 57 57 am screen shot 2017-08-16 at 8 55 33 am
theoriginalgri commented 7 years ago

It looks like you have some other plugin which picks up the file type first to display the textual contents. Normally macOS does not display the textual contents of a file if it's unknown.

Please check the Info.plist files of other plugins in /Library/QuickLook and ~/Library/QuickLook. Which might contain the following or similar:

<key>LSItemContentTypes</key>
            <array>
                <string>public.data</string>
                <string>public.item</string>
            </array>
schroef commented 6 years ago

I got this error using it on OSX 10.11.6 I did a qlmanage -d1 -p PATTERNFILE

Testing Quick Look preview with files:
    desktop/wg_fabric_patterns_sample.pat
[DEBUG] Preview test for desktop/wg_fabric_patterns_sample.pat -- file:///Users/romboutversluijs/. Content type UTI: dyn.ah62d4rv4ge81a2py
[DEBUG] file:///Applications/MAXON/CINEMA%204D%20R17/CINEMA%204D.app/Contents/Library/QuickLook/CINEMA%204D.qlgenerator/ might shadow a plug-in with the same identifier and version (<QLGenerator /Applications/Adobe After Effects CC 2015/Plug-ins/MAXON CINEWARE AE/(CINEWARE Support)/lite/CINEMA 4D Lite.app/Contents/Library/QuickLook/CINEMA 4D.qlgenerator>)
[DEBUG] Previewing file:///Users/romboutversluijs/Desktop/wg_fabric_patterns_sample.pat. Content type UTI: dyn.ah62d4rv4ge81a2py. Generator used: <QLGenerator /Library/QuickLook/QLStephen.qlgenerator>
[DEBUG] Loading <QLGenerator /Library/QuickLook/QLStephen.qlgenerator>
[DEBUG] Previewing file:///Users/romboutversluijs/Desktop/wg_fabric_patterns_sample.pat did not produce anything
[DEBUG] Thumbnailing desktop/wg_fabric_patterns_sample.pat -- file:///Users/romboutversluijs/ - type: dyn.ah62d4rv4ge81a2py - generator: <QLGenerator /Library/QuickLook/QLStephen.qlgenerator> (try #1)
[DEBUG] Thumbnailing file:///Users/romboutversluijs/Desktop/wg_fabric_patterns_sample.pat. Content type UTI: dyn.ah62d4rv4ge81a2py. Generator used: <QLGenerator /Library/QuickLook/QLStephen.qlgenerator>
[DEBUG] Thumbnailing file:///Users/romboutversluijs/Desktop/wg_fabric_patterns_sample.pat did not produce anything
2017-12-14 00:07:18.186 qlmanage[11197:400532] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa00b, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 00:07:18.231 qlmanage[11197:400532] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xc63f, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 00:07:18.234 qlmanage[11197:400532] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x490f, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 00:07:18.234 qlmanage[11197:400532] void __CFPasteboardSetup() : Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
MBP-Schroef:~ Admin$ 
theoriginalgri commented 6 years ago

It seems our plugin was asked by the system to create a preview.

Make sure it is installed in /Library/QuickLook/PatternQuickLook.qlgenerator.

Try to reload all plugins using qlmanage -r.

If it still does not work, try removing QLStephen temporarily since the log you posted seems to try this plugin instead.

schroef commented 6 years ago

How come they are conflicting. *.pat is different file type of what qlstephen uses right? Thats for showing document types containing strings / text

Jep thats it! Ive been looking a bit into this ql and would like to add sketchup to this using a thumbnail which is aside of the file. GOt to the point of making a file in Xcode but i think i need custom code to check file aside of the flle. Do you know some info about this?

theoriginalgri commented 6 years ago

The decision which plugin will be used for a file does not happen from the file extension.

QLStephen creates a preview for every file type and seems to be asked first by the system :(

schroef commented 6 years ago

i dropped it it, it doesnt add tht much. I didnt see any difference and it wasnt working on files it said it worked. Today i alsao was told that using ql plugins in this mather is supported nomore. Yet they still work???

most apps have the quicklook internally now