Jump to content

Creating custom workflow doens't work


Recommended Posts

You should be seeing an error message in Alfred's debugger. It's probably a syntax error, as your code isn't indented correctly:

import sys
from workflow import Workflow, ICON_WEB, web 

def main(wf):
    wf.add_item(
        title="title"
        subtitle="subtitle",
        icon=ICON_WEB
    )
    wf.send_feedback()

if __name__ == u"__main__":
    wf = Workflow()
    sys.exit(wf.run(main))

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...