Jump to content

politicus

Member
  • Posts

    565
  • Joined

  • Last visited

  • Days Won

    16

Reputation Activity

  1. Like
    politicus reacted to Andrew in Alfred 4.5 Beta: Take a first look at Universal Actions   
    A separate hotkey to re-perform the previously used action on a subsequent selection is a really good idea, I'll add a note
     
    For now, have you tried the action ordering? This will sort actions based on the argument type, so it will put the prettify action always at the top for json files:
     

  2. Like
    politicus reacted to Andrew in Alfred 4.5 Beta: Take a first look at Universal Actions   
    This is a great idea - I'll add a note
  3. Like
    politicus got a reaction from dt13 in Help: run command (without opening Terminal)   
    @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} and "with input as argv" by "with input as {query}", I can't get any notification "Large Type" or "Post Notification" display the value "{query}".
     
    If I trigger the workflow with a keyword and an argument, pass this argument/{query} to the script below, shouldn't I be able to output this argument/{query} and be able to display it in a notification ("Large Type" or "Post Notification")? 
     
     
  4. Like
    politicus reacted to Zero Cool in How do I set Alfred up to paste in a URL using a hot key?   
    @politicus - Thank you so much for this. Once I had started reading this thread, I had given up because it seemed to complicated. I really appreciate you sending me the workflow. Made it very easy to do. I just tested it and it works perfectly.
     
    And thank you everyone else who replied. I appreciate you taking the time to help.
  5. Like
    politicus reacted to vitor in How do I set Alfred up to paste in a URL using a hot key?   
    MarkdownTransform.
     
  6. Like
    politicus got a reaction from Zero Cool in How do I set Alfred up to paste in a URL using a hot key?   
    @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 clipboard plus, not then, paste the content of the clipboard to the frontmost application. Maybe, I confused "print" with "paste" in the first article. Plus, I didn't know about pbcopy and pbpaste input/output.
     
    With your answer in mind and playing around a little more with Alfred actions, I found two different ways to make it work.  
     
    (BTW, I am curious to know how you added a grey background to pbcopy).
     
    @Zero Cool  Here is the file of the workflow. Download it here, set the keyboard shortcut you want. Replace "htttp://www.yourzoomurl.com" with the url you want in the "Copy to Clipboard" action.
     
    I tested it. It works. 
  7. Thanks
    politicus reacted to vitor in How do I set Alfred up to paste in a URL using a hot key?   
    pbcopy isn’t grabbing the text from the frontmost application either, it’s grabbing the text you’re feeding it. pbpaste isn’t any different, it outputs the text to whatever environment you’re calling it on (i.e. the shell); it barfs the text, it doesn’t interact with applications. Also, you’re piping to it (|) which doesn’t make sense—a pipe is a way to say “use the output of one command as the input of the next” not “do this after”. pbcopy doesn’t produce any output and pbpaste doesn’t accept any input, so pbcopy | pbpaste does nothing (pbpaste | pbcopy technically would, but it would be useless).

    http:www.zoom.com is wrong, you’re missing the //.
  8. Thanks
    politicus reacted to deanishe in [SOLVED] List filter and "Run Script" action.   
    Yeah, that probably won’t work that way. You can’t easily pass a multi-argument command as arg there because “with input as argv” implicitly passes it as a single argument.

    Try “with input as {query}” and use just {query} for the Script. Turn off all Escaping options.
  9. Like
    politicus reacted to deanishe in "Post notification": upstream variables.   
    You've heard of workflow variables? Those. Passed into the notification.
     
     
    The same way as {query}. You write {var:SOME_VARIABLE} in the text field, e.g. Title = “{var:THING_NAME} was {var:THING_ADDED}”, Text = “You now have {var:THING_COUNT} {var:THING_NAME}”
  10. Like
    politicus reacted to deanishe in [How To] Get frontmost tab’s url and title of various browsers   
    osascript implicitly writes the return value of the last evaluation to STDOUT, so the script will print the tab URL. The tab title is lost because you don’t do anything with the return value.
     
  11. Thanks
    politicus reacted to deanishe in Run script : getting in your script the path of the file you want to run the script against.   
    “With input as argv” means the filepath(s) are passed to your script as command-line arguments. In shell, you access them with $1, $2 etc.
     
    So you replace "PathToMyFile.png" with "$1".
     
    I’d be surprised if that script actually works, since convert isn’t a standard command. Normally, you’d need to specify its full path, i.e. /usr/local/bin/convert.
  12. Like
    politicus got a reaction from JBCookin in [Feature request] Scroll through Alfred's results (i.e. with the "tab" key).   
    The tab "key", when set in Alfred's preferences, display the actions menu.
     
    I would like to be able to browse through Alfred's results with the "key" tab when not set to display actions.
    Or any other key... But the tab key looks like the best at this.
     
    Cmd+"" is good, but is about selecting a result, not about browsing through results.
     
  13. Like
    politicus reacted to Andrew in Adds a "confirm" option to Launch apps/files action.   
    @politicus you could easily achieve this in a workflow too, with something similar to this:
     

     
    Workflow example here: https://www.dropbox.com/s/baoaufr4o2kqiv6/Launch Terminal.alfredworkflow?dl=0
  14. Like
    politicus reacted to vitor in Future macOS versions won't bundle any scripting language runtimes   
    Not really. The best macOS version for a particular Workflow is bound to be whatever version the Workflow author is in, because that’s the one they’ll make sure it works in.
     
     
    That said, I agree here. Mojave is the newest non-completely-broken macOS.
     
     
    I’d bet Alfred’s team has multiple macOS versions available, to be able to evaluate reported bugs. I’d also bet they have little choice but to run the latest (Catalina in this case) most of the time, because those only gain more users while the older macOS versions lose them, and the teams needs to chase new bugs.
     
     
    More than we’d like, unfortunately (I see them added to Homebrew Cask). Authors of new open-source native apps tend to target Catalina (as in “I’m starting now, I’ll only support the newest”) and there are also commercial apps whose newest point releases are Catalina-only. It’s also common to see “our app is now discontinued, as it will never be updated to 64bit”.
     
    I have seen iOS app authors go iOS 13 only and then backtrack and readd support for iOS 12, but haven’t heard of anything like that on macOS.
  15. Like
    politicus reacted to deanishe in Future macOS versions won't bundle any scripting language runtimes   
    Mojave's probably the sweet spot. It doesn't have all the awful features of Catalina that have crippled so much software, and very few apps are Catalina-only.
  16. Like
    politicus got a reaction from vitor in Rename Action — Rename files and folders   
    Top workflow ! Thanks @vitor !
  17. Like
    politicus reacted to vitor in Large Type from the Clipboard Viewer   
    Easily done with a workflow (download available for a few days). It’s pretty bare, so you should fill the missing information that you care about, but it works. Pick a hotkey to call it, or run lt (for “LargeType”).
     
    For reference, here’s how it looks


    The Run Script node simply includes the text pbpaste.
  18. Like
    politicus got a reaction from iGyver in Code Case   
    Awesome! One more dfay workflow I will use 10x everyday 
     
    Feature request :
    If you could add a mix of the Camel case and the Pascal case (First letter of the word is a capital letter / space between words are replaced by an underscore --> My_Great_Variable_Name), I would be the happiest. (I name my files/folders using this case).
  19. Like
    politicus reacted to nikivi in Automating Alfred Preferences with KM palettes   
    Automating Alfred Preferences
     
    I have always hated how in Alfred Preferences there were really no hotkey support for making things and you had to use your mouse for creating workflow objects or do any kind of interaction to make the workflows.
     
    I have however managed to fix this by using Keyboard Maestro app to make macros to both create workflow objects from the keyboard alone as well as do common operations like opening debugger, changing workflow version number, making notes and a lot more.
     
    I put all the different actions for creating workflow objects in a palette.
     
    To better demonstrate everything, I made a YouTube video that you can watch below:  
     
     
     
    Download
     
    Here is the repository where you can download these alfred palette and the macros for using in Alfred:
     
    https://github.com/nikitavoloboev/my-mac-os/tree/master/km 
     
    I hope you find it useful. Feel free to comment and I would love to hear your thoughts on it or perhaps on ways that you guys have automated using the Alfred Preferences editor itself. ? 
     
     
     
     
     
  20. Thanks
    politicus got a reaction from deanishe in How to use web searches in a list filter?   
    Thank you very much. That looks amazing !
  21. Thanks
    politicus reacted to Andrew in [SOLVED] Running a one-line zsh command in Alfred   
    @politicus put the absolute path to shuf, wherever you have it installed.
     
    Cheers,
    Andrew
  22. Thanks
    politicus reacted to deanishe in [SOLVED] Running a one-line zsh command in Alfred   
    That isn't what Andrew meant. Try this:

    /usr/local/bin/shuf -n 1 ~/Downloads/One_Liner_Harvey.txt
  23. Thanks
    politicus got a reaction from Diegobit in Spacious (another Spotlight inspired theme)   
    @Diegobit I really like your theme -> using it for quite a few months now (light and dark).
     
    The only problem I have is every time I launch the Alfred search bar, I can't move it  (= once invoked, its position is fixed). 
     
    Is it a setting you have set, a bug?
     
    I used to use themes where I can move Alfred search bar, that is why I guess the problem is coming from your (lovely) theme.
     
    - Mac OS X 10.12.6.
    - Alfred 3 v3.5.1 (883)
  24. Like
    politicus got a reaction from hvkp in Play Song - Quickly play songs, albums, and more from iTunes   
    @ae6dx
     
    Yes. https://github.com/caleb531/play-song
  25. Like
    politicus reacted to davosian in Custom Dynamic Placeholders in Clipboard Snippets (v3)   
    In light of replacing other text expansion tools with Alfred, I am missing two features in the beta version of Alfred 3:
     
    I need the feature of having a text entry field after having triggered a snippet so that I can fill in missing information "at expansion time", e.g. a snippet like "Dear {name}, ..." should allow me to enter a replacement for {name} during expansion of the snippet. There is support for dynamic placeholders, but it seems that this is only for date, time and clipboard and not for "on expansion time" values since they would require a UI to enter the missing values.  
    Here is an example from another implementation (Dash):
     
    https://www.dropbox.com/s/ztnzp22reoa8b9l/Sample_custom_dynamic_snippet.png?dl=0
     
     
    I need (basic) rich text snippets which allow me to format parts of my snippet in bold, as list item etc. It looks like I can format the complete snippet as a whole only as of now.  
    I am really looking forward to the next iteration of the snippets feature.
     
×
×
  • Create New...