Jump to content

Malauch

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Malauch

  1. Below is a message from debugger 

    Starting debug for 'copy file'
    
    [2016-08-05 13:44:08][ERROR: action.script] Traceback (most recent call last):
      File "/Users/michaljurewicz/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/1407962B-1D86-40A0-8BA8-3B9FA8C784D1", line 22, in <module>
        from AppKit import NSPasteboard
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/AppKit/__init__.py", line 8, in <module>
        import objc
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/__init__.py", line 39, in <module>
        from objc._properties import *
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_properties.py", line 7, in <module>
        from copy import copy as copy_func
      File "/Users/michaljurewicz/Dropbox (Osobiste)/Aplikacje/Alfred/Alfred.alfredpreferences/workflows/user.workflow.65F705C6-835B-4654-8FDA-2B714275B266/copy.py", line 22, in <module>
        from AppKit import NSPasteboard
    ImportError: cannot import name NSPasteboard

    However, when I tried use this with file selected in Finder it work but still generate similar error:

    [2016-08-05 13:46:25][ERROR: action.script] Traceback (most recent call last):
      File "/Users/michaljurewicz/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/1407962B-1D86-40A0-8BA8-3B9FA8C784D1", line 22, in <module>
        from AppKit import NSPasteboard
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/AppKit/__init__.py", line 8, in <module>
        import objc
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/__init__.py", line 39, in <module>
        from objc._properties import *
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_properties.py", line 7, in <module>
        from copy import copy as copy_func
      File "/Users/michaljurewicz/Dropbox (Osobiste)/Aplikacje/Alfred/Alfred.alfredpreferences/workflows/user.workflow.65F705C6-835B-4654-8FDA-2B714275B266/copy.py", line 22, in <module>
        from AppKit import NSPasteboard
    ImportError: cannot import name NSPasteboard
  2. Hi,

    I would like to achieve the same goal. I tried script listed above but it doesn't work. In more detail it work when I select some file in Finder, then open Alfred's file actions via hotkey and use this action. However, it doesn't work when I search this file from Alfred and then use the file action. Do you have any ideas how to fix this?

    I use Alfred 3 with most updated El Capitan.  

×
×
  • Create New...