Jump to content

fibbsanton

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by fibbsanton

  1. I have created a workflow that uses the HTTP API of op5 Monitor, a commercial network and device Monitoring system based on the open source project Nagios. op5 Monitor is free to use up to 20 monitored devices.

     

    op5-workflow-001.png

     

    The workflow queries op5 Monitor for the state of objects and offers a large variety of additional features, such as searching, filtering for PROBLEM states, navigating through objects with the <tab> key and even object-specific actions like ACKNOWLEDGE and RESCHEDULE checks.

     
    alfredApp-001.png
     
    alfredApp-002.png
     
     
    Check it out on its github page: https://github.com/fibbs/alfred-op5-monitor-workflow
     
    I have also created a short screencast: http://www.youtube.com/watch?v=kSz8zp-fXWM
     
     
  2. Stupid me! I didn't know about the "Tab" autocompleting. Now that I have been told, it's obvious and totally clear to me :)

     

    So, that helped me a lot. I will use the Tab key for navigating and drilling down. As an "action" I would like to jump into another workflow that offers me (depending on the type of element I have chosen) different options, such as "jump to it's web site", "delete this entry", and so on. To achieve this, I have to create a second "script filter" and make the move from one action to this script filter. The only way I have seen up to now to achieve this is the above mentioned AppleScript method, which unfortunately seems to not work using the {query} macro. Is there a way handing over data to another script filter using appleScript without having to save stuff into a temporary file?

     

     

    Thanks and cheers

     

     

    Christian

  3. Hi folks,


     


    I am working on a Alfred workflow that will have elements in different levels to browse through. I would like to call a workflow and show (and filter) the first level elements, then, when choosing one of these elements I want to list (and filter) the sub-elements below this specific top-level element, and so on. At every of the elements I would like to have a secondary option which allows me to do other things with this element instead of jumping into the sub-elements (cmd-click).


     


    I now have several questions on which could be the best practices for that to achieve:


     


    I have found it very practical to pass the selected element as a „autocomplete“ argument and set the „validity“ to „no“, so when selecting an element, I can pass this one to the very same workflow and display its sub-elements. Very nice, because the Alfred dialog doesn’t disappear from the screen, it just refreshes nicely etc. Unfortunately, when using this variant I have no possibility to go further in the workflow, for example using the cmd-click to do „other things“ with this object. Is there a way to combine these two?


     


    Another way of calling one workflow from within itself is an AppleScript:


     



    tell application „Alfred 2“


      search „mykeyword „


    end tell



     


    Unfortunately, I am not able to combine this with the „{query}“ macro. When I use 


     


      search „mykeyword {query}“


     


    this doesn’t work. Any idea why? Of course, I can save the {query} into a tmp-file and read this tmp-file afterwards, but this method would make some other things complicated. How can I pass a selection to „myself“ the best way?


     


     


    Is there a way to get „back“ to the previous query somehow? Lets say, I am at the level of seeing some sub-elements that I have called somehow (using the method you guys will hopefully suggest me to use to solve the above issue) and I want to get back to see the upper-level elements. The only way seems to be to hit „ESC“, „cmd-space“ „arrow up“, „arrow up“ to use the history function. Is there any better way?


     


     


    I hope my questions are not too confusing, but I am unfortunately not yet able to give examples, as I am in a very early stage of developing this workflow.


     


     


    Looking forward to any feedback.


     


     


    Christian


×
×
  • Create New...