Jump to content


Popular Content

Showing content with the highest reputation since 08/22/2018 in all areas

  1. 4 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.
  2. 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
  3. 2 points
    Thanks @Andrew for your excellent support, and @waitingforgo for your tests!
  4. 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.
  5. 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
  6. 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.
  7. 2 points

    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
  8. 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:
  9. 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.
  10. 1 point

    [SOLVED] URL Scheme For Commands?

    Welcome @Uhnnohn, What you’re looking for are External Triggers.
  11. 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
  12. 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
  13. 1 point
    Run browser bookmarklets from Alfred, without needing to having them installed in the browser itself. Note that you may need to Allow JavaScript from Apple Events in your Browser. 1 For the first step, get this template workflow itself. Though this is not strictly necessary (you can build it yourself) it serves as a starting point with most of the work already done. Proceed to open the workflow in Alfred. Next, get a browser bookmarklet to convert by copying its link address. 2 Run :cleanbookmarkletcode to clean the code in your clipboard. It performs substitutions necessary to avoid problems when pasting the code in the next step. 3 Open the Arg and Vars node and paste the code. Extra If you’re not new to Alfred, you likely won’t need these steps as you’ll know what to do. 4 The template includes both a Keyword and a Hotkey nodes to run the code. You can delete either one by clicking on it and pressing ⌫. 5 If you choose to use the workflow via Keyword, do not forget to set it up. 6 Lastly, edit the workflow’s details and its icon. For completeness it’s pre-filled with my details. Feel free to edit them. Download | Source
  14. 1 point
  15. 1 point
  16. 1 point
    ⌥ OPTION KEY + ← ( left arrow ) to remove the last item from the buffer. See Features > File Seach > Buffer for all key combinations.
  17. 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.
  18. 1 point
  19. 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
  20. 1 point
    @nikivi if you update to Alfred's latest 4.0.2 pre-release b1086, you should get the behaviour you're after. Could you let me know?
  21. 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 !
  22. 1 point
    @Jakub Sypiański got it! You mean you would like to see the icon of the workflow instead of the "hat" icon? Good idea, I will take a look at it...
  23. 1 point
    I'm sure the dumb luck is on my end! Ha
  24. 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.
  25. 1 point

    Alfred KAT

    Yeah. Frontend work is not my best work... 😂️
  26. 1 point

    No "action" from a Script Filter

    I don't really follow you here. There isn't any concurrency in the script, is there? So what's the difference to regular synchronous code? You are right there there is not much concurrency here. None of the I/O I'm doing (or currently expect to do) with the websocket would be expected to take very long. However, there is potentially some overlapping I/O going on here. The way the GPMDP websocket API works is that there is a near constant stream of data (presuming a track is actively playing, basically it is the "current time" message), and arbitrarily interleaved in that stream is the response or responses to calls that you might make. The overlapping I/O happening *could* be during the async send and the ongoing async receives going on. Again, I'm not claiming in this simple use case there is a huge gain. After all if I was writing this in sync code, I would just have a common read function that would read messages and discard the ones I wasn't currently interested in, waiting for the desired response before returning it. I am also planning on making use a few of the automatic messages sent over, namely the playlists. So those can be read and queued off until I care about them, and interacting with them would be the same whether they were already present when I go to look for them, or whether I needed to "await" a bit for them to come in. Lastly, I'm planning on pulling down the various bits of album art into a local cache to use as the icon, and that would be nice to run "concurrently". Now I'm all set to just add those pieces in! But first, I'm getting the basics all working so I can control more of my computer using Alfred!
  27. 1 point

    1 Password integration with Alfred

    If by "command", you're looking for a hotkey to bring up the filtered 1Password search only, you can set up a workflow as follows: Hotkey object with a hotkey combo of your choice Connected to a Show Alfred utility Set the Show Alfred utility to the argument "1p " (note the space after 1p) and cursor to the right You can then use your hotkey combo to pop up Alfred with "1p " pre-filled so that you can just start typing the name of the 1Password bookmark you're looking for Cheers, Vero
  28. 1 point

    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.
  29. 1 point

    Change Default App for filetype

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

    Browse Reddit

    Added new NSFW option to include subreddits marked "over 18" in search results.
  31. 1 point
    Ha! Thanks. I didn't realize the environment variable was with Alfred. I was looking for a way to set it system wide on MacOS. No wonder I didn't find this. Works perfectly the way I want now.
  32. 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).
  33. 1 point

    Pocket for Alfred

    Hi guys, this workflow lets you manage your Pocket list with Alfred. Features Actions to copy, visit and archive, archive and delete links from your Pocket list (fn, ctrl, alt and cmd) Hotkey to add new links from Chrome, Safari or your clipboard (ctrl + L) Action to deauthorize the workflow (shift) Background cache refresh Supports notifications Uses OAuth 2.0 to authorize the workflow Saves your access_token securely in OS X's keychain Github: https://github.com/fniephaus/alfred-pocket Download: https://github.com/fniephaus/alfred-pocket/releases/latest/ Feel free to give some feedback! Cheers, Fabio
  34. 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 🤔
  35. 1 point
    @delputnam Apologies for the delay - I had to have a chat with Andrew about this as it's an unusual issue. If you restored the second Mac from the first, including all of your Application Support folder, it's possible that the server UID for each Mac is the same, resulting in Alfred thinking both Macs are the same device. Here's how you can resolve this: Delete all devices from Alfred Remote Quit Alfred on both Macs Navigate in your user directory to ~/Library/Application Support/Alfred 3/ and delete the /Remote/ folder completely on both Macs Restart Alfred and re-connect your devices - each one should now be given its own server UID Let me know how you get on Cheers, Vero
  36. 1 point

    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. 🙂
  37. 1 point
    Hi @Thomas_U, if you select 1Password a couple of times after typing "1", Alfred will learn this is the app you want to prioritise Apple are quite cheeky in the keywords they include in the metadata for iTunes. Here's what's in the metadata: "Music, Radio, Apple Music, Apple Radio, iTunes Radio, Beats 1, Beats One, B1, iCloud Music Library, Apple Music Connect, My Music" Alfred will always learn from your usage, so as long as you pick the 1Password app a few times for that specific keyword, it'll come up first. Cheers, Vero
  38. 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
  39. 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.
  40. 1 point

    Alfred -> DEVONthink

    You mean like this? tell application id "DNtp" set newRecord to create record with {name:"foo", type:text, content:"foo"} in inbox open window for record newRecord activate end tell This creates a document, opens it in a new editor window and sets focus to DEVONthink
  41. 1 point

    Ability to make workflows app-exclusive

    Makes sense. I guess you could also use it to implement identical workflows for different apps (e.g. one for Safari and one for Chrome) that don't step on each other's toes. That can actually already be achieved, though admittedly not without some indirection. Alfred already has all the necessary bits, they're just not in the right places to achieve this directly.
  42. 1 point
    Dark Mode Workflow for Alfred v.0.5 Enable Dark Mode or Light Mode on macOS Mojave using Alfred Download Dark Mode WorkFlow Or Download Dark Mode WorkFlow (Alfred Theme + macOS Mojave) This version includes the ability to switch Alfred theme to Alfred Mac OS and Alfred MacOS Dark. Install Double click on the "Dark Mode Workflow for Alfred 0.5.alfredworkflow" workflow that you have just downloaded. More info: https://www.alfredapp.com/help/workflows/ Usage use darkmode to enable Dark Mode use lightmode to enable Light Mode use togglemode to toggle between Dark Mode and Light Mode Optional Within the WorkFlow settings in Alfred, you can add your custom Hotkey to trigger the three commands License MIT © 2018 Miko Magni
  43. 1 point

    How do I call for the "iCloud Drive" folder?

    I have added a keyword to do this in Finder scripts - basically it activates Finder then calls the keystroke for iCloud Drive
  44. 1 point

    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.
  45. 1 point

    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:
  46. 1 point

    Clipboard - paste as plain text

    Would it be possible to enhance the power pack clipboard feature to provide this as an option, possibly by holding an additional key, for pasting from the history? If I'm not mistaken, using the template suggested above doesn't provide any history capability (which is the great feature of the power pack).
  47. 1 point
    I really like the idea of Alfred managing my text snippets (I'm using a separate app for that so far). However, when trying to migrate, I found that Alfred has no option to expand snippets only when typed as a entire word, i.e. trigger the expansion only after the snippet keyword has been terminated by a space or newline or tab. That's a feature available in most text expanding utilities I know, and if Alfred had it too, that would be great! For now, I can include a space in the keyword, which is the most common case. Entering a tab or newline in the keyword field does not work (obviously).
  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
    Hi there, if possible could you run the following command in Terminal and PM me the output? ioreg -l -n AppleSmartBattery -r
  • Create New...