Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 04/11/2021 in all areas

  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. Alfred internally has a URL scheme to open the preferences to certain pages, sometimes used by the ? keyword. I'm reluctant to make this a public accessible feature as this makes it significantly more tricky to make changes in the future for something which won't be used much. Having said that, in my wider plan, I do have some ideas written down to make a configurable user-facing "preferences" per workflow which would show when installing a workflow.
    3 points
  5. 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
  6. 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
  7. 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
  8. When searching for items inside clipboard history, it would be useful to be able to search by the app name from which the item was copied. For example, I know that I copied a password from my password manager app, but later in the day I don't know what to search for because the password has random characters and is buried down in the list with other copied items. So it would useful to be able to search for the app name.
    2 points
  9. Interesting. But yeah. Unicode strings are marvellous when you’re working with text content, but there’s a lot of stuff you want to treat as bytestrings (i.e. mostly text, encoding unknown), which is a PITA in Swift because it doesn’t really have bytestrings or even “char” literals.
    2 points
  10. Found this twitter thread that talks about why swift string methods are slower due to the encoding. Maybe useful I am aware of the Dean’s Medium article he shared on it. 🙃
    2 points
  11. Don’t connect it to the Hotkey, connect it to the Argument and Variables Utility.
    1 point
  12. 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
  13. thank you!! 🙌 that's what I thought I did, probably I was expecting Alfred to learn sooner? thanks again for this and your other great workflows, and for educating the community.
    1 point
  14. 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
  15. Pretty much, yeah. A JSON Config is the only official way to dynamically-configure a File Search's scope. Unofficially, you could add a second File Filter to configure the search scope (instead of setting a workflow variable), and edit the File Filter’s scope directly in info.plist.
    1 point
  16. For those who love Notion.so (really great documentation & more tool), you will know how useful it would be to get instant search results from Notion in Alfred. To that reason I've created a workflow that does exactly that, allowing you to search your Notion.so workspace from Alfred, showing instant results, and the ability to open the browser to your selected page. There are two env variables required (the notion search api isn't documented), these can be obtained by inspecting the network request from a notion search, as documented in github below. C
    1 point
  17. See it it’s the one in Alfred Preferences → Features → File Search → Navigation.
    1 point
  18. import os os.environ['PATH'] = '/opt/homebrew/bin:/usr/local/bin:' + os.environ['PATH']
    1 point
  19. 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
  20. vitor

    Questions from newbie

    Minor versions have frequent releases. Major releases are every few years. Previous versions don’t become obsolete, but Workflows created for a newer version of Alfred won’t work on an older version (understandable; as the newer version always has more features). Some developers keep releasing their Workflows for older Alfred versions for a while (e.g. @deanishe) others don’t (e.g. myself).
    1 point
  21. 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
  22. 1 point
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. deanishe

    creating directory

    What does the debugger tell you the error is? FWIW, I'd switch to Python 3 now if I were you on account of Python 2 being dead. Then you can just do os.makedirs(os.path.expanduser('~/...'), exist_ok=True)
    1 point
  29. you can create a custom search or a workflow and use this string: https://www.google.com/search?tbm=isch&q=logo+{query}
    1 point
  30. Apologies for the slow reply, I seem to have missed this notification! Here's one of the popular workflows for searching the Notes app: https://github.com/sballin/alfred-search-notes-app/releases/tag/3.3.0 Cheers, Vero
    1 point
  31. @ADG Welcome to the forum You can indeed delete individual items from the Clipboard Viewer using Fn + backspace. Cheers, Vero
    1 point
  32. Why does it do that? That sounds sub-optimal. I mean, what's the purpose of being able to turn off mid-string expansion if you still always have to use keywords that never occur anywhere in a word (and not just at the start)? In @miq's case, there's no question that the cursor is in the middle of a word. It makes no difference to the text or the user whether Alfred inserted the first half of the word or they did. It seems to me, it would be better if it didn't matter to Alfred, either.
    1 point
  33. deanishe

    night mode setup

    No, it's not at all clear what's going on. Some kind of indicator to show which theme(s) you have selected for light/dark modes would be very helpful (e.g. a sun/moon icon to the right of the theme's name). And a way to set both themes regardless of current OS mode (right-click > "Set as Dark Theme" for example).
    1 point
  34. vitor

    Alfred KAT

    You didn’t ask, so I didn’t know you were having an issue. That sounds like you were using the wrong option in the wrong place. You should add the Run Script version at the end of the Workflow. That’s the proper way for it to only check for updates after your action is done. Alternatively, just deleting the open "${HOME}/Downloads/${alfred_workflow_name}.alfredworkflow" line near the end will make it do everything as usual, but it won’t open the Workflow itself. Meaning the user gets a notification that a new version was downloaded but has to manually open it from ~/Downloads at a late
    1 point
  35. deanishe

    Alfred KAT

    I save them for the RTFMs Well, yeah. They're basically real-time data. But something like a weather forecast or KAT search results won't really suffer from being 5 minutes old. Cached results are keyed by search query. So if you search for "buster", but accidentally grab the ARM ISO, you can very quickly go back and grab the AMD64 one instead because the workflow loads the results for "buster" from the cache. It's basically for the case where you re-open Alfred and hit ↑ specifically to repeat a previous search. I dunno. Perhaps I just
    1 point
  36. library in Swift to ease the integration of updates from within Alfred. the API is basically four (3+1, or 2+2 if you prefer) methods: 1. check if an update is available (compares latest version on GitHub release VS the version of your local Workflow): if let release = Updater.checkUpdate(for: "godbout/AlfredKat") { // release.version, release.file, release.page available } 2. launch the update Updater.update(with: release.file) 3. notify (useful before launching at it is blocking) Updater.notify(title: "Alfred K
    1 point
  37. Sorry folks for all the errors and failures you keep running into! The workflow is way too hacky with no good logging, error reporting and very poor debugging... I started working on a revamped version with detailed logging, less moving parts and a consolidated code base in a single swift binary, but work at my day job has gotten way too hectic and the revamping of workflows and bugfixes have taken a backseat I'd gladly merge pull requests though! Thanks and apologies!
    1 point
  38. So here's a workflow to open the current Finder window in Terminal or iTerm, depending on what you like to stick with. Also the other way round is possible. ft: open current Finder directory in Terminal tf: open current Terminal directory in Finder fi: open current Finder directory in iTerm if: open current iTerm directory in Finder For Path Finder fans: pt: open current Path Finder directory in Terminal tp: open current Terminal directory in Path Finder pi: open current Path Finder directory in iTerm ip: open current iTerm directory in Path Finder GitHub. Direct Do
    1 point
  39. Right. I think it might be a scope thing. With the tell using a variable, the compiler doesn’t understand where to find things like tab or execute javascript (i.e. it doesn't know they're defined by Chrome). activate and window work fine because they’re defined by the OS, not individual apps (you can also tell apps that don't support AppleScript to activate, or enumerate their windows—even if you can't do anything else with them). I guess if you want to support multiple browsers, you could either use JXA (it supports variables for app names) or save the scripts as text
    1 point
  40. @troycurtisjr With help from someone on reddit, I was able to cobble together code that tests for Do Not Disturb status on Big Sur. The plist file ~/Library/Preferences/com.apple.ncprefs contains a plist item dnd_prefs. That item contains a base64-encoded binary plist (bplist). When that is decoded, if DND is enabled, it would look something like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>dndDisplayLock</key>
    1 point
  41. Diegobit

    Bluetooth Controller

    Really useful workflow! Works out of the box for me 👍 (as a developer I had homebrew, python etc)
    1 point
  42. I think there's a way to achieve some of these goals without changing the search, just the rendering in the ViewController. For me, the bottom line is: Alfred is returning incorrect results. This is a bug. Results for "RTS" are being polluted with "RT-S". I don't think "Well, it's the metadata server" is a good reason for why (from a user's perspective, while it might be a good root cause for the developer). Those polluted results are preventing me from finding the most obvious, most intuitive results, which to me in this use case are the highest in the folder hierarchy
    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. 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
  45. deanishe

    Microsoft Edge

    I'd say that it's extremely unlikely that Alfred will gain built-in support for Edge unless Edge provides an official API for apps like Alfred to read its bookmarks. You would probably be better served with a workflow instead. Depending on how Chromium-like it is, a workflow like this one might be able to read its bookmarks.
    1 point
  46. 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
  47. I added a workflow to go with this set of Themes, you can find it on the same Github repo in the Workflows folder It features two commands : "theme" : toggle between Dark & Light themes for both macOS & Alfred. "theme red" : switch to the Red Accented Alfred Theme. Here is a screenshot of the MojaveThemeSwitcher and its options:
    1 point
  48. You need to make sure that you add the remote page. Click on the "Remote" tab in Alfred Preferences. On the left bottom side, you'll see a "+" button. You'll have three options: "Examples", "Workflows", and "Blank Page". Select "Workflows" and then select "PowerPoint Remote". That should add the Remote Page with all the buttons, and it should look like this:
    1 point
  49. RodgerWW

    Mute Mic?

    check this out: http://superuser.com/questions/172970/hotkey-to-mute-mic-on-mac-os-x Make a new alfred workflow: Templates/Essentials/Keyword to script For the keyword, make it what you want and set arguments to "No Argument" double click on the script box and select usr/bin/osascript for the language copy and paste the code on the page mentioned by 'tkneis' into the script area, save. Now, This will toggle whatever your input is ... so, in system prefs, make sure your boom mic is set as input ... and the script will toggle it between mute and 100% each time you run it.
    1 point
×
×
  • Create New...