Jump to content
  • 0

Quick look sur le contenu d'un container


Bertrand d'Aubais
 Share

Question

Bonjour à toutes et à tous

J'ai besoin de voir rapidement le contenu d'un container (fichier xsl ou xlsx)

J'ai modifié un exemple d'AS .... mais qui, à mon grand dam ne fonctionne pas ): voir pire, plante FM en me lançant deux instances de Quick look

Si une "grosse tête" AS passe par la ;)

Définir variable [ $nomFichier;  Test::nomFichier ] Définir variable [ $path ;  Obtenir ( CheminTemporaire ) & $nomFichier ] Définir variable [ $script ;  Definir ( chemin = Extrait ( $path  ; Position ( $path ; "/" ; 1 ; 2 ); Longueur ( $path) ) ;"set p to POSIX path of " &  Citation(chemin) & "¶do shell script \"qlmanage -p \" & quoted form of p")Exporter contenu de rubrique [ Test::nomFichier ; “$path” ] Exécuter AppleScript [ $script ] 

Merci

Bertrand

Link to comment
Share on other sites

Recommended Posts

  • 0

Salut Bertrand,

Tu as beaucoup plus simple et plus universel que Exécuter AppleScript, c'est Emettre Evénement.

Link to comment
Share on other sites

  • 0

Bertrand - est-ce que ça fonctionne si tu fais simplement

qlmanage -p  /Users/Betrand/Desktop/MyFile.xlsx

dans Terminal?

Je reçois moi-même des erreurs avec des fichiers xlsx; les messages d'erreur parlent entre autre de sandboxing.

La même commande fonctionne pour des fichiers pdf ou jpg, dans la mesure ou le preview s'ouvre, mais je reçois quand-même des messages d'erreur dans le Terminal.

Je ne crois donc pas que le problème soit un problème d'AppleScript.

Si tu trouves une solution, ça m'intéresse...

Le plugin MBS inclut des fonctions pour faire du QuickLook; je n'ai pas encore testé s'ils fonctionnent pour du xlsx - ça sera évidemment mieux de faire cela sans plug-in. 

Link to comment
Share on other sites

  • 0

Bonjour

 

Non malheureusement ca "bug"

J'ai fait qq essais via le terminal sans succès

Le truc que j'ai du mal a comprendre c'est qu avec mon script il m'ouvre deux instances de ql ):

 

Last login: Wed Sep 14 15:34:01 on ttys000pc23:~ documalia$ qlmanage -p  /Users/Betrand/Desktop/test.xlsxTesting Quick Look preview with files:	/Users/Betrand/Desktop/test.xlsx[WARNING] Unable to determine UTI for file:///Users/Betrand/Desktop/test.xlsx: The file “test.xlsx” couldn’t be opened because there is no such file.[WARNING] Unable to determine UTI for file:///Users/Betrand/Desktop/test.xlsx: The file “test.xlsx” couldn’t be opened because there is no such file.[ERROR] Can't access file:///Users/Betrand/Desktop/test.xlsx: The file “test.xlsx” couldn’t be opened because there is no such file.[ERROR] Can't access file:///Users/Betrand/Desktop/test.xlsx: The file “test.xlsx” couldn’t be opened because there is no such file.[ERROR] LSCopyDefaultApplicationURLForURL for file:///Users/Betrand/Desktop/test.xlsx returned error The operation couldn’t be completed. (OSStatus error -10814.)2016-09-14 18:42:16.837 qlmanage[20194:2635579] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa73b, name = 'com.apple.tsm.portname'See /usr/include/servers/bootstrap_defs.h for the error codes.2016-09-14 18:42:16.839 qlmanage[20194:2635579] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xaf47, name = 'com.apple.CFPasteboardClient'See /usr/include/servers/bootstrap_defs.h for the error codes.2016-09-14 18:42:16.839 qlmanage[20194:2635579] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions2016-09-14 18:42:16.843 qlmanage[20194:2635579] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x3d53, name = 'com.apple.coredrag'See /usr/include/servers/bootstrap_defs.h for the error codes.

 

Link to comment
Share on other sites

  • 0

Est-ce que ton nom d'utilisateur est vraiment "Betrand" avec un seul "r"? Il vaut mieux glisser-déposer le fichier vers le Terminal pour obtenir le bon chemin.

Link to comment
Share on other sites

  • 0

pffft, j'ai oublié de changer de user ;)

mais bon.... toujours en erreur

pc23:~ documalia$ qlmanage -p /Users/documalia/Desktop/test.xlsx Testing Quick Look preview with files:	/Users/documalia/Desktop/test.xlsx2016-09-14 19:38:36.774 qlmanage[20482:2651409] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9403, name = 'com.apple.CFPasteboardClient'See /usr/include/servers/bootstrap_defs.h for the error codes.2016-09-14 19:38:36.774 qlmanage[20482:2651409] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictionsSep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const: conn 0x3aa77 token 0x1ffffffffffe85Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: Backtrace (at 409528):Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  0   CoreGraphics                        0x00007fff8fa08486 CGSBacktraceCreate + 112Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  1   CoreGraphics                        0x00007fff8fa5abdc _ZN16CGSUpdateManager14disable_updateEv + 86Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  2   AppKit                              0x00007fff87ba6d15 -[NSWindow disableScreenUpdatesUntilFlush] + 127Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  3   AppKit                              0x00007fff87dc7671 -[NSVisualEffectView _createOrUpdateBackdrop:view:vibrancyEffect:] + 823Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  4   AppKit                              0x00007fff87dc72ee -[NSVisualEffectView _updateCGSWindowBackdrop] + 70Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  5   AppKit                              0x00007fff87bc4326 -[NSVisualEffectView _update] + 147Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  6   AppKit                              0x00007fff87bc4081 -[NSVisualEffectView layout] + 59Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  7   AppKit                              0x00007fff87d350b4 -[NSView _layoutSubtreeWithOldSize:] + 373Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  8   AppKit                              0x00007fff87d35305 -[NSView _layoutSubtreeWithOldSize:] + 966Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  9   AppKit                              0x00007fff87d34d60 -[NSView layoutSubtreeIfNeeded] + 885Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  10  AppKit                              0x00007fff87d348ba _NSViewLayoutSubtreesThatUseAutolayoutIfNeeded + 71Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  11  AppKit                              0x00007fff87d34841 -[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 84Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  12  AppKit                              0x00007fff87d53d3d -[NSWindow(NSConstraintBasedLayout) layoutIfNeeded] + 246Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  13  AppKit                              0x00007fff87bf852e _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 612Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  14  AppKit                              0x00007fff8832e171 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1540 + 46Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  15  CoreFoundation                      0x00007fff8f137127 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  16  CoreFoundation                      0x00007fff8f137080 __CFRunLoopDoObservers + 368Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  17  CoreFoundation                      0x00007fff8f129188 __CFRunLoopRun + 872Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  18  CoreFoundation                      0x00007fff8f128bd8 CFRunLoopRunSpecific + 296Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  19  QuickLookUI                         0x00007fff828e2b20 -[QLPreviewView _startTimeOut] + 189Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  20  QuickLookUI                         0x00007fff828e298f -[QLPreviewView _startLoadingDocumentWithTimeoutDate:] + 674Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  21  QuickLookUI                         0x00007fff828c517e -[QLPreviewPanelController _setCurrentPreviewItem:withTransition:blocking:] + 289Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  22  QuickLookUI                         0x00007fff828c48b3 -[QLPreviewPanelController _refreshLayoutAndContentBlocking:] + 250Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  23  QuickLookUI                         0x00007fff828c5f59 -[QLPreviewPanelController willOpen] + 734Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  24  QuickLookUI                         0x00007fff828bc93c -[QLPreviewPanel _openWithEffect:willOpen:toFullscreen:] + 897Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  25  qlmanage                            0x00000001055e7ea6 qlmanage + 155302Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  26  qlmanage                            0x00000001055c748f qlmanage + 21647Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  27  libdyld.dylib                       0x00007fff86b605c9 start + 1Sep 14 19:38:51 pc23.home qlmanage[20482] <Warning>: void CGSUpdateManager::log() const:  28  ???    

 

Link to comment
Share on other sites

  • 0

Hello Bertrand,

... suis tjrs sous 10.6.8, donc à des années lumières des conneries de sandboxing; mais pour mon hygiène mentale ...

Quelle liste te renvoie 'qlmanage -m' dans un Terminal ?

Link to comment
Share on other sites

  • 0

Bonjour Clément ;)

Assez indigeste

 

Last login: Tue Sep 20 09:29:10 on consolepc23:~ documalia$ qlmanage -mserver: living for 0s (0 requests handled) - instant off: yes - arch: X86_64 - user id: 502memory used: 1 MB (1355280 bytes) - used descriptors: 21/256plugins:  org.openxmlformats.presentationml.slideshow -> /System/Library/QuickLook/Office.qlgenerator (32)  com.adobe.pdf -> /System/Library/QuickLook/PDF.qlgenerator (675.43)  com.apple.localized-pdf-bundle -> /System/Library/QuickLook/LocPDF.qlgenerator (675.43)  public.3d-content -> /System/Library/QuickLook/SceneKit.qlgenerator (260.13)  com.apple.iwork.keynote.key -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.ical.bookmark -> /System/Library/QuickLook/iCal.qlgenerator (675.43)  com.apple.application -> /System/Library/QuickLook/StandardBundles.qlgenerator (675.43)  com.microsoft.word.doc -> /System/Library/QuickLook/Office.qlgenerator (32)  com.microsoft.powerpoint.pot -> /System/Library/QuickLook/Office.qlgenerator (32)  org.openxmlformats.wordprocessingml.template.macroenabled -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.iwork.keynote.sffkey -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.ichat.ichat -> /System/Library/QuickLook/iChat.qlgenerator (4760)  com.apple.notes.externalrecord -> /System/Library/QuickLook/Notes.qlgenerator (353)  com.microsoft.word.dot -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.iwork.keynote.sffkth -> /Library/QuickLook/iWork.qlgenerator (114)  org.openxmlformats.presentationml.template.macroenabled -> /System/Library/QuickLook/Office.qlgenerator (32)  com.bittorrent.torrent -> /Applications/Transmission.app/Contents/Library/QuickLook/QuickLookPlugin.qlgenerator (1.0)  com.apple.keynote.key -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.mail.email -> /System/Library/QuickLook/Mail.qlgenerator (2104)  org.7-zip.7-zip-archive -> /Applications/WinZip.app/Contents/Library/QuickLook/WinZip QL.qlgenerator (2.0.2519)  com.apple.iwork.pages.sfftemplate -> /Library/QuickLook/iWork.qlgenerator (114)  public.archive.lha -> /Applications/WinZip.app/Contents/Library/QuickLook/WinZip QL.qlgenerator (2.0.2519)  public.movie -> /System/Library/QuickLook/Movie.qlgenerator (675.43)  com.apple.iwork.keynote.kth -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.iwork.numbers.sffnumbers -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.package -> /System/Library/QuickLook/Package.qlgenerator (675.43)  com.ambientdesign.artrage.painting -> /Applications/ArtRage 4.app/Contents/Library/QuickLook/AR3Thumb.qlgenerator (1.0)  org.openxmlformats.wordprocessingml.document.macroenabled -> /System/Library/QuickLook/Office.qlgenerator (32)  com.ambientdesign.artrage.paintingbackup -> /Applications/ArtRage 4.app/Contents/Library/QuickLook/AR3Thumb.qlgenerator (1.0)  com.rarlab.rar-archive -> /Applications/WinZip.app/Contents/Library/QuickLook/WinZip QL.qlgenerator (2.0.2519)  org.oasis-open.opendocument.text -> /System/Library/QuickLook/Text.qlgenerator (675.43)  com.apple.iwork.pages.sffpages -> /Library/QuickLook/iWork.qlgenerator (114)  org.openxmlformats.wordprocessingml.template -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.ical.ics.event -> /System/Library/QuickLook/iCal.qlgenerator (675.43)  com.apple.ical.ics -> /System/Library/QuickLook/iCal.qlgenerator (675.43)  com.microsoft.excel.xlt -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.iwork.numbers.sfftemplate -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.iwork.keynote.key-tef -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.internet-location -> /System/Library/QuickLook/Clippings.qlgenerator (675.43)  com.rsa.pkcs-12 -> /System/Library/QuickLook/Security.qlgenerator (55058)  org.openxmlformats.presentationml.slideshow.macroenabled -> /System/Library/QuickLook/Office.qlgenerator (32)  com.microsoft.word.stationery -> /System/Library/QuickLook/Office.qlgenerator (32)  public.x509-printable-encoded-archive -> /System/Library/QuickLook/Security.qlgenerator (55058)  public.zip-archive -> /Applications/WinZip.app/Contents/Library/QuickLook/WinZip QL.qlgenerator (2.0.2519)  public.xml -> /System/Library/QuickLook/Text.qlgenerator (675.43)  org.openxmlformats.wordprocessingml.document -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.rtfd -> /System/Library/QuickLook/Text.qlgenerator (675.43)  com.winzip.zipx-archive -> /Applications/WinZip.app/Contents/Library/QuickLook/WinZip QL.qlgenerator (2.0.2519)  com.apple.systempreference.prefpane -> /System/Library/QuickLook/StandardBundles.qlgenerator (675.43)  org.openxmlformats.spreadsheetml.template -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.keychain -> /System/Library/QuickLook/Security.qlgenerator (55058)  public.font -> /System/Library/QuickLook/Font.qlgenerator (675.43)  public.x509-certificate -> /System/Library/QuickLook/Security.qlgenerator (55058)  com.apple.iwork.pages.template -> /Library/QuickLook/iWork.qlgenerator (114)  com.adobe.illustrator.ai-image -> /System/Library/QuickLook/EPS.qlgenerator (675.43)  public.vcard -> /System/Library/QuickLook/Contact.qlgenerator (675.43)  com.apple.finder.textclipping -> /System/Library/QuickLook/Clippings.qlgenerator (675.43)  org.openxmlformats.presentationml.template -> /System/Library/QuickLook/Office.qlgenerator (32)  org.openxmlformats.spreadsheetml.template.macroenabled -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.iwork.numbers.numbers -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.iwork.pages.pages -> /Library/QuickLook/iWork.qlgenerator (114)  com.pkware.zip-archive -> /Applications/WinZip.app/Contents/Library/QuickLook/WinZip QL.qlgenerator (2.0.2519)  com.apple.ichat.transcript -> /System/Library/QuickLook/iChat.qlgenerator (4760)  com.apple.mail.emlx -> /System/Library/QuickLook/Mail.qlgenerator (2104)  com.apple.iconset -> /System/Library/QuickLook/Icon.qlgenerator (675.43)  com.apple.addressbook.group -> /System/Library/QuickLook/Contact.qlgenerator (675.43)  com.apple.property-list -> /System/Library/QuickLook/Text.qlgenerator (675.43)  com.apple.addressbook.person -> /System/Library/QuickLook/Contact.qlgenerator (675.43)  com.apple.safari.history -> /System/Library/QuickLook/Bookmark.qlgenerator (675.43)  public.html -> /System/Library/QuickLook/Web.qlgenerator (675.43)  com.apple.iwork.numbers.template -> /Library/QuickLook/iWork.qlgenerator (114)  com.microsoft.powerpoint.pps -> /System/Library/QuickLook/Office.qlgenerator (32)  public.plain-text -> /System/Library/QuickLook/Text.qlgenerator (675.43)  com.apple.safari.bookmark -> /System/Library/QuickLook/Bookmark.qlgenerator (675.43)  public.audio -> /System/Library/QuickLook/Audio.qlgenerator (675.43)  com.winzip.zip-archive -> /Applications/WinZip.app/Contents/Library/QuickLook/WinZip QL.qlgenerator (2.0.2519)  com.apple.pict -> /System/Library/QuickLook/Clippings.qlgenerator (675.43)  public.xhtml -> /System/Library/QuickLook/Web.qlgenerator (675.43)  org.openxmlformats.presentationml.presentation.macroenabled -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.finder.pictclipping -> /System/Library/QuickLook/Clippings.qlgenerator (675.43)  com.apple.ical.bookmark.todo -> /System/Library/QuickLook/iCal.qlgenerator (675.43)  com.apple.iwork.numbers.numbers-tef -> /Library/QuickLook/iWork.qlgenerator (114)  com.apple.webarchive -> /System/Library/QuickLook/Web.qlgenerator (675.43)  org.openxmlformats.presentationml.presentation -> /System/Library/QuickLook/Office.qlgenerator (32)  public.svg-image -> /System/Library/QuickLook/Web.qlgenerator (675.43)  public.image -> /System/Library/QuickLook/Image.qlgenerator (675.43)  com.winzip.lha-archive -> /Applications/WinZip.app/Contents/Library/QuickLook/WinZip QL.qlgenerator (2.0.2519)  org.openxmlformats.spreadsheetml.sheet -> /System/Library/QuickLook/Office.qlgenerator (32)  com.microsoft.excel.xls -> /System/Library/QuickLook/Office.qlgenerator (32)  org.openxmlformats.spreadsheetml.sheet.macroenabled -> /System/Library/QuickLook/Office.qlgenerator (32)  public.rtf -> /System/Library/QuickLook/Text.qlgenerator (675.43)  org.bittorrent.torrent -> /Applications/Transmission.app/Contents/Library/QuickLook/QuickLookPlugin.qlgenerator (1.0)  com.apple.iwork.pages.pages-tef -> /Library/QuickLook/iWork.qlgenerator (114)  com.microsoft.powerpoint.ppt -> /System/Library/QuickLook/Office.qlgenerator (32)  public.comma-separated-values-text -> /System/Library/QuickLook/Office.qlgenerator (32)  com.apple.ical.ics.todo -> /System/Library/QuickLook/iCal.qlgenerator (675.43)  com.adobe.encapsulated-postscript -> /System/Library/QuickLook/EPS.qlgenerator (675.43)pc23:~ documalia$ 

 

Link to comment
Share on other sites

  • 0

As-tu essayé en "forçant" soit  avec l'option -c (contentTypeUTI) ou avec -g (generator), soit en combinant les deux options ??

qlmanage -p -c 'org.openxmlformats.spreadsheetml.sheet' '/Users/Betrand/Desktop/test.xlsx'

 

Link to comment
Share on other sites

  • 0

Non vu mes "compétences" dans ce domaine je n'ai pas testé
et voila le résultat

avec : qlmanage -p -c 'org.openxmlformats.spreadsheetml.sheet' '/Users/Documalia/Desktop/test.xlsx'

pc23:~ documalia$ qlmanage -p -c 'org.openxmlformats.spreadsheetml.sheet' '/Users/Documalia/Desktop/test.xlsx'Testing Quick Look preview with files:    /Users/Documalia/Desktop/test.xlsx    - force using content type UTI: org.openxmlformats.spreadsheetml.sheet2016-09-21 11:40:58.287 qlmanage[5891:415179] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9403, name = 'com.apple.CFPasteboardClient'See /usr/include/servers/bootstrap_defs.h for the error codes.2016-09-21 11:40:58.287 qlmanage[5891:415179] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions

et avec qlmanage -p -c 'org.openxmlformats.spreadsheetml.sheet' '/Users/Documalia/Desktop/test.xlsx '

La il ouvre une fenêtre nommé "Debug" avec une icône de feuille blanche nommé test.xlsx qui ne ressemble à rien

avec ce qui suit comme code dans le terminal ;)

