Jump to content

Floating.Point

Member
  • Posts

    124
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Floating.Point

  1. Alfred version: 5.0.3 [2087] MacOS version: macOS Monterey - Version 12.6 When resizing a List Filter's popup window, the "Match mode:" UI elements are pinned to the top instead of the bottom of the popup, so they obscure the above UI elements when resizing the window. Demonstration:
  2. Hey Pontus, Another (simpler) approach is to use Alfred's built in "Browse in Alfred action" Which has the benefit of showing a preview:
  3. I just wanted to share my moment with Alfred today. As Ive started to do more things with code, I started using big old blocks of ASCII text to make my code more fun and browse-able. For example: So I had been using this web site (https://ascii.today/) where I would type out my heading, then scroll to find my preferred typeface, then click copy, switch back to my text editor and paste. So many clicks! Today I realised I'd done this enough times and it was inefficient. Time to put Alfred to work. So I went to the source and found that website was built on figlet.js. Within about 10 minutes I had it installed (along with its CLI) and a tiny little Alfred workflow that puts it to use. Now sure, one might argue that 'it's going to take a few headings before I break even on that 10 minutes spent', but its not just about time. Now I have this capability at my fingertips, I can perform the task without breaking flow. That's the magic, that's the Superpower! Anyway, I just wanted to post this as a little anecdote. Ever since I started dabbling in the command line / scripting / Alfred node based workflows – my time spent on the computer has become way more rewarding. I have styled Alfred to suit my personality, and every time I invoke Alfred to do something unique to my workflow, I am utterly delighted.
  4. I don't know if adding Vitor's workflows is necessary? They pretty much all belong here
  5. Not my workflow https://github.com/vitorgalvao/alfred-workflows/tree/master/PinPlus
  6. Not my workflow https://github.com/biati-digital/alfred-calculate-anything Requires PHP
  7. Not the author https://github.com/bevesce/unicode-symbols-search Requires Python and I needed to manually update the Script Filter's language dropdown to Python3.
  8. Ah of course, that makes sense, I’ll simplify the readme. Thanks! While I’m here, a little update. I’ve had some good guidance around how to use imagemagick to change colours of existing icons. And while I haven’t gotten my head around implementing it just yet, I hope to get back to it once work dies down again
  9. I think there might be a way to globally change the colour of all generated icons. We could use ImageMagick to search through all images in a folder, and where it finds single colour icons, it could update the RGB value, leaving the alpha channel in tact. Then we would have a way to update all monochrome icons within our Alfred Environment. If anyone is handy with ImageMagick and would like to contirbute, I could use some help (either here, or I've also started a discussion over in ImageMagick land). The script should run along these lines: 1 Recursively search a directory. 2 Identifying all images that only contain one colour (+ alpha). 3 Replace that one colour with a new value (leaving the alpha as is). 4 Save over the image file. I think I've found some leads for finding single colour images and for replacing RGB only … but I'm out of my depth for bringing this together into a single script as outlined above.
  10. Repo updated with new version along with video demonstration. Updates in first post 😊
  11. I love avoiding headaches and have happily implemented {random:UUID} instead of pretty, though devilish, non-ASCII characters. I've also taken on board the imperative to quote variables to avoid problems around spaces. Finally, I understand your guidance around how to best author Alfred workflows on GitHub. So, I'll finish up the current fixes; restructure the repository; and merge the branch into Master (as a point revision). Hopefully I'm getting terminology here somewhat correct and Ill carry on with it Thanks again Vitor!
  12. The weird characters are actually the symbols themselves, which of course rendered weirdly in the code block above). I just thought it would be cute to have the actual symbol as the file name. Maybe a bad idea?
  13. Hey Mick, What you need are List Filters (I love List Filters!) Here you create a new entry, give it a name eg "Text Edit" add an icon if you like, then in the Argument area you put the path to the application… connect that to an Open File action and you're done! Here's a quick mockup for you to toy with, enjoy! https://www.dropbox.com/s/i859mlsxcbye46l/Popup Menus for Mick Sanders.alfredworkflow?dl=0
  14. I've been working on a nice little update for this workflow inspired by Vitor's ideas. I've ran into a little bit of trouble which I have outlined below. For troubleshooting this issue, I have created a branch in GitHub (I think I'm starting to 'get it' with GitHub). Here's the link I've set the default save location to /tmp/ and provided a new config field, where the user can choose their own location. Now we need unique naming for the outputs, so let's use the symbol itself for the file name. This works great for the first part of the workflow, where the file is generated and saved to disk. But it isn't playing nice with the AppleScript portion of the script, where the file is then copied to the clipboard. It seems to fall over when transporting the variable out of Alfred and into AppleScript set output to (system attribute "output") set the clipboard to (read (POSIX file output) as {«class PNGf»}) It's interpreting the output as …/ÙÄõ∏.png instead of …/􀛸.png But if I hardcode the file path, like below, the AppleScript handles the file copy perfectly fine: set the clipboard to (read (POSIX file "/Users/nathan/Desktop/􀛸.png") as {«class PNGf»}) So if anyone can help get around that hiccup, the overall workflow is coming together pretty nicely. It's actually super fast using Alfred's universal actions. Just select the symbol in the SF Symbols app, invoke Alfred's actions menu, and execute the workflow. Bam! Icon ready to go. One could even assign a hotkey / temporary macro if they needed to make a bunch of these. I still need to explore ImageMagick further, for stuff like generating an outline, and I think I'd like to provide the option to choose a background colour and then generate a filled squircle using this colour, along with a drop shadow. Future features 😊 Overall, it's really fun working on something that I hope might be useful for others.
  15. Hi Vitor, Thanks for the excellent feedback. Your ideas are all very welcome. I actually have already uploaded to GitHub (see updated post), though I’m not sure I’ve followed best practices there. I’ll review the blog post you linked and try get better acquainted with GitHub. Then I would very much like to address your feedback. These will all be later-things. As it’s very late for me. But for now, cheers! 🍻
  16. Icon Generator Icon Generator will quickly convert an SF Symbol or Emoji to .png for use in workflows. It includes some nice options for adjusting appearance including a configurable colour palette. Download: Alfred Gallery | GitHub Dependencies SF Symbols - https://developer.apple.com/sf-symbols/ ImageMagick (available via Homebrew) Pillow for Python (available via Homebrew) (Note: the latter two dependencies can be handled by Alfred if you are installing through the Alfred Gallery) Usage Start by copying an emoji, or an icon in the SF Symbols app. Convert it to PNG with the icon generator keyword. The result will be in your clipboard. Alternatively, select the emoji or icon and use the Universal Action. You can then paste directly into Alfred. Hold option when running Icon Generator to configure the icon's appearance
  17. Well, wow, that's super handy! Thank you Vitor! where can I 'buy you a coffee' ? You're such a helpful, generous person. My daily computing is consistently better because of your shared wisdom.
  18. Hey guys, I have an idea to enhance the 'Launch Apps / Files' action. It would be nice to be able to feed it my {query} rather than baking in the path to a specific app. Cheers!
  19. Hey guys, now that it's been a moment since the big Alfred 5 launch, I thought I might bump this idea. It doesn't sound like much, but this little tweak is a lovely QOL improvement and native support in Alfred would be very nice.
  20. Hey Vitor, I was hoping you might include a blank hotkey node alongside the "pa" keyword in PinPlus? I have added a command+D hotkey (with related app: Safari) thus replacing Safari's default add bookmark command. This works really nicely, but sadly it disappears every time PinPlus is updated. As I understand if there was a blank hotkey node in the workflow by default, I could migrate my settings on update. Enormous gratitude for the workflow (regardless of whether this niche request warrants implementation) Cheers!
  21. Hey, IMO what you want to do is learn how to use scripting to automate your Mac usage, then employ Alfred to help operate such scripts. It's a pretty deep rabbit hole, but even just a few weeks of learning and you'll start to feel the benefits of automation. Look into AppleScript or the new Shortcuts app. Once you have a handle on how these tools can automate your processes, getting Alfred to help is simple
  22. Vitor, thank you. I didn’t imagine I’d be up and running with this functionality immediately. I completely understand the potential for confusion with this approach and why it might not make sense to support it directly. Luckily for me, you exist and have provided a great solution. Again thank you 🙏
  23. Summary: Requesting context sensitive Keywords - just like the Hotkey's related apps --- More and more I am using Alfred to automate activities within the apps I use daily. Running scripts, loading workspaces, modal menus, macros etc - all context sensitive to the foreground application. While I love putting Alfred to use in this way, my implementation lacks one of Alfred's features I find most valuable… the keyword. I wish there was a way to have something like the 'related apps' function from the hotkey input available for keywords. This would allow the same keyword to do different things depending on the foreground app. For example executing the keyword 'align' would do one thing if Photoshop is foreground, and something completely different if Cinema 4D is foreground. What I love about Alfred is I don't have to remember myriad different keyboard shortcuts to automate my workflows, so if it were possible to have context sensitive keywords, the whole system would become a little more flexible
  24. Hi Mingwei, Thank you for putting together this very helpful workflow. Wondering if you might take under consideration a feature request? It would be really nice if certain devices could be hidden/ignored in the list of options. Cheers!
×
×
  • Create New...