Skip to main content
Share Your Experience: Take the 2024 Developer Survey
14 votes

how can I filter out unwanted search results in Alfred (ie node_modules folder, caches)

Go to Preferences -> Spotlight -> Privacy (TAB) Then add the folders you want to exclude to that list.
Akash Palrecha's user avatar
9 votes

How to get Alfred to run a terminal command and open one app twice?

Now you can also run a Terminal Command using Powerpack. Create a "Blank Workflow" On the top right corner, click on the plus sign and choose the trigger you want. Click the same plus sign and now ...
CIRCLE's user avatar
  • 807
9 votes

Spotlight and Alfred can't find alias to Emacs.app

For some reason, including /opt/homebrew/Cellar (the path to Homebrew's Cellar on Apple Silicon devices) in Alfred's Search Scope doesn't work, at least for Emacs. But I found a more generic solution ...
rallyemax's user avatar
5 votes

how can I filter out unwanted search results in Alfred (ie node_modules folder, caches)

You can also add alfred:ignore to the spotlight comments of the folder that you want exclude, in your case the node_modules folder.
GForce's user avatar
  • 163
5 votes
Accepted

Alfred searching through directories and filenames at the same time

One of Alfred's example workflows is Dynamic File Search. Here you enter the keyword or press a hotkey, then enter the folder, then the file. In the images, I've used the default keyword activation of ...
grg's user avatar
  • 202k
4 votes
Accepted

How do I check all boxes in Alfred Snippets?

Select the first snippet by clicking on it. Scroll to the bottom and hold Shift while clicking the last snippet (or press ⌘+A to select all) Right click on a snippet to bring up the context menu Mouse ...
Lizzan's user avatar
  • 9,143
4 votes

Is there a way to exclude certain apps from showing in the spotlight/alfred results

If you go to System Preferences > Spotlight > Privacy and click the [+] button to add an application they are grayed out and cannot be added in this method. However, you can, instead of clicking ...
user3439894's user avatar
  • 58.9k
4 votes

How to get Alfred to run a terminal command and open one app twice?

You can also just open Alfred and start with a '>' in front of your query. More information: https://www.alfredapp.com/help/features/terminal/
Remi's user avatar
  • 141
3 votes
Accepted

How do I allow Alfred.app to control Bluetooth on macOS Sonoma?

You need to allow Bluetooth for Alfred 5 in macOS Settings Privacy & Security > Bluetooth > Alfred 5
Denis Surkov's user avatar
3 votes

How to make Alfred switch to currently open Chrome instead of opening a new window?

I had this same exact issue, and checked for a MacOS update and didn't have one. It turned to be fixed with a Chrome update.
Micah's user avatar
  • 31
3 votes

Sublime Text like fuzzy filesystem search for Mac OS X

Alfred ships with an example workflow called Dynamic File Search that does something similar to fuzzy searching: https://www.alfredapp.com/blog/tips-and-tricks/how-to-get-the-results-you-want-in-...
user6844017's user avatar
3 votes

How to optimise my script, a script for opening new a new emacs instance only if no instance is present

I usually just run emacsclient -a emacs FILE or emacsclient -a SHELL-SCRIPT-WHICH-STARTS-EMACS-WITH-PARAMETERS FILE and let emacsclient figure out the rest.
nohillside's user avatar
  • 101k
2 votes
Accepted

OSA Script failing for JavaScript All the Sudden

For those who may experience this issue in the future, I was able to resolve the issue by deleting the /Users/your short name/Library/Preferences/com.apple.ScriptEditor2.plist file and rebooting. I ...
John Schulz's user avatar
2 votes

Spotlight index not available to Alfred or Raycast

Well, this is embarrassing... after trying the things mentioned above, power cycling my Mac made everything work fine!
adrianclark 's user avatar
2 votes
Accepted

Opening a OneNote Page URL in terminal on mac

Is there any way to do this? Use: open 'onenote:https://d.docs.live.net/mypageurl' When reading the URL, open will interpret onenote: as a custom URL scheme and open OneNote with the link you ...
jaume's user avatar
  • 15.1k
2 votes
Accepted

Is there a way to automate the movement of application windows to assigned monitors?

Place the application window on the desired screen. Then right click its Dock icon -> Options -> Assign To -> (select desired target) These functions are especially helpful if you use Spaces....
Hefewe1zen's user avatar
  • 1,287
2 votes

Alfred and Spotlight don't detect VSCode even though I've it on shortcuts

I had the same problem and just managed to fix it. I went to System Preferences > Spotlight > Search Results and then unchecked "Applications", then re-checked "Applications" and it instantly fixed ...
Nathan Manousos's user avatar
2 votes

how can I filter out unwanted search results in Alfred (ie node_modules folder, caches)

This issue has been in discussion on the Alfred Forum since 2013 and unfortunately the answer is that Alfred can't really omit "node_modules" without you tagging all folders with the alfred:ignore tag....
Paul Razvan Berg's user avatar
2 votes
Accepted

What are all possible ways a keyboard shortcut could be bound in Safari?

I've run across this post on StackOverflow that addresses this. Basically, there's no central repository of all the shortcuts created because, in the end, the application isn't required to register ...
Allan's user avatar
  • 103k
1 vote

always launch new window from spotlight

Unchecking the second item can help temporarily. When it's off, opening an app should give it focus on the current space, sometimes new windows open too, afaik.
anki's user avatar
  • 11.8k
1 vote

Cleaning iTunes Artwork Cache, Please Wait

It is a shortcut from Alfred 3 I was using by accident. It is used for playing music from iTunes. I also couldn't use Alfred anymore, so I just killed the Alfred process and started it again.
lukwuerz's user avatar
  • 570
1 vote
Accepted

Is it possible to show more preview subtext lines in Alfred search

It isn't. However, there is a workflow which makes dictionary browsing with Alfred better.
Serendipity's user avatar
1 vote
Accepted

In AppleScript or JavaScript how can you click menu item?

Since the OP is tagged with both AppleScript and JavaScript, and are two entirely separate languages, and it was not explicitly and specifically stated that the solution had to be only in JavaScript, ...
user3439894's user avatar
  • 58.9k
1 vote

Is there a way to disable the Spotlight hot keys via the terminal?

If you want to turn off the Spotlight hotkeys on your Mac, you can use this simple command in the Terminal: /usr/libexec/PlistBuddy -c "Set ':AppleSymbolicHotKeys:64:enabled' 'false'" "$...
8ta4's user avatar
  • 21
1 vote

Close recent windows of an application

Try to access window menu of Firefox, the oldest window at top of the list
nelson's user avatar
  • 2,356
1 vote

How to make Alfred switch to currently open Chrome instead of opening a new window?

I have the same issue, however for Chrome Canary. The problem isn't reproducible for any of the other browsers I've tested: Chrome, Firefox, Firefox Dev. And I've tried updating OSX and Google Canary. ...
Gunther's user avatar
  • 171
1 vote

How to make Alfred switch to currently open Chrome instead of opening a new window?

Hmm. I just tried it and it's doing the desired behavior for me (opens the currently open window). Only thing I can think of is that Alfred is opening another instance of Chrome because you have 2 ...
Abdul's user avatar
  • 259
1 vote

Replace Specific Variables In Selected Text Via Script

This is a job for text item delimiters. If you aren't familiar, a delimiter is a separator, normally between words the separator is a space. With text item delimiters, you can change the normal space ...
Hurston's user avatar
  • 187
1 vote

how to check if a specific UI element is in focus apple script

This definitely works on my system running Alfred 3. You may need to adjust the delay times but as they are now, this script works for me. activate application "Alfred Preferences" delay 1.5 tell ...
wch1zpink's user avatar
  • 7,651
1 vote

Script to toggle internet sharing using Alfred

You could try this (tested on OSX 10.9.5 but it may depends on the version of you OS) : tell application "System Preferences" -- display system preferences window activate -- wait to see the window ...
boissonnfive's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible