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
0
votes
0 answers

Strip everything after the ampersand in a URL

I'm trying to write a bash script for Alfred which will let me put in a custom time ($time) to link to a YouTube video ($url) If one or more ampersands are present remove everything after the first ampersand (If there is no ampersand present just…
0
votes
0 answers

Is there any way to copy the selection‘ icon file to clipboard in Alfred Workflow?

I am working on develop a workflow and it needs to copy the icon of selection to clipboard.The icon files are stored in the workflow folder. so can i do that? btw, I am using scriptfilter and use the JXA, the filtered results return in JSON.
Nauxscript
  • 95
  • 1
  • 7
0
votes
0 answers

Is there a way to disable the cmd-opt-/ in Alfred or change it so it doesn't override XCode?

Trying to bring up quick documentation in Xcode (cmd-opt-/) triggers Alfred. Has anyone got a solution to this...the Alfred instructions don't work for me. Tried disabling Alfred Hotkey. No joy!
KCT3937
  • 49
  • 3
0
votes
0 answers

Pull out specific parts of text in Alfred

I am trying to make a simple tool that takes an Amazon URL and outputs the product ID. As an example the following UL has a product ID of B003VAHYTG.…
0
votes
1 answer

Alfred workflow launch apps, Dispatch key combo, how to type in input text?

When develop alfred workflow, I keyword -> Launch Apps/Files -> Key Combo -> how pass the {query} to textfield(input box) of app ? I set key Combo CTRL+F , means launch communication app and Key Combo find somebody, My problem is how to pass the…
Jim Green
  • 1,088
  • 3
  • 15
  • 40
0
votes
2 answers

Open new chrome window with applescript alfred workflow

on alfred_script(q) tell application "Google Chrome" if it is closed then activate end if else make new window tell application "System Events" to set frontmost of process "Google Chrome" to true …
Hasan Tezcan
  • 1,116
  • 1
  • 11
  • 23
0
votes
1 answer

Open a new tab in a private window in Safari using applescript

Actually I developed an workflow for Alfred. It suppose whatever you search to open in a new private window in Safari, and it work as it supposed.. but the problem is, it open every search in a new private window, and I want the first search to open…
0
votes
2 answers

How to use VIM(buffer) for quick editing of clipboard content

Being spoiled by the awesome VIM mode on ZSH I wanted to recreate the same experience for my clipboard. VIM mode in ZSH allows the current command to be edited in a VIM buffer an to be written back to the command-line, example: Example of VIM mode…
0
votes
0 answers

Space char in bash String variable expansion not read and executing command in case statement

I'm building an Alfred workflow with switchaudio-osx so I can change system audio input/output to specific source(s). Pretty new to shell script writing, and I conjured up this: #!/bin/bash #Command…
wileypoots
  • 31
  • 2
0
votes
0 answers

Alfred Workflow - Searching on specified web browser in a new window with optional argument

I trying to make a workflow of my taste, but I'm having a real hard time. I'm new to programming in general, but I'm trying my best so any help would be appreciated! Here's my Goal: I want to create a workflow that is triggered by a key word, with…
shaine
  • 31
  • 3
0
votes
1 answer

Can I get a keyboard shortcut to go to homepage of current website in chrome?

I'm looking for a way to set a keyboard shortcut to go to the current homepage of the website I'm browsing in Chrome at that time. So for example I'm on "https://stackoverflow.com/questions/ask?wizard=1" right now. "Press shortcut" Url…
0
votes
1 answer

How to pass arguments to Python script in Alfred Workflows

I am trying to pass the {query} parameter to my python script (python newbie) so I can create a really simply calculation. Heres what the workflow looks like: My python script looks like this: query="{query}" x = float(query)/60 y = x*100 print…
InvalidSyntax
  • 9,131
  • 20
  • 80
  • 127
0
votes
1 answer

/bin/bash - Alfred 3 workflow does not detect php

So I downloaded this plugin https://github.com/vmitchell85/alfred-vuejs-docs and I got the Powerpack. Here is me trying to execute the workflow but pressing enter at this point does nothing: After I press space and enter "vue events", I get in the…
test
  • 17,706
  • 64
  • 171
  • 244
0
votes
1 answer

alfred script that "waits until key pressed..."

I try to write a /bin/bash Script in alfred and that Script shall pause at one point - and continue when the user presses a keyboard-key (or other shortcut). I tried the following bash-cmd (see below) that starts a process and then on the second…
iKK
  • 6,394
  • 10
  • 58
  • 131
0
votes
1 answer

Can't expand "Alfred 3 Snippets" at integrated terminal within Visual Studio Code

I wonder if you please can give me a hand here... I've setup couple of snippets at Alfred 3 and it works everywhere except inside the integrated terminal at Visual Studio Code. When I type the keyword, you would expect to paste whatever you have…
egmweb
  • 41
  • 1
  • 6