pc23:~ documalia$ qlmanage -p -c 'org.openxmlformats.spreadsheetml.sheet' '/Users/Documalia/Desktop/test.xlsx 'Testing Quick Look preview with files:	/Users/Documalia/Desktop/test.xlsx 	- force using content type UTI: org.openxmlformats.spreadsheetml.sheet[WARNING] Unable to determine UTI for file:///Users/Documalia/Desktop/test.xlsx%20: The file “test.xlsx ” couldn’t be opened because there is no such file.[ERROR] LSCopyDefaultApplicationURLForURL for file:///Users/Documalia/Desktop/test.xlsx%20 returned error The operation couldn’t be completed. (OSStatus error -10814.)2016-09-21 11:43:57.172 qlmanage[5904:416637] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9c3f, name = 'com.apple.tsm.portname'See /usr/include/servers/bootstrap_defs.h for the error codes.2016-09-21 11:43:57.174 qlmanage[5904:416637] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x441b, name = 'com.apple.CFPasteboardClient'See /usr/include/servers/bootstrap_defs.h for the error codes.2016-09-21 11:43:57.174 qlmanage[5904:416637] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions2016-09-21 11:43:57.178 qlmanage[5904:416637] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x444b, name = 'com.apple.coredrag'See /usr/include/servers/bootstrap_defs.h for the error codes.

 

