Jump to content

holyjaw

Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by holyjaw

  1. Thanks for that tip. I honestly don't know what exactly fixed the issue (yay for the shotgun approach), but I changed "return" to "print" in my Script Filter, changed it from "No Argument" to "With Space / Argument Optional" back to "No Argument" and realized that Info.plist was missing. So, between taking care of all of these, something clicked. So, thanks  :D

  2. Hm, the issue persists (https://www.dropbox.com/s/e9na1awfm4pxvjv/Screenshot%202013-12-30%2021.47.51.png), but I think I see where part of the problem may lie.

     

    alp.feedback prints the XML instead of returning the XML, so my code:

    def get_schedule:
        ...
        feedback = alp.feedback(feedback_items)
        return feedback
    
    if __name__=="__main__":
        print get_schedule
    

    Was actually printing the XML generated by alp.feedback to console by the alp.feedback method. feedback = alp.feedback(feedback_items) was in turn a null object, and so print get_schedule was returning 'None'. This had been vexing me for most of the day and I thought I had found a workaround; apparently not.

     

    I had to modify alp.feedback to 'return' instead of 'print', and now I'm able to get what you see in the screenshot.

  3. Hi there,

     

    I have a workflow triggered by a keyword. The workflow is simply:

    import getSchedule as gs
    
    print(gs.get_schedule())
    

    When I type the keyword in to Alfred, the workflow shows up, but as soon as it is the top result, or I select it otherwise and the workflow is activated, it immediately is removed from the list of results. 

     

    I have thoroughly debugged the script; when run in a terminal the script outputs the proper XML from `alp`.

     

    I'm not certain where to go from here, any ideas?

×
×
  • Create New...