Jump to content

politicus

Member
  • Content Count

    554
  • Joined

  • Last visited

  • Days Won

    16

politicus last won the day on October 1

politicus had the most liked content!

About politicus

  • Rank
    Advanced Member

Recent Profile Visitors

3,916 profile views
  1. 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
  2. @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
  3. 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.
  4. @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
  5. 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:
  6. 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.
  7. @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.
  8. Here is how I have configured the Run script action that is triggered by a keyword action:
  9. @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:
  10. 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.
  11. 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!
  12. 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
  13. 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.
×
×
  • Create New...