Jump to content

MuppetGate

Member
  • Posts

    132
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by MuppetGate

  1. Excellent work. Thanks for sharing!
  2. Thanks very much. That's just what I'm looking for. :-)
  3. 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 ...
  4. Deja vu. The fixes it. fileNames = text.split(" ") And I would have surely tripped over the 'spaces in filenames' thing within the next hour. Thanks for the suggestions!
  5. Ah! Right, I've just tried printing and it appears that my split method isn't splitting on the the tab character. I need to play around with it some more I think.
  6. 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? ...
  7. Right, I think that blah='<tab>' needs to be IFS='<tab>' All working now. Thanks :-)
  8. Thanks. I'll give that a try. It look like I was accessing the array incorrectly.
  9. Yes, sorry, that's what I meant: how do I get hold of the value?
  10. Another question :-) How do I get hold of the parameter string using Ruby? Thanks again.
  11. Hi there. Does anyone have an example Bash script that works with items selected with the option-up? Having trouble separating the items. Thanks
  12. I suggested some sort of input action that would let developers take arbitrary text strings from the user during a workflow. http://www.alfredforum.com/index.php?/topic/261-do-we-need-an-arbitrary-input-action/
  13. Mmmm. If you have a look at Vero's Google Searches workflow, it looks as if the actions can have multiple inputs and outputs.
  14. Handy to know, but I was thinking more of something that would allow you to select the next action in a workflow, rather than select the next statement inside a workflow action.
  15. Takes an input from one action and puts it straight out along multiple wires. On each of the 'wires' you can set a value. The action attached to the wire is executed if the wire's value matches the value of the conditional.
  16. Hi there 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)
  17. Not sure how this would work, but how about a mechanism which would allow the workflow developers to push updates out to Alfred. Perhaps a parameter on the workflow which would tell Alfred where to check for new versions. Or maybe a repository. A repository somewhere would probably be better.
×
×
  • Create New...