Jump to content

MuppetGate

Member
  • Posts

    132
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by MuppetGate

  1. Guys,

    I assure you that we are fully aware of the desire for more flexibility when it comes to chaining items together. However, everything can't make it into a single release. The reality of it is, releases will never happen if you keep adding until you cover every potential use case and feature requested. Andrew has many plans in mind to continue to expand the functionality of workflows in Alfred. So sit back and relax. This is only the beginning. 

    That's good to hear. And thanks for those examples. Great stuff. :-)

  2. How it works:

     

    Drop it into a workflow and set the options:

    Prompt text - this appears in Alfred's main input window with the cursor flashing after it. It would have to be fairly short, something like, 'Are you sure?'

     

    Responses (optional).

     

    A list of values that the user can select from. These will appear in Alfred's search results. 

     

    or

     

    A script that generates the responses using Alfred's results XML format.

     

    or 

     

    Nothing at all, so the user can enter any value.

     

    The action returns the selected value in {prompt}

     

    And with your other hand, you could code up a nice conditional action to go with it ...  :rolleyes:

     

     

     

     

     

  3. Hello again.  :)

     

    I wonder if someone could help out with a bit of Ruby scripting. I've written a workflow that deletes a list of files selected from Alfred. The problem is with the script; I can't get it to delete the files.

     


     

    ext = "{query}"
     
    fileNames = text.split("/t")
     
    filesDeleted = ""
     
    fileNames.each do  |fileName| 
     
        command = "rm -r " + fileName
     
        system(command)
     
        filesDeleted << fileName
     
    end
     
    print filesDeleted

     
    Everything else works okay apart from the system call. 
     
    Any ideas as to what I've forgotten? ...  :(
     
  4. Yeah, I'd like to be able to select whether the output goes to a notification, or to Large Type, depending on conditions in the script.

     

    I realise this is probably not that feasible under the current architecture (one module just captures the output of the previous),

     

    Mmmm.

     

    If you have a look at Vero's Google Searches workflow, it looks as if the actions can have multiple inputs and outputs.

  5. Hi there  :D

     

    First of all, I'm really enjoying Alfred's second incarnation. The workflow stuff is fantastic.

     

    I've even had a quick go at reworking an old extension for creating new folders (nothing clever).

     

    http://sdrv.ms/U8Bc6U

     

    Anyway, while fiddling with the Applescript, I wondered if it was worth adding another action that would help with the cases where you needed to input a second or third parameter through Alfred (at the moment, I'm calling a dialog up through Applescript).

     

    So, how would it work? Well when you set it up, you give the input action a name (fileLocation for example) and some text it would display in Alfred.

     

    In use:

     

    The action would take a {query} from a preceding action

    and then take user input from Alfred.

    and then join the user input to {query}, appending the action name (so you could identify what the value was) and the value

    The new {query} would then be passed on to the next workflow action (which could be another 'arbitrary input' action)

     

    Having written it, it does look a bit complicated (especially when it comes to parsing the query)  :rolleyes:

     

     

     

×
×
  • Create New...