Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 04/16/2021 in Posts

  1. vitor

    Questions from newbie

    Welcome @bebek. To both the Alfred forums and macOS! For many (most?) of us, Alfred is the first app we install on any Mac and we almost feel useless using macOS without it. It can get that ingrained in your usage. Like every closed-source software, you have to trust its creators. I wholeheartedly trust Alfred’s team (@Andrew and @Vero) and I recommend you stick around to meet them in the forums. You’ll see they care deeply for Alfred’s users and they have everything to gain from being truthful. Plus, they’re nice people in general.
    4 points
  2. biati

    Calculate Anything

    A new update has beed released 3.0.0 New: Now the Workflow settings are saved in the workflow variables.. New: Added support for data storage: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, Exabyte, Zettabyte, Yottabyte, bit, Kibibyte, Mebibyte, Gibibyte, Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte. New: Added US Gallon in Volume conversions New: Added Fluid Ounces in Volume conversions New: Gallon now defaults to US Gallon (3.78541 Liters) to mimic the same results as other converters. You can sill type `1 uk gal in liter` or `1 ukgal in lite
    3 points
  3. deanishe

    Questions from newbie

    Absolutely. Alfred doesn’t upload any data to its creators or anyone else. In theory, it's potentially risky. In practice, it's just not an issue. Alfred is too small to be an attractive target. But If someone did create a malicious workflow, there are enough paranoid users (like me) running all manner of security software that it would be quickly spotted. If you must worry about something, worry about bugs, not enemy action.
    3 points
  4. @fxf Try "remove" or "cancel" as a keyword to search. "x": { "keywords": ["no", "delete", "remove", "cancel", "red"], "char": "❌", "fitzpatrick_scale": false, "category": "symbols" },
    2 points
  5. Showing a notification is the only one I'm aware of. Run NSAppleScript shows Alfred's icon, while Run Script shows an ugly "binary executable" one.
    2 points
  6. you don't need a Terminal Command object, you can use a Run Script object set to bash, which will will run your command directly in bash
    2 points
  7. It was very easy for me because I already knew all of the necessary stuff (basic text parsing, structure of an Alfred snippet/snippet collection, creating a ZIP file in Python). I copied this list into my code editor (I use Sublime Text, but whatever), made sure each misspelling only had one correction (i.e. deleted all but one alternative), and pasted the text into a Jupyter Python notebook. Then I wrote the code to (a) parse the text into (misspelling, correction) pairs, (b) convert each pair into the appropriate structure for an Alfred snippet, (c) convert those stru
    2 points
  8. I'm a long time Alfred user (next month it will be a decade since my first powerpack puchase; I started with Alfred version 0.8.2). Even as a workflow creator/power user I consider my use of Alfred quite limited in scope: clipboard history, web searches, a few workflows with keywords, a few workflows with only hotkeys, and of course app launching. Anyway, I found out about Raycast yesterday and given that I'm away from my computer right now all I can do is read about it and watch YouTube videos. This is the only thread on Alfred Forum about Raycast (surprising!) so I t
    2 points
  9. you can import this list into a "list filter" object (which accepts a CSV input), set your client number as the argument, then link to a "Copy to Clipboard" output. or you can use @deanishe's I-sheet-you-not workflow
    2 points
  10. Yes, that's fairly simple to do with Alfred. Just a Run Script action with Language = /bin/zsh: # fetch contents of URL and save them to variable "count" count="$( curl -fsSL http://domain.com/path/to/page )" # output to next action echo -n "I currently have $count subscribers" Connect that to a Copy to Clipboard output with "Automatically paste to front most app" selected. You can trigger it via a Keyword, Hotkey or Snippet Trigger.
    1 point
  11. I have a problem where I have a file filter that searches for PDF files on my system. Firstly Alfred will show the file in both ~/Documents and iCloud Drive. Not sure how to best solve this as I do have ~/Documents and ~/Desktop synced with iCloud. Perhaps I should just ignore ~/Documents folder in Alfred Prefs and only keep it to iCloud Drive? Or the other way? That's one of the problems. The other is that if I do activate on any of the files I am met with this error: Which I assume is due to macOS putting the files in the cloud. I
    1 point
  12. Paste text sequentially. Each time you invoke the shortcut, the previous clipboard entry will be pasted. After a set number of minutes—configured with the reset_mins Workflow Environment Variable—the shortcut will begin again with the most recent entry. Call :sequentialpasteresetcount for a manual reset. Download | Source
    1 point
  13. I love this, thanks so much for sharing. I've been having issues trying to copy-and-match style hyperlinks in the right font (i.e. not Calibri) in Outlook with hyperlinks on my clipboard, and this is accelerating my workaround of manually editing the hyperlink.
    1 point
  14. Very nice one, indeed. Allowed myself to tweak it to make a dark version (changed font and result icon sizes too — a little bit bigger)
    1 point
  15. Could you please open the Accessibility preferences, remove Alfred using the minus symbol, then re-add Alfred to the Accessibility list? Based on what you're describing, it seems that macOS has forgotten the permissions, so re-setting them should resolve that. Let me know how you get on Cheers, Vero
    1 point
  16. @Chq This will be very easy with a simple workflow. Assuming you have Music.app, Install this workflow and set the hotkeys you'd like on the two hotkey triggers. https://www.dropbox.com/s/yslwh1b3rvzozxj/Skip Music.alfredworkflow?dl=1 If you have and older OS and iTunes, you'll need to edit the two Run Script actions and change "Music" to "iTunes". Cheers, Andrew
    1 point
  17. if you are doing your parsing in bash, `pbpaste` will return the clipboard content. Or, in Alfred, you can assign the clipboard content to a variable using an 'Arg and Vars' object (e.g. `myURL`) and then access it with {var:myURL}
    1 point
  18. You may have only noticed it now, but that’s been the default behaviour for a long time. See the square box in the middle of the connection? Double click it and uncheck the Window Behaviour option at the bottom.
    1 point
  19. Update. Let Alfred learn from usage (except unread bookmarks). This means your most often selected bookmarks will show at the top when using pin. For pun they’ll still show in the order defined by the unread_order Workflow Environment Variable. To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater.
    1 point
  20. Here's a demonstration workflow that reconfigures a File Filter's scope by editing info.plist. Keyword dynsearch is the main “search” File Filter, and keyword dynset lets you change the scope of the main File Filter. Instead of storing a workflow/environment variable, it edits the File Filter config in info.plist, so you don’t need the extra Keyword and JSON Config. As the File Filter’s UID is hard-coded in the script (dynamic.py), you have to be careful not to delete the main File Filter (or to update the script with the new UID if you do).
    1 point
  21. Not if you set a workflow variable to the seed. Top-level variables get passed back to your script on rerun. import os import random import time # get seed from environment variable or current time seed = float(os.getenv('seed') or time.time()) # initialise RNG with seed to get deterministic values random.seed(seed) def main(): # set top-level variable that will be returned on re-run wf.setvar('seed', str(seed)) wf.rerun = 1
    1 point
  22. import os os.environ['PATH'] = '/opt/homebrew/bin:/usr/local/bin:' + os.environ['PATH']
    1 point
  23. dsrjarman

    NightShift

    @shmulvad What service! This is great, and does just what I was hoping. Thank you for putting this together. I might be back with more ideas...
    1 point
  24. Imagine being me, dreaming of a Soulver workflow and finding out 7 years later that it finally exist but my Mac is now too old to support/install Soulver 3... I want to die.
    1 point
  25. I'm afraid it's not that simple. You're copying a filepath, not a URL, and they have different rules, so you can’t just stick file:// in front of a path to make a URL. Sometimes it works, but a whole bunch of characters that are allowed in paths are not allowed in URLs. You need to URL-encode the path to get a valid URL, and in your case, it needs additional processing to ensure it works with Markdown (closing parentheses are allowed in URLs, but need escaping or encoding inside Markdown links or the URL will be truncated at the first closing parenthesis). H
    1 point
  26. deanishe

    Questions from newbie

    It's probably more accurate to describe macOS as "safer" rather than "more secure". Apple don't necessarily do a better job of security than Microsoft, but macOS malware is rare and unsophisticated compared to the Windows variety. macOS is a huge win over Windows when it comes to privacy, though. Apple take privacy very seriously and view it as a key competitive advantage.
    1 point
  27. deanishe Thank you! Yes, that's it! I'm not sure if I was just running on too few brain cells or if my search queries for formatted wrong but when I searched for that workflow (because that is the EXACT one I had before) I could not find it! Thank you so much! You've made my day! Sincerely, Dan Paradise
    1 point
  28. 1 point
  29. @Papep0r I made a change this morning which fixes this issue in 11.3 - if you update to the Alfred 4.3.4 b1228 pre-release from Alfred's update prefs, then this should be fixed. Please let me know!
    1 point
  30. Alfred uses the same system metadata index as Spotlight, and it does not support symlinks. If you try to import a symlink, the file it points to is indexed instead. Aliases are indexed, but as aliases, not the type of file they point to. So you might be able to get the desired results by using aliases instead of links, and adding the alias filetype to your File Filter.
    1 point
  31. @deanishe: I will consider that. Haven't read about best practice regarding releasing workflows yet, as I just spent some minutes hacking it together. Will read up on it and release it. But it feels somewhat banal as I just hacked it together borrowing the most interesting parts from @vitor's NewFile. I feel it (or a better version of it) would do better as part of @vitor:s already excellent set of workflows which has more audience attraction and better chance of reaching those users that might have use for it. But if @vitor doesn't mind, I can look into releasing it as a separate one. Will gi
    1 point
  32. @Phaks I use the following code: dir_path="$(osascript -l JavaScript -e ' const frontmost_app_name = Application("System Events").applicationProcesses.where({ frontmost: true }).name()[0] if (frontmost_app_name === "Finder") { decodeURIComponent(Application("Finder").insertionLocation().url()).slice(7).slice(0, -1) } else if(frontmost_app_name === "Path Finder") { decodeURIComponent(Application("Path Finder").finderWindows[0].target.url()).slice(7).slice(0, -1) } else { decodeURIComponent(Application("Finder").desktop.url()).slice(7).slice(0, -1) } ')" IFS=$'/\
    1 point
  33. It would be a honor if you have called me a lazy bum or anything at all, you are basically the spirit of this forum, thanks for the link , I will definitely have a look.
    1 point
  34. giovanni

    creating directory

    for future reference: this seemed to be related to Google Drive, I was running this workflow from a symlinked folder in google drive (I know, it's a no-no ). From that same source it worked correctly on catalina and incorrectly on big sur. Works fine on both, if symlinked from a regular folder. thanks again!
    1 point
  35. Did you give the links the correct file extensions? The AZW one looks incorrect. I would expect the Kindle app to properly define a filetype, not have macOS use a dynamic one. Try mdls -raw -name kMDItemContentType /path/to/ebook.azw on a file that isn’t being found in your shell to see what filetype the system has assigned to it.
    1 point
  36. Value/arg and ARGV are command-line arguments, not environment variables. It looks like you’re using Node, which (I think) puts environment variables in process.env. If you want arg “moved” to an environment variable, so the second Script Filter has an empty query, add an Arg and Vars utility between the Script Filters with an empty Argument field, and a variable with the value {query}
    1 point
  37. I Sheet You Not Create auto-updating workflows from Excel worksheets. Works like a List Filter but using an Excel file as the data source. I Sheet You Not is a workflow generator/template for Alfred 3. It reads data from an Excel workbook and displays them in Alfred. You can specify which rows and columns the data are read from, and changes to the data are picked up automatically by the workflow. Download and installation Download the workflow from Packal or GitHub releases and double-click the downloaded I-Sheet-You-Not-X.X.X.alfre
    1 point
  38. When copying code, you need to do it exactly. I wrote: system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}' And you did: system_profiler SPPowerDataType grep "Cycle Count" awk '{print $3}' .
    1 point
  39. deanishe

    creating directory

    Sure. But if you want a workflow that will continue to work on future systems, use Python 3. Python 2 is dead. Regardless of any other qualities of the language, that makes it a questionable choice for new code.
    1 point
  40. @ADG Welcome to the forum You can indeed delete individual items from the Clipboard Viewer using Fn + backspace. Cheers, Vero
    1 point
  41. Yeah, I’ve never liked these. They don’t look too ‘Mac like’, and they’re also looking dated. I think it would look much better if they used the SF Symbol icons. They would already cover most of what Alfred needs, and look more in keeping with Big Sur.
    1 point
  42. There’s currently no feature to show placeholder text, no. The closest would the the icon appearing on the right.
    1 point
  43. The Feather Icons are released under MIT license, although there are only 286 compared with SF Symbols's 2400. Are you open to using Feather icons? Also, Apple states: So as long as Alfred isn't using them in "app icons, logos, or any other trademark-related use", this implies that use in interfaces would be fine, since they "shall be considered to be system-provided images". Given that Alfred already uses many system-provided images, using SF Symbols seems an extension of that existing behavior. For example: Again, my goal/intention is
    1 point
  44. Any chance this is going to be implemented? Otherwise I'd have to use Paste.app (https://pasteapp.io/). I've found the double-copy-to-merge functionality a game changer in favour of Alfred, but not having an unlimited clipboard is an even bigger deal breaker
    1 point
  45. Hi there, I really wanted to be able to use :ok_hand: as a shortcut for 👌, but the emoji pack didn't support these new emojis... So I made my own! There are more than 400 emojis that were added, it still works the same And I'll keep updating it for the foreseeable future. Download link: https://github.com/paris-ci/Alfred-Emoji-Pack-Update/raw/master/snippets/Emoji Pack Update.alfredsnippets Code used to generate the pack: https://github.com/paris-ci/Alfred-Emoji-Pack-Update It's basically the same thing as before, so here is the installation tutorial : http:/
    1 point
  46. I love Alfred and it's one of the main reasons I love my Mac, but I encountered a very annoying issue while cleaning up disk space. Although Alfred successfully finds files on iCloud, it doesn't allow you to open them (for example PDF files in PDF Expert) if they are only available on iCloud. This does work if they are also locally available. In other words, it seems to pass the iCloud link as an .iCloud file to the software to open, but won't automatically download it first. Before you write it off as a third party bug (e.g. PDF Expert), it does actually work fine with
    1 point
  47. When I search Alfred for documents that are in iCloud, it always sees them, but when I press enter for documents that are not downloaded to the device, I get an error message. I have to use Spotlight or Launchbar to do it, and then it later works with Alfred. Is there any way around this? For example, when I search for a PDF that is in the cloud and try to launch it, PDF Expert says PDF Expert does not support "icloud" files. Would you like to open ".2018 Wrapped.pdf.icloud" with the system default viewer?
    1 point
  48. I just released a Screen Sharing workflow with automatic discovery of hosts that have remote desktop enabled. Such amazing things are now possible thanks to the "Script Filter" input! Download — stable version. The source code is available here: https://github.com/pstadler/alfred-screensharing
    1 point
  49. schleifer

    Viscosity.app workflow

    Howdy All, I've written a workflow that works with Viscosity, which you can use to start or stop OpenVPN connections. The configured keyword is 'vpn'. That will show all of your configured networks: And autocomplete (case-insensitively) on the argument, if one is provided: You can inspect the source on Github. Here's some commands you can run in Terminal that will import it into Alfred: cd ~/Library/Application\ Support/Alfred\ 2/Alfred.alfredpreferences/workflows curl https://nodeload.github.com/andrewschleifer/viscosity-alfredworkflow/zip/master > \ vis
    1 point
×
×
  • Create New...