Capture d’écran 2016-09-21 à 11.45.21.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

57e25720c507e_Capturedecran2016-09-21a11_45_21.png.a2a402d8caf3f5f96b799746841c333d.png

Link to comment
Share on other sites

  • 0
Citation

Unable to determine UTI for file:///Users/Documalia/Desktop/test.xlsx%20: The file “test.xlsx ” couldn’t be opened because there is no such file.

 

... un(e) espace après l'extension ?!!! pas normal docteur !

Normal donc que l'UTI peine

Link to comment
Share on other sites

  • 0

Clem - est-ce que tu as une idée concernant le sandboxing? Je crois que c'est cela le vrai problème:

 

qlmanage -p -c 'org.openxmlformats.spreadsheetml.sheet' '/Users/davidwikstrom/Desktop/ddsfsd.xlsx'Testing Quick Look preview with files:	/Users/davidwikstrom/Desktop/ddsfsd.xlsx	- force using content type UTI: org.openxmlformats.spreadsheetml.sheet2016-09-21 12:10:54.530 qlmanage[1070:516864] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8c03, name = 'com.apple.CFPasteboardClient'See /usr/include/servers/bootstrap_defs.h for the error codes.2016-09-21 12:10:54.530 qlmanage[1070:516864] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions

 

Link to comment
Share on other sites

  • 0

