Jump to content


Popular Content

Showing content with the highest reputation since 07/22/2019 in all areas

  1. 3 points
    Also, if anyone's considering building a "Reveal in Finder" workflow, I'd very strongly recommend using a model similar to my AppScripts or Safari Assistant workflows. Provide a built-in and a user script directory, and put application-specific scripts in there. When the workflow's run, it should grab the name/bundle ID of the active application, look for a corresponding script in the script directories and run it if found. The potential for requests to add support for apps is basically limitless, so you really want to make it easy for users to add support for apps themselves, and to answer any feature requests to support app XYZ with "Sure. Write the necessary script, submit a PR, and I'll add it to the next release." Otherwise, you're going to be dealing with endless support requests, many of which will be impossible to implement.
  2. 2 points
    The “Don’t close the Alfred window on actioning result” Window Behaviour option choice is always a hard one for me. I have multiple nodes in multiple Workflow where I want both behaviours at different times. One way to achieve this is to add a new connection with a modifier that performs the opposite behaviour. This is hacky at best, and needs to be added manually each time to each specific option. My suggestion is a new behaviour with a global shortcut. Let’s say we’re on a result window that typically closes when picking a result. We double press ⌘ (or any other shortcut) and get a small padlock on the top right (I’ve used icons from my Workflows because I had them on hand). The window will stay in the “Don’t close the Alfred window on actioning result” mode until we dismiss it, at which point everything goes back to normal.
  3. 2 points
    Thanks @Andrew for your excellent support, and @waitingforgo for your tests!
  4. 1 point

    Workflow for Outlook V16 Search

    I create a workflow for searching mail from Outlook for Mac V16 (A.K.A. 2016). Now it support searching Mail sender, Subject and Preview Content with below format: olk [keyword] And also you can search with multiple keywords: olk [keyword1] [keyword2] [keyword3] To limit search scope in one attribute: olk from:[keyword] olk title:[keywords1] [keywords2] ... By default, this workflow searches mail from all folders and with default page size 20, for results more than 20, you can click last item 'Next 20 Results...' to go to next page. You can also configure the search: olkc pagesize [number] for change search result in one result list. olkc folder then you can get a list of all your Outlook folders, choose one to limit search scope. Project hosted in Github: https://github.com/xeric/alfred-outlook Download latest release workflow file from: https://github.com/xeric/alfred-outlook/releases Welcome your feedbacks!
  5. 1 point
    Github: https://github.com/bmunoz89/alfred-wf-bluetooth-manager 🚨 Supports Alfred 3 & 4 🚨 💻 Installation 👾 Run this command on a terminal: brew install blueutil Now download ⏬ the last release and open it 😎. That's all!! 📸 Screenshots 🔑 Keywords bset: Set the default device bc: Connect the default device bd: Disconnect the default device bcs: Select the device you would like to connect to bds: Select the device you would like to disconnect to bm: Allows to turn bluetooth on and off, and the same for updates of the workflow Besides that, you can add shortcuts into the preferences 👌🏽
  6. 1 point
    There is plenty wrong with Bash, but nothing wrong with you using it. It’s an idiosyncratic but capable glue language that I still use regularly. You can find it pretty much everywhere and be sure it will work with some consistency. But the way you’re writing it could indeed be improved upon. It makes little sense to keep escaping double quotes when you can use single quotes. Also, there’s no need for printf '%s\n' or so many of them. A single echo (or a Here Document) suffices. Your code isn’t working because Dynamic Placeholders aren‘t meant to be used in Alfred’s non-code areas. It wouldn’t be wise for Alfred to replace them everywhere and risk breaking your code. As a workaround, you may connect a Keyword Input to an Argument and Variables Utility that saves the clipboard contents as variables to be used in the Script Filter. Be aware that there is bound to be some breakage when the raw clipboard contents interact with the code, such as when you have a quotation mark in the clipboard. That is why raw Bash is not a good choice in this case — you need to sanitise your input beforehand, and libraries are good for that. Here’s a ready-made Workflow. I’ve kept and fixed the Bash example so you can still reference how your code could have been, but the end result uses Ruby. Finally I’ll ask that in the future, when asking for help with a Workflow, please upload it somewhere as it’s hard to help without access to it. Debugging can already be hard with access to the code, even harder to do so by guessing from a description. There are multiple places where the code or Workflow setup can be wrong. Without looking at it we’re mostly shooting in the dark. The Reporting Problems with Workflows topic gives a nice overview on how to build an effective report.
  7. 1 point

    [SOLVED] URL Scheme For Commands?

    Welcome @Uhnnohn, What you’re looking for are External Triggers.
  8. 1 point

    Folders not showing up in search

    You don’t have to change the folders regularly. Just once if they’re not showing up in the results at all. Like I said, Alfred primarily sorts by its “knowledge”, which is its memory of which item you selected for which query. Modifying the folder is just a way to get an item into the results list in the first place so you can “train” Alfred. Alfred is tuned for performance, while Finder and Spotlight are tuned for comprehensiveness. You get much better results from Alfred by keeping searches focussed. So if you want to find folders, you configure your File Filter to only search for folders instead of any type of file. It’s fairly straightforward to set up a two-step search that first filters folders and then the files within the folder you selected. I believe one of the built-in example workflows demonstrates this technique.
  9. 1 point
    alfred-spotify-mini-player.com Find all information on dedicated website: alfred-spotify-mini-player.com Follow on Twitter @TheMiniPlayer to get all news Features Example PS: If you have a problem with the workflow, do not spend time reading the forum post, the workflow has been rewritten many times! Follow instructions from here http://alfred-spotify-mini-player.com/articles/support/ instead
  10. 1 point
    Top workflow ! Thanks @vitor !
  11. 1 point
    Someone just asked for this because the previous link is dead (I'm the worst). So here's a current link: https://files.luo.ma/alfred/bbpaste.alfredworkflow
  12. 1 point


    Description Scan and convert PDF documents and images of text into editable and searchable files using FineReader with Alfred. Usage Using file actions or hotkeys the user can convert one or more PDF documents and images of text (.png and .jpg) into searchable PDFs, Word documents (.docx) or Excel worksheets (.xlsx). Download from Packal
  13. 1 point
    Chris Spiegl

    Restart Alfred Workflow

    Hi @Subject22, that's awesome, instead of going through all the hustle of setting up a fork and all, here is literally the only change we needed for this Workflow. It's only the script that needs adjusting, here is the fully working script as suggested by @cands. @Subject22 I hope this makes it easy for you to update everything. # Quit Alfred 4 and his preferences if application id "com.runningwithcrayons.Alfred" is running then tell application id "com.runningwithcrayons.Alfred" to quit end if set prefsWasOpen to false if application "Alfred Preferences" is running then set prefsWasOpen to true tell application "Alfred Preferences" to quit end if delay 1 # Wait for the processes to terminate # Restart and display processes tell application id "com.runningwithcrayons.Alfred" to activate if prefsWasOpen then tell application "Alfred Preferences" to activate end if # Display Alfred tell application id "com.runningwithcrayons.Alfred" to search
  14. 1 point
    Add to and view your Pinboard bookmarks. pa opens Pinboard’s “add bookmark” page in your frontmost browser. You can submit bookmarks with ↵ or dismiss the window with ⎋. If you have the PinPlus app installed (get it with :pinplusupdateapp), that opens instead. Configure the Hotkey Trigger to add your current browser tab as an unread bookmark. pin and pun are similar. The former shows all your bookmarks (type to filter), while the latter shows only the unread ones. In each case: ↵ opens the bookmark in your default web browser. ⇧↵ opens the bookmark in Pinboard’s website, so you can edit it at will. ⌥↵ copies the bookmark’s URL to your clipboard. ⌘↵ downloads the video on the page, if any. It requires DownVid and will automatically add to WatchList if available) fn shows the bookmark’s description. ⌃ shows the bookmark’s tags. Unread bookmarks suffer an extra event when acted upon, depending on the unread_action Workflow Environment Variable. archive will mark the bookmark as read and delete will remove it from your account. Any other value (including none) will leave it untouched. :pinpluslaunchd will install (or later remove, running the same command) a launchd service to seamlessly fetch bookmarks every hour. Bookmarks are auto-updated in accordance to the requirements of the Pinboard API. :pinplusforceupdate will force an update, but should be avoided. If you ever need to update your Pinboard API token, call :pinplusresetapitoken. Download | Source
  15. 1 point
    I am well aware how useful a generalised "Keep Alfred Open for a bit" would be, and do have some internal notes on this already. Any change like this would be a holistic change within the framework, so would be quite involving. Either way, it's on my radar.
  16. 1 point

    Getting at the Clipboard History

    Please don't do that. If you're going to write to the database, quit Alfred while your script is running, then restart it, instead. (And back up the database first.) If your script starts messing up people's clipboard history, the Alfred team will get the support requests. And Andrew will likely respond by changing Alfred to acquire an exclusive lock on its own databases. It's not possible to run Alfred 3 & 4 at the same time, which is a bit of a pain for workflow developers, because the Node crowd were causing problems and didn't fix them. So, please don't interfere with Alfred's functioning like that.
  17. 1 point
    @deanishe Hmm, looking into this, I had set an arbitrary limit many years ago. This may have been to work around an old macOS (performance?) bug, but I don't seem to have logged why I set this limit. I'm going to increase it to 4096 for now, and add a ticket to do some proper investigation into this. Cheers, Andrew
  18. 1 point
    @Twice Bitten, since you are not mentioning which Terminal application you are using, I guess you use Terminal.app. So, to "pass the text into the current Temrinal session window" and keeping your default Terminal integration as it is in Alfred (so you can keep your other action to open a new Terminal Session if you want), you can create a workflow that pass your text to a Run Script object with the script language set to /usr/bin/osascript (AS) and with the script set to: on run argv tell application "Terminal" activate -- comment this line if you don't want to send the Terminal window to front do script (item 1 of argv) in tab 1 of window 1 end tell end run or if you want to change Alfred's Terminal integration as mentioned by @vitor and use ! , you can set Alfred to use a Custom terminal application and set the script to : on alfred_script(q) tell application "Terminal" activate -- comment this line if you don't want to send the Terminal window to front do script q in tab 1 of window 1 end tell end alfred_script
  19. 1 point
    To be clear: the kind of file is irrelevant, it's the application that the file is open in that matters.
  20. 1 point
    You think? To my mind, the name "alfredforum" suggests strongly that it's, you know, just a forum. I have, that's true. This is also the first time I can remember this particular issue arising. To be clear, I don't mean someone asking why we can't upload our workflows here, but not understanding why we can't upload our workflows here. So it might be a communication problem. Add != host. Could be clearer, certainly, but yeah. Also doesn't say anything about hosting, but that's a very good spot and I'm gonna page @Vero to ask her to remove the mention of Packal (it's a zombie at this point). That's true, but as I say, in the 5 or so years I've been on the forum, you're literally the first poster I can recall encountering who thinks that it is possible because it isn't explicitly excluded. All your suggestions are great, imo. But this forum uses and is hosted by Invision, not the Alfred team. They can't just add new features like that, no matter how cool. While your workflow(s) may be very small, many workflows are several megabytes in size. And while the forum would certainly be a better (more permanent) place to host a workflow than Dropbox or some filesharing site, it's nowhere near as good as a site like GitHub that's specifically designed for hosting software. The Alfred team is small. Two people. Developing Alfred, managing the (hosted) forum and fielding help requests is already work enough for them. Getting into the workflow hosting business as well can only be detrimental to their primary jobs, which we'd all rather they concentrate on.
  21. 1 point

    Join or start a zoom.us meeting

    @Tony DThe attached workflow should be of some use to you https://www.dropbox.com/s/jasi3gt243s6o4y/Open Your Zoom Meeting.alfredworkflow?dl=0 I have no idea how to attach a workflow to this post when the only acceptable files are images.
  22. 1 point
    Please refer to the Github page for full documentation. Or download here. Basically, this is a workflow that allows you to create and view your self-defined cheatsheets. "It was designed to help remind *nix system administrators of options for commands that they use frequently, but not frequently enough to remember". Alfred makes your cheat sheets searchable and enables a very quick glance at some commands with your finger tips. This project was inspired by a command-line project cheat, extended its capability and yet acts as an independent tool. If you use "cheat" before, you can safely import your old cheat sheets in one hit. If you haven't heard of "cheat", you can start accumulating knowledges by writing your cheat sheets and make them searchable. To list all your cheat: cheat To search and list the content of one of your cheat: cheat <sheet name>. Fuzzy search and autocomplete is supported. To search in a specific sheet indexed by some keyword: cheat <sheet name> <keyword>. To search across all your sheets for some keyword: cheat --search <keyword> Autocomplete and fuzzy search are supported of course. For more detail and a git demo, refer to the Github page please.
  23. 1 point
    Bash, tools that don’t come pre-installed (wget), and HTML grepping all make for a finicky solution which is prone to break sooner rather than later. Chrome has great support for AppleScript. Use that. title="$(osascript -e 'tell application "Google Chrome" to return title of active tab of front window')"
  24. 1 point
    👍 Glad it's working. Remember the debugger if you run into another issue!
  25. 1 point
    What does Alfred’s debugger say? That’s where your error will be. At a guess, I’d say it’s because wget isn’t part of macOS, and is installed in /usr/local/bin. That’s not on your PATH in Alfred, so use “/usr/local/bin/wget” instead of just “wget”.
  26. 1 point
    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. ?
  27. 1 point
  28. 1 point
    Update. Let Alfred reorder paired device order. 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.
  29. 1 point

    Collection of shell scripts, completion

    The simplest way is to use a keyword that doesn’t match a bunch of other stuff. “.q” instead of just “q”, for example, if you want something short.
  30. 1 point
    Hi supporters, I’d like to share a workflow which lets you open a new AirDrop window in Finder by typing "airdrop". Get the workflow here: download Please also find the source code on Github. Cheers, Paul Credits: based on an Alfred 1.x extension by @Johnathan1707.
  31. 1 point
    Thank you very much. That looks amazing !
  32. 1 point

    Disable filename copy on action invoke

    Update: After using the solution described below, I realized there's an option in Advanced preference section, "Selection Hotkeys", that can be set to "Restore previous clipboard item"; this is the simpler way to solve the issue. @dfay Didn't get a chance to look further into this until now, but your solution does work, thank you so much. The issue with my original workflow setup seems to be that the Hotkey object type with Argument set to "Selection in macOS" will cause that selection to be copied to the clipboard. I've also been able to adapt the script as follows to use Hotkey (Argument set to None) to trigger script to get selection and then Browse in Alfred. Thanks again! on alfred_script(q) tell application "Finder" set sel to selection if sel is not {} then set filepath to POSIX path of (item 1 of sel as text) end if end tell end alfred_script
  33. 1 point
    Call qapps and all apps excluding the ones you set in the keep_alive Workflow Environment Variable will quit. The Finder is added to the exclusion list by default, unless you set kill_finder to true. You’ll need to use the exact names of the apps as they present themselves to the system. To prevent multiple from quitting, separate their names with commas. qprocesses will kill all processes, subject to the same keep_alive and kill_finder settings, meaning even things in the background that you don’t see will be asked to quit. Note both options ask the apps to exit (SIGTERM) instead of telling them (SIGKILL). If you need to force processes to terminate, consider ProcessControl instead. Download | Source
  34. 1 point
    Just press CMD+S again and it should save it. I mean: 1) CMD+S from the Snippet History to pop the Snippet window 2) CMD+S from the Snippet Window to save the Snippet (which does the same as pressing the Save button)
  35. 1 point

    Do not show applications on search

    @33adn2 Removing the Applications folder and reloading the cache should be sufficient; I've just tested it and it works as expected. This may indicate that your preferences aren't being persisted/written to disk as they should be. Do you sync your preferences, and if so, what service and path are you using? Cheers, Vero
  36. 1 point
    Honestly, I'm thrilled that this was "resolved" so quickly. Thanks for your help; Alfred remains in my Top 5 most-used apps (and I'm a proud Legendary Supporter). I use it so much so that when the graphics glitches appeared, I feared it was a universal issue with the operating system, or a problem with my actual graphics card. Anyway, I'll report it to VLC.
  37. 1 point
    Try installing this theme which is a copy of the Alfred Dark theme, but with no transparency and blur disabled: https://www.alfredapp.com/extras/theme/I8nmpqQCWx/ Cheers, Andrew
  38. 1 point
    Alfred works fine with Python 3. You can use your existing, Python 3 script by setting Language to External Script.
  39. 1 point
    The new update and release will be made on Github, not here. Pls go to the Github page if interested in this little one. It won't have frequent updates but I think it is somewhat mature now.
  40. 1 point

    Keep clipboard history forever

    +1 I'd be willing to pay >another $30 on top of my existing Legendary license for unlimited clipboard history, and I'd fully accept any CPU/Memory hit necessary to get it. I use Clipboard History as a general buffer for everything in my life, and losing everything beyond 3 months is a frequent source of headache. Here's a small sample of a few recent things I've lost due to history expiring: flight confirmation details commit summaries with commit ids (detached commits that are hard to find due to deleted branches) important UUIDs ssh public keys many many many file paths (lots of obscure config file paths that I never bother to remember) entire config files blog post drafts comments on social media form fields on websites It's always stuff that I don't realize at the time would be important later so it would be pointless to try and use snippets for most of these. Having a massive index of every meaningful string that's passed through my brain is incredibly useful. If needed you could hide "6 months" "12 months" and "unlimited" behind an "Advanced settings" pane and display a big warning about potential performance downsides. For now I just periodically back up `~/Library/Application\ Support/Alfred/Databases/clipboard.alfdb` to a separate folder, and merge the rows in it with a main database. This at least allows me to query further back by querying the merged database directly. Maybe I'll build a workflow to do that if I have time, but no promises. I've created a script that handles the backup of the db, merging it with an infinite-history sqlite db in my home folder, and searching functionality. /* Delete any items that are the same in both databases */ DELETE FROM merged_db.clipboard WHERE EXISTS( SELECT 1 FROM latest_db.clipboard latest WHERE $UNIQUE_FILTER ); /* Insert all items from the latest_db backup */ INSERT INTO merged_db.clipboard SELECT * FROM latest_db.clipboard; Full source: alfred-clipboard.sh (it's a fully functional infinite-history solution for Alfred, with backup, search, exporting, etc.) One thing I want to try is periodically overwriting the Alfred internal db with my merged one, and translating all the older timestamps so that they're artificially set to something within the last 3 months, that way I can accumulate infinite history without Alfred attempting to expire anything. In theory it should work fine, I'll probably update my script to do that sometime in the next week. One thing I cant figure out though is the format of the timestamps (e.g. `584601195`), they're not valid UNIX timestamps, they must be offsets in seconds from some custom hardcoded date. When I tried prepending `1` to make it something like `1584601195`, it becomes a valid unix timestamp, but the time is ~4 months in the future! If anyone has more info on the schema, let me know. I also tried hacking around the limit by changing the Alfred binary directly but unfortunately I was only able to find the limit in the .nib file (which is useless as it's just the GUI definition). I'd have to properly decompile Alfred it to find the actual limit logic... $ ggrep --byte-offset --only-matching --text '3 Months' \ '/Applications/Alfred 3.app/Contents/Frameworks/Alfred Framework.framework/Versions/A/Resources/AlfredFeatureClipboard.nib' 12590:3 Months (Now I just have to convince the Google Chrome team to also allow storing browser history longer than 3 months... then the two biggest sources of data-loss pain in my life will be eliminated).
  41. 1 point

    open finder folder as tab ??

    Here's a different take: I'd sometimes like to open files or folders in a new tab (my default setting for finder), other times in a new WINDOW. Is there a way to create a command for the latter specifically WHEN the finder default is set to tabs only? tx
  42. 1 point

    Rename File action

    Without meaning to hijack the thread, but I’m assuming this Workflow is not well maintained, as evidenced by the last update dates in the repo and users having to post the required fixes in text. I have a Workflow that does the same thing. I have no idea if it works the same to this one interface-wise — until now I didn’t even know this one existed. But some of you may want to try it as it’s well-maintained (and will continue to be for the foreseeable future), and particularly you @proxemics, as it hides the extension when asking for the new name.
  43. 1 point

    Duplicate apps in results (10.15 and V4)

    @MVR London Did you type "reload" into Alfred? This will refresh the app cache for any apps that may no longer exist in the old location. Cheers, Vero
  44. 1 point
    Tony D

    Join or start a zoom.us meeting

    This is great.. is there a way to have say `zm n` open zoom and start a meeting using my default PMI?
  45. 1 point

    firefox bookmark search

    Please - add Firefox to web bookmark search options, alongside Safari and Chrome. Support users of open-code apps? This is such a useful function, lightning fast browser access. Thanks
  46. 1 point

    Code Case

    Especially now that Alfred 4 has been announced …
  47. 1 point

    [HOW TO] Workflow/environment variables

    I've posted an updated version of this post on my own site: Workflow/environment variables in Alfred. I tried to update this version, but the awful forum editor makes it too difficult to be worth the effort.
  48. 1 point

    Set Caps Lock as Alfred Launch Key

    I know a lot of people currently do use the Caps Lock as the Alfred Key by using Seil and Karabiner apps. But I think it would nice if Alfred had this feature pre-built in the main app. Especially with the changes to Keyboard and Mouse drivers in macOS Sierra.
  49. 1 point

    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).
  • Create New...