Jump to content

Jakub Sypiański

Member
  • Content Count

    42
  • Joined

  • Last visited

Posts posted by Jakub Sypiański


  1. To search something in Alfred, either through "Web search" or using workflows we write `{prefix} {my query}`, for example `map Warsaw`.  In most cases however it would be preferable to write `{my query} {suffix}`.

     

    The advantage is that it is much easier to change the decision about the suffix than about the prefix. So if I search `map Byzantium` and Google Maps can't find it, I can change my decision, invoke Alfred again, press ↑ and change the suffix of search engine just with few keystrokes. At the moment I have to press ↑, go to the beginning of the line and then change the suffix. I can't see any disadvantages. We always know what we are looking for (query), but sometimes we are not sure what we what to look it with. Does the contrary ever happen? 

     

    The added value of this solution is that in some workflows with dynamic searches we wouldn't have to add "." at the end of the query to perform the query (which is required now to prevent premature launching of a dynamic search).


  2. Thank you. I know nothing about python (or programming) and I use terminal very occasionally, but I think I managed to install both pip and requests. However, I have got some errors and the following message in the debugger when I tried to run the workflow.

     

    1. Errors about pip and requests.

     

    Quote

    WARNING: The script wheel is installed in '/Users/jakub/Library/Python/2.7/bin' which is not on PATH.

    Quote

    WARNING: The script chardetect is installed in '/Users/jakub/Library/Python/2.7/bin' which is not on PATH.

     

    2. Workflow's debugger

    Quote

     

    Starting debug for 'Zotero'

    [2019-05-13 21:00:23][ERROR: input.scriptfilter] Code 1: .
    21:00:23 workflow.py:2057 DEBUG    ---------- Zotero ----------
    21:00:23 connectionpool.py:205 DEBUG    Starting new HTTP connection (1): localhost:23119
    21:00:23 workflow.py:2074 ERROR    'NoneType' object is not iterable
    Traceback (most recent call last):
      File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/workflow/workflow.py", line 2067, in run
        func(self)
      File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/search.py", line 32, in main
        for i in r:
    TypeError: 'NoneType' object is not iterable
    21:00:23 workflow.py:2097 DEBUG    ---------- finished in 0.024s ----------
    [2019-05-13 21:00:23][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
    HTTP Request failed
    {"items": [{"valid": false, "subtitle": "'NoneType' object is not iterable", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'Zotero'"}]}

     

     


  3. Am I the only one for whom it doesn't work? Ulysses 15.2, Alfred 3.8.1, workflow 1.0.4.

     

     

    Zrzut ekranu 2019-05-13 o 17.43.53.png

     

     

    Edit:

     

    1. What I wanted to achieve: to use any of the commands.

    2. What happened instead: the error message above pasted, similar to those mentioned in posts from last year.

    3. What does debugger show:

     

    Quote

    Starting debug for 'Ulysses'

    [2019-05-13 20:43:15][ERROR: input.scriptfilter] Code 1: 20:43:15 workflow.py:2225 DEBUG    Workflow version : 1.0.4
    20:43:15 workflow.py:1628 DEBUG    Reading settings from `/Users/jakub/Library/Application Support/Alfred 3/Workflow Data/com.github.robwalton.alfred-ulysses-workflow/settings.json` ...
    20:43:15 workflow.py:2509 INFO     Checking for update ...
    20:43:15 background.py:178 DEBUG    Command arguments cached to `/Users/jakub/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.github.robwalton.alfred-ulysses-workflow/__workflow_update_check.argcache`
    20:43:15 background.py:182 DEBUG    Calling [u'/usr/bin/python', '/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/workflow/background.pyc', u'__workflow_update_check'] ...
    20:43:15 workflow.py:2225 DEBUG    Workflow version : 1.0.4
    20:43:15 background.py:187 DEBUG    Executing task `__workflow_update_check` in background...
    20:43:15 ulysses_items.py:59 INFO     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    20:43:15 ulysses_items.py:60 INFO     ulysses_items.main(wf): args = 
    Namespace(kind='group', limit_scope_dir=None, query=u'', search_content=False, search_ulysses_path=True)
    20:43:15 ulysses_items.py:61 INFO     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    20:43:15 workflow.py:2444 DEBUG    update_data : None
    20:43:15 ulysses_items.py:86 INFO     Added iCloud items from '/Users/jakub/Library/Mobile Documents/X5AZV975AG~com~soulmen~ulysses3/Documents/Library/Groups-ulgroup'
    20:43:15 workflow.py:2243 ERROR    
    Traceback (most recent call last):
      File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/workflow/workflow.py", line 2236, in run
        func(self)
      File "ulysses_items.py", line 89, in main
        include_sheets)
      File "ulysses_items.py", line 149, in parse_ulysses_for_groups_and_sheets
        groups_tree = parse_ulysses.create_tree(root_dir, None)
      File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/parse_ulysses.py", line 140, in create_tree
        child_group = create_tree(join(rootgroupdir, child_groupdir), group)
      File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/parse_ulysses.py", line 140, in create_tree
        child_group = create_tree(join(rootgroupdir, child_groupdir), group)
      File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/parse_ulysses.py", line 140, in create_tree
        child_group = create_tree(join(rootgroupdir, child_groupdir), group)
      File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/parse_ulysses.py", line 126, in create_tree
        assert 'Info.ulgroup' in filelist
    AssertionError
    20:43:15 workflow.py:2246 INFO     For assistance, see: https://github.com/robwalton/alfred-ulysses-workflow
    20:43:15 workflow.py:2267 DEBUG    Workflow finished in 0.710 seconds.

     


  4. I looked on the Internet and on the forum for "install requests (alfred workflow)", but I haven't figured out what it is that I should do. As for the debugger:

     

    Quote

     

    [2019-05-13 16:50:06][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last):

      File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/search.py", line 5, in <module>

        import requests

    ImportError: No module named requests

     

     


  5. 15 hours ago, deanishe said:

    Please post such comments somewhere more appropriate.

    Thank you for pointing it to me, I'm new. But I have no idea where to put it otherwise. There is no general Zotero-related thread. Should I create a new separate thread for this zotero-better-bibtex-alfred workflow?

×
×
  • Create New...