Jump to content

wfgydbu

New Member
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

wfgydbu's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Thanks for the detailed explanation! I always thought Run Script and Script Filter were the same, just missing the keyword part. Problem solved.
  2. Hi, I am an experienced Python-er, but new to Alfred Workflow development. I am wondering, is it possible to achieve things like this: Suppose I have a series of chained objects: Script Filter -> Run Script -> Run Script ...: From what I understand, (1) By using Python, I need to create a formatted json data (described here), send it to stdin, Alfred will render it and displays the results on the screen; (2) Alfred can pass arguments from one object to anther, by using the `arg` arguemnt contained in each result's json object. The value of `arg` will be treated as the input of the next chained object. What I expect to achieve is: Accept a keyword to trigger the first Script Filter, it triggers a Python script and generates a list of results as feedbacks, Alfred displays these results on the screen, line by line. User selects one of the result, Alfred then passes its corresponded arg property to the next chained Run Script (the value of arg will be its input). Run an another Python script in the Run Script and it generates a new list of results as new feedbacks. Alfred wil display the new results on the screen, but I failed. What I expected here is Alfred will clear the old feedbacks generated in Script Filter and display new feedbacks generated in the Run Script. Then user can select one of the new results and pass it to the next next chained Run Script. Endless. But when I try to program it, Alfred failed to clear the old ones, the Alfred window just disappered. Is it normal? Many many thanks!
×
×
  • Create New...