Hello David,

difficile de répondre clairement n'ayant pas l'OS idoine; mais de ce que je lis de ton message et avant de tomber sur le fatidique 'SandBox restrictions',

que donne la commande avec l'UTI suivante ?: qlmanage -p -c 'org.openxmlformats.presentationml.slideshow' '/Users/davidwikstrom/Desktop/ddsfsd.xlsx'

Un reload du serveur QLook apporte-t-il une difference ? qlmanage - r suivit d'un rafraîchissement de son cache  qlmanage - r cache . Suite à ces commandes il faudra très certainement supprimer certaines plist mais mon OS ne me permet hélas pas de te guider jusqu'à eux.

 

Link to comment
Share on other sites

  • 0
il y a une heure, Clem a dit :

 

... un(e) espace après l'extension ?!!! pas normal docteur !

Normal donc que l'UTI peine

D'ou la deuxième partie du message chef ! ;)

 

Link to comment
Share on other sites

  • 0

Salut tous :)

Voici, en pièce jointe, ce qui marche bien chez-moi (OsX Mavericks), en dépit d'un blocage de FileMaker pendant que le QuickLook (QL) est affiché à l'écran, tout rentre dans l'ordre dès qu'on ferme la fenêtre de QL... hélas, rien trouvé de mieux pour éviter ce blocage... on ne sait jamais, si ça peut faire avancer le schimilmiliblic ;) 

