Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Yes, I remember coming up against this problem before and I don't know why it didn't occur to me sooner. I think I was thrown by the fact that this workflow used to work (which doesn't make sense, in hindsight), and I didn't make any changes to it. Thanks.
  2. I get Starting debug for 'Edit hosts' [ERROR: alfred.workflow.action.script] Code 1: sudo: mate: command not found which suggests that the workflow needs the full path to any text editor (even though they're definitely in my PATH). I just tried it with the absolute path, and it now works. I'm wondering wtf has changed though, because this same workflow was working a couple of months ago. Many thanks for the tip, in any case. It immediately led me to the solution, and it'll be useful for future debugging! fort
  3. Hi all, I'm sure there's an easy answer to this, but could someone explain to me why a simple Keyword to Script workflow, consisting of a keyword foo and the following one-line bash script (where mate is the TextMate shell utility and bar is the absolute path to a text file) sudo mate bar does absolutely nothing, even though it works fine when I run it in Terminal,. This workflow used to work, but it hasn't for the past couple of months (I think, because I don't use it very often). It's not a huge deal, but I'd like to understand what's broken it. It's not because it's run with sudo,
  4. AFAICT, those are relevant to triggering actions in workflows, not System commands directly. Anyway, I managed to get things working by setting up external triggers to system commands in a workflow like the one David suggsted, and then calling those via AppleScript. Thanks!
  5. That would work, but I was actually hoping for something simpler: a way to directly trigger Alfred's System keywords via AppleScript. I'm assuming there's no way to do that, so I'll create the workflow you suggest instead. Thanks!
  6. Is there any way to trigger Alfred "System" commands via AppleScript, e.g., ejectall, lock, and so on? I'd like something like the following, but without having to specify a workflow tell application "Alfred 2" to run trigger "foo" in workflow "test.workflow.com" or to be able to specify that it's one of the commands in the System list. Thanks.
  • Create New...