Jump to content
Jakub Sypiański

How I convert a folder with a workflow into .alfredworkflow?

Recommended Posts

An .alfredworkflow file is just a zip file with a different extension.

 

To turn it into an .alfredworkflow file, do:

 

  1. Download the zipped repo

  2. Extract it

  3. Go into the directory created

  4. Select all the files

  5. Right-click and choose "Compress N Items"

  6. Rename the created Archive.zip file to Archive.alfredworkflow

  7. Double-click it to install

 

Alternatively, after step 2, you can drag the created folder into your workflow folder.

Share this post


Link to post

Thank you! I tried renaming the zipped repo to _.alfredworkflow_, but I haven't figured out that I need to extract and rezip it first. What a pity the workflow itself turns out not to work...

Share this post


Link to post

What does Alfred’s debugger say?

 

I glanced at the source code, and you probably need to install requests.

Share this post


Link to post

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

 

 

Share this post


Link to post

I was right, then…

 

Enter the following command in Terminal/iTerm: /usr/bin/python -m pip install --user requests


(Hopefully you do have pip installed.)

Share this post


Link to post

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'"}]}

 

 

Share this post


Link to post
1 hour ago, Jakub Sypiański said:

Errors about pip and requests.

 

Those aren't errors, they're warnings. They don't matter.

 

1 hour ago, Jakub Sypiański said:

2. Workflow's debugger

 

It looks like you don't have Zotero or the Bibtex plugin running (or whatever it is the workflow is supposed to connect to).

 

But I don't really know. I've never used the workflow and I've never used Bibtex. You should really ask the author on GitHub.

 

 

Share this post


Link to post

Join the conversation

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

Guest
Reply to this topic...

×   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.

×
×
  • Create New...