Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 10/17/2018 in all areas

  1. 3 points
    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
  2. 2 points
    Hi, I've created a workflow to find and open Apple/iCloud notes in Notes.app. Just type n[part of note title] and press enter. The default search method is known to work on High Sierra and Mojave, but AppleScript options are also supplied that should work on other macOS versions. Get it on Packal and feel free to open issues/make pull requests on GitHub.
  3. 2 points
    Hey everyone! I've created a workflow that allows you to search and create notes for Bear. This is my first workflow, first OSS project, and first foray into Python - let me know what all I messed up Available on github and Packal. Many thanks to @deanishe and @dfay for some initial direction. Install To install, download a released alfred-bear workflow and double-click to open in Alfred 3. Easy-peasy. Searching and opening results bs -- Search for a note by title and open it in Bear. bst -- Search for a tag (a group of notes) by tag title and open it in Bear. Creating a new note bn I love notes! -- Creates a new note with the title and text "I love notes!" bn I love notes! #love #notes -- Creates a new note with the title and text "I love notes!" and the tags "#love" and "#notes" Known Issues Creating tags only works with single-word tags - multiword tags hopefully to come. Todo Append text to existing notes. Figure out multi-word tags. Thanks deanishe for guidance on Alfred workflow creation and capabilities, and for his excellent Python workflow library. dfay for guidance from his experience writing the Ulysses Alfred workflow. Rhyd Lewis for giving me an excellent example to work off of in his Omnifocus Alfred workflow. Versions 0.3.1 Fixed database location that changed with a Bear update. 0.3.0 Added search results from note text to main search. 0.2.2 Changed search queries to order by last modified date descending, so that more recently modified notes/tags show up at the top. 0.2.1 Added hashtag symbol to "Open Tag" list results to make it a little more obvious that it's a tag and not a note. 0.2.0 Now allows non-ASCII characters. Searching by tag now displays not only tags that match the search query, but notes that match those tags as well. Searching by tag now works with or without the '#' symbol in front of the tag. 0.1.0 Initial public release.
  4. 2 points
    Overview here, with the latest release you can install here. Summary of the current features (6-30-19): You can search for title and author using the keyword search (default is "ib"). You can also use options as follows (in the format "ib -a" for each option, respectively): -a search by author only -t search by title only -g search by genre only -h get available options for using this workflow By default, if a title doesn't have a genre, Alfred Books won't be able to search for it. While searching, you can press ⌘L to see some metadata about the selected title; this includes: title and author, genre, percentage read, description While searching, pressing ⇧ (shift) on a selected title will attempt to show a cover and the actual filename. While searching, pressing your action button (one of the following: → (right arrow), fn, ctrl, ⇥ (tab)) will allow you to act directly on the Books file. Be cautious here, as modifying the file from this interface may cause inconsistencies with the Books sqlite database, causing you to need to modify the actual sqlite database if you say modify or delete a file here. This software (currently) only searches for downloaded books by confirming an accessible path to said file in the Books sqlite database. If they're on iCloud and not downloaded, they won't show up in Alfred Books! If you have any issues whatsoever using this software, or if you have recommendations for features, please visit: https://github.com/codycodes/alfred-books/issues
  5. 2 points
    Bloody hell. That was fast!
  6. 2 points
    Thanks @Andrew for your excellent support, and @waitingforgo for your tests!
  7. 2 points
    ? keyword lets you effectively search Alfred. However it does strict search so you are forced to start search query with how the actual workflow name starts. No fuzzy searching is supported. It would be awesome if ability to fuzzy search through results was added. Thank you.
  8. 2 points
    ibnuh

    Character & Word Counter Workflow

    Github Repo: https://github.com/ibnuh/alfred-character-counter-workflow Character & Word Counter for Alfred An Alfred Workflow that count character & word for you Installation Download from Release 1.0 Usage Keyword: cw Development Clone the repository Open your favourite terminal composer install Credits Icons by flaticon.com PHP helper class for Alfred Workflows by joetannenbaum/alfred-workflow
  9. 2 points
    Wangyou Zhang

    Simplify fractions

    I write a workflow for converting a given decimal to a simplified fraction as well as simplifying a given fraction. It saves me a lot of time and I hope it is useful for you too. Download You can download the workflow file from my GitHub. Examples frac .11 ==> .11 = 11 / 100 frac 4/6 ==> 4/6 = 2 / 3 frac -1.4/2.2 ==> -1.4/2.2 = -7 / 11 frac 1.2/0 ==> Error: divided by zero. frac b/3 ==> Error: Invalid input format ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Update 7 additional math tools are added and the new workflow is renamed to MathTools. 1) Simplify fractions Examples: frac .11 ==> .11 = 11 / 100 frac 4/6 ==> 4/6 = 2 / 3 frac -1.4/2.2 ==> -1.4/2.2 = -7 / 11 2) Greatest common divisor Examples: 3) Least common multiple Examples: 4) Simplify surds Examples: sqrt .0144 ==> √(.0144) = 3/25 = 0.12 sqrt 4 8/81 ==> ³√(8/81) = (2/3) ³√(1/3) Note: 5) Log functions Examples: log 5 ==> log₁₀(5) = 0.698970004336 log2 1.0001 ==> log₂(1.0001) = 0.000144262291095 ln e ==> ln(e) = 1.0 Note: 6) Prime factorization Examples: factor 100 ==> factor(100) = [1, 2, 2, 5, 5] factor 31 ==> factor(31) = [1, 31] Note: 7) Permutations and Combinations Examples: C( 4 2 ==> C(4, 2) = 6 c( 1000 3 ==> C(1000, 3) = 166167000 P( 4 2 ==> P(4, 2) = 12 p( 1000 3 ==> P(1000, 3) = 997002000 Note:
  10. 2 points
    Hello Deanishe, Yes, Alfred's clipboard merging feature is great, but you need to decide what you want to paste before to copy your text, which is not always easy.
  11. 1 point
    I saw this has been asked a few times before (e.g. here) but there wasn't a clear answer. Since Alfred 4 is coming soon, I would like to throw this into the pot to see if it might be possible. My brain is getting old. It's hard to remember all the different keywords and hotkeys I've set up. To aid myself I like to be able to use multiple keywords to trigger the same workflow step. Example, I have a workflow for connecting Bluetooth devices, that I trigger using `bt` instead of just "bt" I'd like to add a few more keywords, e.g. "blue", "connect", "audio" etc. I know I can duplicate the script filter opject and connect its Output to the same step—it's a poor man's workaround, but it'd be cleaner and better to allow multiple keywords, such as this:
  12. 1 point
    Mac OS X 10.15 Alfred 4.0.4 [1111]
  13. 1 point
    dfay

    Quick add/edit snippets

    Now live in
  14. 1 point
    If Spark doesn’t support scripting, which seems likely, you might be able to configure this workflow to work with it: https://www.deanishe.net/post/2019/06/workflow-search-in-app/
  15. 1 point
    deanishe

    Ignore keywords for Fallback function

    Sure, but a Fallback Search cannot know if it was intended as a keyword or is actually part of your search query. A workaround would be to create your own Fallback Search trigger in a workflow connected to a Replace utility that removes the first word of the query before passing it to a Open URL action.
  16. 1 point
    AppleScript: tell application “Pages” to quit
  17. 1 point
    What exactly are you asking for?
  18. 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
  19. 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.
  20. 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
  21. 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
  22. 1 point
  23. 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.
  24. 1 point
    I've added a note to look into this for a future build
  25. 1 point
    No reason this couldn’t work as both a file action and a hotkey. The cleanest solution would be to add a new node, similar to a Browse in Alfred Action that adds to the buffer. That way we could make more complex selections, like have a Workflow that does something with some files and sends others to the buffer. It could even have an extra checkbox to Browse in Alfred after adding to Buffer — it it’s off, it just adds to the buffer, if you check it, it opens in the File Actions pane so you can immediately act on them.
  26. 1 point
    I appreciate your well thought out process here, and I agree!
  27. 1 point
  28. 1 point
    Can confirm. It does exactly what it says on the tin.
  29. 1 point
    @mklement0 interesting spot, thanks! It looks like a bug in Dictionary.app as if I type the following into Terminal, I get the same: open "dict://dunbar's number" The best I think I can do to fix this in Alfred is to strip single quotes from the input - I'll do this in the next build Cheers, Andrew
  30. 1 point
    Soulver 3, which was just released a week or two ago, include a Alfred workflow to do just what you wanted .. it works beautifully !
  31. 1 point
    I'm sure the dumb luck is on my end! Ha
  32. 1 point
    dfay

    Moom and launching apps / files

    This is how I've set it up: keyword -> Launch Apps / Files (with my selected files) -> Run Script where the script is Language: /usr/bin/osascript and the script is as follows: tell application "Moom" arrange windows according to snapshot named "MyLayout" end tell This assumes you've set up a Window Layout Snapshot in Moom called "MyLayout" & which is appropriate for the selected files. I've set up custom snapshots on all three of my machines for the optimal workspace layout based on screen size. Since Moom prefs. are local to each machine (and hence customized based on screen size) but Alfred prefs. are synced in Dropbox, this works great. I can use the same keyword on each machine, and get appropriate results.
  33. 1 point
    I hear you. I am a LaunchBar user myself and use its Instant Send heavily. My guess is that 80% of Alfred users do not know what they are missing if they have not experienced LB's Insant Send. Anyway, for now, I have decided to make Alfred the primary launcher (⌘ + Space) and LB secondary (running in the background) just for its Instant Send. The issue with the KM workaround is that it only works for files, not text.
  34. 1 point
    Hi, Latest version can be downloaded from: https://github.com/jaroslawhartman/TimeZones-Alfred https://jhartman.pl/tag/alfred/ http://www.packal.org/workflow/timezones-2 At time of writing, v2.6 is the latest. Best regards, Jarek
  35. 1 point
    foogywoo

    Homekit workflow

    A workflow to trigger Homekit scenes and accessories. https://twitter.com/foogywoo/status/1121606023679229953/photo/1 Download: https://github.com/foogywoo/HKAlfred/raw/master/distribution/HomeKit.alfredworkflow Github: https://github.com/foogywoo/HKAlfred Downside: Homekit still being a private framework on macos SIP needs to be disabled for it to work.
  36. 1 point
    Acidham

    Change Default App for filetype

    Finally fixed a bug that joined the code and added OneUpdater!
  37. 1 point
    dfay

    adding to list filters via Alfred

    you could use the technique here and add a mechanism to update the csv
  38. 1 point
    One other note re Pacmax - the design could be tightened up a lot - there’s quite a lot of white space e.g. on every page there’s a big open area with a horizontal line and then the page title in a huge font, and only below that is the actual content. I’d also prefer one workflow per line in results, rather than needing to read down newspaper columns. And it would be nice to keep the search box in view even when you scroll down (an issue currently exacerbated by the multi column format).
  39. 1 point
    Figured out a way - not sure if it's the "right" way but, it works well enough. I used a couple of bash scripts to validate/filter the input as well as loop & process the output. If you want to have a look... (link removed, scroll down for the new version)
  40. 1 point
    Thanks great work! 🤩 I hope that the Alfred-Creator will implement a automatic solution soon into Alfred.app for Mojave. Workflows will help for now but this is not what it should like to be on macOS 🤔
  41. 1 point
    vitor

    Alfred preferences fails to open

    Not important in this case since @Andrew is already on the case, but as a future tip (and this applies to all software), avoid saying “latest version”, and always say the exact one. When you say “latest” we don’t know if you mean the latest beta or stable version, nor do we know if you’re actually on the newest version. You may think you’re up to date but be mistaken, or might be a version behind because the auto-update hasn’t kicked yet, or we may not be on what we think is the latest version but isn’t, or a multitude of other reasons. It also does not help someone who comes later with the same issue, as they’ll have no idea if their version matches yours.
  42. 1 point
    Thanks anyway, I might go deeper into Swift and try to do it myself.
  43. 1 point
    @mikejandreau Do what @deanishe said: Meaning, put an Argument and Variables Utility node between emailaddress and ticket, and make sure Argument is empty.
  44. 1 point
    nikivi

    What are the most common Alfred hotkeys?

    Mine is set to this: For similar reason as @vitor. GraphQL servers use cmd + space to get suggestions. I never press those keys though so I activate Alfred by either pressing j and l keys together or with a single press of right command (configured with Karabiner). Although I don't often activate Alfred alone as I have everything bound to an external trigger with Karabiner. I really dislike the overhead of keywords and want to activate my stuff fast. Maybe it works for you too. Although it probably is not as common to do it this way. 🙂
  45. 1 point
    The workflow @deanishe suggests is wonderfully simple, and a great place to start - you'll see workflows aren't scary at all Go to the Workflows tab, click the [+] at the bottom of the sidebar and choose Templates > Files and Apps > Launch File Group from Keyword. Give it a name, and click "Create" Double-click the keyword and set it to "anaconda", and give it the title "Launch Anaconda" for example. Save that. Double-click the "Launch Apps" object. Drag in your Anaconda application, and hit save. Now just pop up Alfred and use the newly created keyword to launch the app! Well done, you've created your first workflow. Cheers, Vero
  46. 1 point
    A loving bump from me too – this would be awesome for my workflows!
  47. 1 point
    It's a JavaScript interpreter/platform. It does the same thing as Python and Ruby and Perl, just they are included with macOS. In any case, this workflow won't run without Node… The security issues aren't relevant to workflows, and JavaScript is perfectly safe. The way webbrowsers run it causes the problems. So again, not relevant.
  48. 1 point
    Hello there! Here is a new Mojave & Alfred Theme Switcher workflow intended to work with a collection of theme inspired by the new macOS Mojave UI Accent Colors. With the "theme" command, you can either toggle between the Dark & Light version of your currently selected theme, or switch to another Alfred Accent Color. Just remember to install all the themes if you want to be able to try every variant! I hope you'll enjoy it Preview : Get it here: >>> https://github.com/AlexMartinFR/mojave-alfred-accented-themes
  49. 1 point
    vitor

    Alfred pre-releases?

    Then you’re not really the target for pre-releases and betas. Most improvements are for Powerpack-features, as the free ones are mostly complete. Workflows alone are worth the price of Alfred. If Alfred were nothing more than an interface for Workflows, I’d still be happy. To put it in perspective, the majority of my actions in Alfred are for features that are Powerpack-exclusive, and my stats say I call Alfred over 140 timer per day.
  50. 1 point
    deanishe

    Multi-line regex replace issue

    Not sure this isn't the expected behaviour, tbh. As a workaround, you can use a capture group to keep the newline from the input:
×
×
  • Create New...