...

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

QuickLook.fmp12.zip

Link to comment
Share on other sites

  • 0
il y a 3 minutes, Bertrand d'Aubais a dit :

J'ai testé ce fichier et BOUM ;)

Ah... merdum ... désolé Bertrand :(

Bon, je n'ai pas de "El Capitain" sous la main, mais j'ai une machine sous "Yosemite", je vais tester ce soir, peut-être qu'un piste pourra apparaître, je te tiens au courant :)

...

Link to comment
Share on other sites

  • 0

Bonsoir Fredo

Je suis sur Yosemite également (oui je sais je suis un moins 2 ;)

mais justement yosemite = Boum  ;)

mais pas besoin d'etre désolé au contraire, merci de ton aide ;) plus on est de fou ......

 

 

Link to comment
Share on other sites

  • 0

David,

que donne la commande (avec et sans l'option -c) en redirigeant STOUT et STERR vers le "trou noir" ?

  • qlmanage -p  '/Users/davidwikstrom/Desktop/ddsfsd.xlsx' >& /dev/null
  • qlmanage -p -c 'org.openxmlformats.spreadsheetml.sheet' '/Users/davidwikstrom/Desktop/ddsfsd.xlsx' >& /dev/null
Link to comment
Share on other sites

  • 0

Pour les deux, l'icône qlmanage devient visible dans le Dock, mais à part cela, les commandes ont l'air de tourner dans le vide - Terminal ne revient même pas à la ligne. Au moins pas encore - je m'imagine qu'il y aura un timeout à un moment ou un autre.

L'ordinateur utilisé pour le test est d'ailleurs aussi sur Yosemite (10.10.5).

Link to comment
Share on other sites

  • 0
il y a 35 minutes, dwikstroem a dit :

...les commandes ont l'air de tourner dans le vide - Terminal ne revient même pas à la ligne. Au moins pas encore - je m'imagine qu'il y aura un timeout à un moment ou un autre....

je pense plutôt à bash qui n'est pas un shell interactif !

A moins, à moins, à moins qu'il ne faille appuyer sur la barre d'Espace ?!

Et la même commande placée dans un Applescript ??

Autre point concernant le sandboxing cette fois...Il existe certainement un dossier dans '/Users/davidwikstrom/Library/Containers/...là qque chose dédié à Excel...' où Excel peut partager et exécuter des fichiers sans autorisations (entre applications Office et tierces) ... que donne la commande en déplaçant le fichier du Desktop vers un de ces dossiers ??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...