Jump to content

politicus

Member
  • Content Count

    555
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by politicus

  1. I realized that Ctrl+up arrow opened a new tab in Brave browser while this keyboard shortcut is supposed to only work in Mission Control by default (before any change by the user in System Preferences). As Alfred is the first place I set my keyboard shortcuts, I tried to find the workflow that was using Ctrl+Up arrow. I added a keyboard shortcut trigger with Ctrl+Up arrow to one of my workflow and was kindly warmed that this hotkey combination is shared with other hotkey triggers. I scrolled/checked all my workflows and didn't find the famous workflow sharing this key combination.
  2. I am testing the different possibilities offered by the "Large Type" Alfred action in terms of placeholders. In short, I am trying to display one of my snippet named "Vimium" that has the keyword ",ve". The problem is the Large Type action displays "{snippet:,ve}", not the content of the snippet. It tried adding the very same placeholder in the "Copy to Clipboard" action. It is working like a charm as the content of the snippet is copied to the clipboard. Am I missing something (again)? My Alfred version is Alfred v4.2
  3. @dt13 I have two answers for you. - The short one: there is a for a workflow for you here. - The longer one : to complement what @deanishe said, I successfully created an AppleScript script that adjust the brightness to the value you want, as long it is between 0 and 1. Or, if you absolutely want to use a shell script, please take a look here first. I tried and tested this script. It is working! I wanted to add a "Large Type" action. One thing, I do not understand is, when I replace the value "0.75" by {query} an
  4. I want too add a line between the lines of the output of this script because I wan to display it in a Large Type action. du -c -h {query} I have seen a thread on how to "Trim" with the "Transform" utility but nothing about how to add a newline. Did some research and guess I have to change my script (add an echo or a printf?) but do not know how to deal with the {query} element. Thank you.
  5. @deanishe I guess so but thanks to @vitor's answer and a few more trials and errors better understand pbcopy and pbpaste I found a solution. @vitor Thanks for the explanation. Before trying my solution, I red this article that says: This (pbpaste) will print whatever data you copied from the pbcopy command or the Finder's copy command (command-c). I also red this article that says: You could grab the output of a grep/awk/sed to paste into IM/IRC. I, then, thought that running my script would copy "http:www.zoom.com" to the c
  6. It is probably better to use a snippet. Alfred preferences > Features > Snippets. But, if you really want to use a keyboard shortcut, you can create a workflow with a "Hotkey" action and a "Copy to Clipboard" action. Do not forget to select the "Automatically paste to front most app" option and you are good to go. Before coming with this solution, I thought about about a script triggered by a keyboard shortcut that would copy a string (a url address) to the clipboard then paste it to the frontmost application. Something like this:
  7. I am looking for the following: Use one List filter so that after hitting a keyword, selecting a list item, hitting "Enter", Alfred would take the "Arg" value of the list item and run it in a Run script given the value "Arg" is always a one-liner like this one: "screencapture -x -R 455,60,530,416 ~/Downloads/Hotkey_Screenshots.png". Here is the Dropbox link to the workflow. Thank you.
  8. @vitor Feeling really stupid... My last from is the script I try to make work AFTER I red your message. Of course there is no error message. Plus, it is working like a charm now that I added a Copy to clipboard action. Thank you! Where does the output of this script go (the two lines script I posted before) by default? I expected it to be automatically copied to the system clipboard and therefore didn't understand why my Alfred clipboard newest entry didn't change.
  9. Here is how I have configured the Run script action that is triggered by a keyword action:
  10. @vitor Copied and pasted your gist in a Run script action, tried to run the script in Brave Browser (v85.1.14.84) and got this error message:
  11. As I was trying to add a post notification to one of my workflows and failed, I decided to take a closer look at how post notification action works. Documentation on Alfred's website didn't help as I am too stupid to understand what the three lines from "The title" to "content" do mean. I do get the post notification get the output of another action but that's it I do not get the notion of "upstream variables". Plus, I do not see how to substitute them into the output with {var:varname}? Can anyone explain it to me please? I am completely lost.
  12. 1°) Sorry for the late reply I didn't see any notification about your answer. Thank you for the precision about "argv". Makes me understand a little bit more about how Alfred works with scripts. 2°) I changed the script to: It is now working like a charm! Thank you!
  13. I was curious to know if I could browse the ~/Trash folder from the Alfred search bar and found I could only trigger the "Show Trash". Once you get use to navigate from folder to folder from the Alfred search bar, it is quite frustrating not being able to do it with the ~/Trash folder. Would be wonderful to be able to select then put back one or more files/folders from the Alfred search bar. As I am writing this, the idea of definitely deleting a file or a folder is coming to my mind. Use case? When you are notified you hard drive is full and d
  14. After literally hours, I finally find a solution to add a drop shadow effect on a given .png file. The "one-liner" I found is working as I could make it work in zsh (cf. the image below). The problem I have is I do not know how to make it work in a file action with a run script action. I simply attached a file action to this run script action. My question is: how do I do for Alfred to get the value /PathToMyFile.png which is the path of the file I want to add the drop shadow effect? Thank you.
  15. I started to use the "? trick" and love it! As I am using it more often everyday, I am wondering what is the scope of its search. In other words, for testing purposes I added the following text "Search - Google Drive" to one of my List filters of one of my workflows then tried to find this very workflow by querying "? Search - Google Drive", "?keywords Search - Google Drive", ?hotkeys Search - Google Drive. I found nothing... Is it (already) possible to perform such search ?
  16. And who is feeling stupid now... Thank you @deanishe! Is there a way I can change the title of the thread ? Didn't find any.
  17. I mean a filter/sorting near the add (+) button not when using the workflow.
  18. From my experience, when I use a list filter, I tend to add a lot of entries. The problem is it gets messy pretty fast. For example, I do not remember if I already added one entry or if I want to modify the entry I have to scroll down and up... So sorting (alphabetically for example) or filtering, (both) the entries would be useful.
  19. Solved my problem my Keyboard Maestro. A simple macro that asks me to confirm I really want to open Name Mangler:
  20. Being able to launch an application(s)/file(s) via a keyboard shortcut is simple, fast, awesome. Not so much when your (puffy? goofy?) fingers tend to mistakenly choose over and over the wrong key, ending launching the wrong application(s)/file(s). I bet it would be faster for @Andrew to add a little "confirm" option to Launch apps/files action just like the ones for the commands in the System pane than for my fingers to learn to completely stop messing around 😀 More seriously, for me Alfred is all about making a Mac user's life easier. While 99% of the tim
×
×
  • Create New...