Questions tagged [alfred]

Alfred is a productivity app for MacOS which allows one to search for files online or locally on one's Macintosh. Features include hotkeys, keywords and file actions.

68 questions
1
vote
2 answers

Alfred Workflow Bash Script Fails

I have created a script to automatically switch my Spotify UI from a light-theme to a dark-theme using Spicetify. The code for this script can is found here, cd /Users/MY_ID/spicetify_data; FILE=/Users/MY_ID/spicetify_data/nord.ini if test -f…
1
vote
1 answer

Best practices for managing yarn install for different environments

I use the same package.json for my dot files on MacOS and Linux. This was not a problem until recently when one of the packages stopped installing on Linux. (The reason for the failure is that the package is expecting Alfred, a MacOS app, to be…
oalders
  • 5,239
  • 2
  • 23
  • 34
1
vote
1 answer

How do I setup Displays to change via keyboard shortcut or "Hotkey'?

I work with 2 monitors on macOS. Under System Preferences >> Displays >> Appearances, I can change the display setup so that monitors are either side by side, one on top of the other, etc. I often need to change the setup from side by side to one…
Vash
  • 190
  • 8
1
vote
1 answer

How to make an Alfred workflow with twice searches?

I want to make an Alfred Workflow, and I have made one before, it only needs one input, but now it may need two. The situation is as below. With the keyword, firstly I will get the results through the first API, then I should use the result(select…
hanzichi
  • 609
  • 2
  • 12
  • 22
1
vote
0 answers

Why can't Alfred workflow get bash output?

I was trying to make an Alfred workflow, using Run Scipt,/bin/bash. Here is the script: echo `python3 /Users/Ninzero/Documents/PythonProgramme/rav/rav.py choose` I wanted to get the output and post a notification, but nothing appeared(I did…
Ninzero
  • 177
  • 1
  • 12
1
vote
2 answers

How to launch new Chrome tab from bash?

I'm using an Alfred workflow / global hotkey to run bash scripts: Trigger Hotkey Action Run Script I'm thinking to use open -a Google\ Chrome but I can't think of a way to open a new tab. This will be a very useful tool to have, and I'm curious if…
neaumusic
  • 10,027
  • 9
  • 55
  • 83
1
vote
0 answers

How does Alfred capture the Alt-Space keyboard command without "assistive device" access?

Alfred for OS X is able to capture the keyboard presses Alt+Space, which it uses as a "Toggle Alfred" command. It captures this even when it is not the active/key window. This question about "detecting system-wide keyDown events" tells me that there…
jameshfisher
  • 34,029
  • 31
  • 121
  • 167
1
vote
1 answer

String comparision never evaluate true in Alfred

I am writing a script for an Alfred workflow. However, the string comparison never evaluates true. The "{query}" inside the script does get replaced with a correct ctext value type which I can obverse using display dialog "{query}" and display…
XY L
  • 25,431
  • 14
  • 84
  • 143
1
vote
1 answer

How do I get a list of services in JavaScript using osascript?

I have been trying to create a script that will generate an XML structure of the names of all services available. It works fine in Script Editor, but it can not run from the command line. The code I have…
Richard Guay
  • 335
  • 2
  • 10
1
vote
1 answer

Osascript to Bash Command

This is very simple. Just can't get it right. I am making a alfredworkflow, where I want to take a URL, then curl / wget (program doesnt matter) in terminal. If I can do this in the background that would be excellent, but if it needs to open…
oCodaa
  • 173
  • 2
  • 3
  • 13
1
vote
2 answers

How does one keep Alfred 2 from opening and entering your Terminal command in a new window when Terminal is already open?

What changes do I make to make it so that it only opens a window if Terminal isn't already running but otherwise, enters the command in the open window? I'm thinking control flow, conditional jawn. I'm not sure how to write it out though. Thanks,…
tjfwalker
  • 494
  • 3
  • 18
1
vote
1 answer

Include Gem in Ruby Script Run in Alfred Workflow

I'm trying to create an Alfred workflow to change the volume with hotkeys through Alfred. A working gem to control Sonos is here:https://github.com/soffes/sonos The problem is: including the gem as part of a script just plain doesn't work. When I…
Trevor McKendrick
  • 595
  • 2
  • 7
  • 27
1
vote
2 answers

Writing extension for Alfred, output to window?

I want to make an extension for the application Alfred, and I want to have the output go to the app window. To understand what I mean (assuming you have Alfred), enter "2+3" in the Alfred text box. You will see it says "5" as a result item, and it…
tkbx
  • 15,602
  • 32
  • 87
  • 122
0
votes
0 answers

alfred is not swichting to finder if finder is on a separate space macos

Macos: 13.4 (m1) alfred: 5.1.1 If i create 2 'virtual' desktops. desktop 1 contains only one active app 'Finder'. desktop 2 contains only one active app 'Safari'. Staring point desktop 1 if i call alfred command + space (for me) alfred appears…
Maxim
  • 47
  • 6
0
votes
0 answers

How to display streaming result for Alfred Workflow?

Im writing a Alfred Workflow to automate a streaming remote API call: With a given query, my remote server respond with text result in gradually and incrementally manner. Lets take ChatGPT as an example if I hit "call-gpt what is an apple." I…