Jump to content


  • Content Count

  • Joined

  • Last visited

  1. I am gathering the questions because i realize that they were swamped in the rest of the post: 1- where can I find documentation about the file filter advanced tab? 2- there is absolutely no way alfred autocompletion works like any shell autocompletion work?
  2. sounds logic now do you think you can paste a link to a doc and maybe some examples? I still don't get it I set up a file filter to look for truecrypt images with .tc extensions in ~/Documents A] keyword="mtc" | with space=ON I type "mtc " (single space), nothing is listed I type "mtc " (double space), the list appears I add a 'p', so I have "mtc p" (double space) in alfred, and autocomplete gives me: "mtc perso.tc" (single space, one space has disappeared!) B] keyword="mtc" | with space=OFF I type "mtc" (no space), nothing is listed I type "mtc " (single space), the
  3. Ok, then what are the Advanced tab options for? Where can I find documentation? Yep, I got that, but I would like not to type any space and Alfred starts listing the files as soon as the keyword match. Not possible right?
  4. Hi Two questions regarding "File Filters" 1) I would like to know how to make a file filter that searches for a specific extension. I have some Truecrypt images in my ~/Documents folder, to which I can add a .tc extension. In the advanced tab of the file filter node, I noticed the KMDItemDisplayName matadata field I tried to change the "Value" column from "{query}" to ".tc" or even "{query}.tc" without success. How would you do such a thing without a script filter? Where can I find information on how to use those Advanced fields columns? 2) I noticed that when I type
  5. Hi I would like to know how to make a script filter that works like the "eject" system command workflow. When I create a script filter, Alfred waits for the keyword to be complete before it actually displays any result. But when I type just "ej" Alfred shows the "eject" list immediately. Would be great to have that responsiveness in a script filter as well Thanks!
  6. I'd rather use #!/usr/bin/env python so my script is portable to other installations I sourced my .bash_profile before calling for my python script and now it works the run script node looks like this: source ~/.bash_profile ~/tools/myscript.py {query} I am happy with this solution for now, and this closes this topic. But I keep thinking Alfred should run a session in the user environment, like any other terminal, iterm and alike I think this would be more elegant and straightforward This could be a new discussion of its own, I don't know all the consequences of such a chan
  7. yep I think it is related to the PATH if I run echo $PATH in the terminal i get: /usr/local/bin:/usr/local/share/python:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin if I run echo $PATH in the workflow I get: /usr/bin:/bin:/usr/sbin:/sbin my ~/.bash_profile loads my ~/.bashrc which loads a ~/.path file in which I set: export PATH=/usr/local/share/python:$PATH export PATH=/usr/local/bin:$PATH And, appart for some dylibs, brew doctor is happy Could it be that Alfred does not load the ~/.bash_profile and so the ~/.path is not loaded in the end?
  8. Hi there I would like to run a python script with an Alfred workflow but I realized that the python version I run in the terminal is not the same Alfred is running The python I use was installed with homebrew, and my path is set up so I run the "brew installed" python which is 2.7.3 and is located here: $ which python $ /usr/local/bin/python I setup my script to print out the python version with this statement: $ print(sys.version) When I run it in the terminal I get 2.7.3, but the workflow notification prints out 2.7.2 The shebang in my script.py is #!/usr/bin/env python
  • Create New...