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
16
votes
6 answers

Change OSX keyboard layout("input source") programmatically via terminal or AppleScript?

I am currently switching input sources by running a GUI AppleScript through Alfred, and the GUI script can sometime take up to 1s to complete the change. It gets quite annoying at times. I have come across Determine OS X keyboard layout (“input…
maxhungry
  • 1,863
  • 3
  • 20
  • 28
9
votes
2 answers

Pip install --target=. Alfred-Workflow gives an error

I am trying to install a python library on macOS following through these instructions. However I get an error every time I run this command : pip install --target=. Alfred-Workflow And I always get this error for running it : pip install --target=.…
Nikita
  • 449
  • 1
  • 7
  • 23
8
votes
2 answers

Applescript to open an application in full-screen mode?

I'm trying to program Alfred to open my Terminal, Sublime Text, and Chrome with a workflow. I would like for my terminal to open normally as a window, but I've been trying to get Chrome and Sublime to open full screen. I was able to get Chrome to…
Eric Ho
  • 81
  • 1
  • 1
  • 2
6
votes
1 answer

Is there anyway to export/import all alfred configuration ?

I want to export all alfred 3 configurations to hard driver, or import it from hard driver. For some reason use DropBox to sync configurations is unavailable for me, so is there anyway to deal with it ? Configurations include all item in…
chenxinlong
  • 1,677
  • 2
  • 15
  • 30
5
votes
6 answers

Applescript "Expected end of line but found property." error when using google chrome

I recently updated to OS Mavericks and it appears a few of my applescripts dealing with Google Chrome have stopped working properly. I have a simple function that opens chrome and creates a new window.. on openWindow() tell application "Google…
android_student
  • 1,246
  • 1
  • 13
  • 32
3
votes
1 answer

how to export google chrome custom searches to alfred custom searches

background I'm a heavy user of chrome custom search engines (you can see an example of such usage here). However, I like the convenience of alfred and would like to simply launch websites from alfred. Alfred also offers it's own custom search…
abbood
  • 23,101
  • 16
  • 132
  • 246
3
votes
0 answers

IntelliJ Command Line Launcher for Multiple Windows

I just downloaded https://github.com/bchatard/jetbrains-alfred-workflow only to discover that it only works for the very first project you open. I usually have a ton of different projects that I'm regularly cycling through, so it's a bit of a pain…
Keegan
  • 31
  • 1
2
votes
0 answers

Alfred workflow to output to a text field

I'm writing a pretty simple workflow which is to read something from a file, and then output it to a text field, for example a web page input box. For example the file is a=b I can search a and output b to the input box. Which output should I…
Bomin
  • 1,619
  • 5
  • 24
  • 39
2
votes
0 answers

Copy Google File Stream link to clipboard programmatically

With Google File Stream, you can right-click on a given file/directory in Finder and click "copy link to clipboard" from the contextual menu. Is it possible to recreate this programmatically, given the file's path? My end goal is to create an Alfred…
2
votes
1 answer

Alfred Workflow to open a file in vim in the terminal

How can we write an alfred workflow to open a file from finder to a vim editor? This is my first attempt to create a workflow in Alfred. I am still learning and wanted to start with a simple workflow. Here, I first created Hotkey and Keyword. Open…
user8864088
2
votes
1 answer

Opening a new Safari window with Alfred AppleScript opens 2 windows

When I run this script from Alfred (using the text "nsafari", and Safari is quit (not in the dock), two Safari windows will pop up. When I run it from the Script Editor, it will sometimes open up two windows, but sometimes not. (This also happens…
Dylanthepiguy
  • 1,621
  • 18
  • 47
2
votes
1 answer

Alfred: Workflow "Expected end of line" error in AppleScript

I have set up a workflow using Alfred. The workflow opens a bunch of applications. As a part of this workflow, I also want Stay to restore the window positions to the preset arrangement I have created. For Stay, I use the "global" keyboard command…
P A N
  • 5,642
  • 15
  • 52
  • 103
2
votes
2 answers

Alfred to run apps from Chrome App Launcher

Chrome lately added Chrome App Launcher to the dock, in order to lunch installed chrome apps. Can I create Alfred workflow in order to run them through Alfred?
vittore
  • 17,449
  • 6
  • 44
  • 82
1
vote
1 answer

AppleScript plays playlist in Music.app on macOS Monterey

I'm working on this Alfred Workflow: https://github.com/gustavosaez/Alfred-Workflow-Apple-Music-Playlist And today I'm looking for a day to "automate" the play music in background or hidden (to avoid open the application and click PLAY). I found a…
Saez
  • 11
  • 3
1
vote
0 answers

Using Python in Alfred workflow: calling multiple user input variables in script

Having trouble calling some user input variables (currentWt, height, BMI, which would then be used in this python script below and pasted to clipboard. Is anyone familiar with alfred workflows and knows how I can do this? import json import sys …
1
2 3 4 5