Jump to content


Popular Content

Showing content with the highest reputation since 01/18/2019 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
    Great workflow. Its replacing a previous one, One recommendation. I would either add another script filter to include all skin tones or modify your script to include `["./uni", "-q", "emoji", "-tone", "all", query]).decode()` I did that because I like to see all tones. I also added a Auto Paste + Transient in Clipboard and No Auto Paste + Transient in Clipboard
  3. 2 points

    Alfred 1Password Search

    Another Workflow to search 1Password items and open in 1Password. Download on Git
  4. 2 points

    Add keyword action to update Alfred

    It would save you a handful of seconds per month, Niki…
  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
    Bloody hell. That was fast!
  7. 2 points
    Thanks @Andrew for your excellent support, and @waitingforgo for your tests!
  8. 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.
  9. 1 point
    Is it possible to use the same key combination in different hotkeys when they're assigned to different apps? In other words, can I assign the same combination of keys to different apps (by adding the app to the Related Apps panel of the hotkey, and selecting the option that only activates it when the app has focus)? This is something that has always confused me about Alfred, so I wanted to check to see if I was doing something wrong. From what I can tell, Alfred won’t let you assign the same key combination to more than one hotkey - even when they only operate when different apps have focus. To get around this issue, a long time ago, I stopped adding hotkeys directly in Alfred and started adding External Triggers that I assign to a keyboard shortcut in the Better Touch Tool app. But this has always struck me as odd. Am I doing something wrong here? Is this possible in Alfred? Thanks for your help!
  10. 1 point
    @Jasondm007 I'm not sure you'll ever see Alfred as a frontmost app, as he is configured as an LSUIElement. That focus mode changes Alfred's underlying window style mask, making the window non-activating. You can see the effect of this option as soon as you change the option without even closing Alfred Preferences, or the Appearance > Options sheet. Show and hide Alfred, and when in Standard Mode, showing Alfred doesn't make Alfred Preferences lose focus. Switch to compatibility, and showing Alfred makes the Alfred Preferences window lose focus (fade out). Cheers, Andrew
  11. 1 point
  12. 1 point
    If an app or website doesn’t meet Goole's security standards, Google might block anyone who’s trying to sign in to your account from it. So, SMTPAuthenticationError exception thrown when you attempt to login to Gmail via Python smtp library. Less secure apps can make it easier for hackers to get in to your account, so blocking sign-ins from these apps helps keep your account safe. Go to this link and select Turn On https://www.google.com/settings/security/lesssecureapps Moreover google block an ip when you try to send a email since a unusual location, so, you can unblock in the next link https://support.google.com/accounts/answer/6009563 and clicked in accounts.google.com/DisplayUnlockCaptcha .
  13. 1 point

    Search Apple/iCloud Notes

    I've created a workflow to find and open Apple/iCloud notes in Notes.app. Get it on Packal and feel free to open issues/make pull requests on GitHub.
  14. 1 point
    I found this answer from Alfred. This behavior is deliberate. Many users told us that Typinator made unwanted replacements in this situation and asked NOT to expand abbreviations in Alfred's search window. For this reason, we have made this the default behavior in Typinator 8.0. However, you can revert to the previous behavior with a hidden setting. To do so, execute the following command in Terminal: defaults write com.macility.typinator2 expandInAlfred 1
  15. 1 point
    @luckman212 this should now be sorted in the 4.0.7 pre-release
  16. 1 point

    Converting Files (PDF to JPEG)

    Not directly, no. Alfred is a launcher, not an automation app. It is designed to run things when you tell it to, and its native integration with other applications generally doesn't extend beyond telling them to open things, and in some cases, allowing you to search for the thing to open (e.g. 1Password or browser bookmarks). Alfred can run your Automator workflow for you, though. Or an AppleScript (or shell script etc.). But essentially, if you want to do more than just open something, it's up to you to first write the script/Automator workflow to do what you want, and then tell Alfred how you'd like to run it (keyword/hotkey).
  17. 1 point
    Mac OS X 10.15 Alfred 4.0.4 [1111]
  18. 1 point

    Quick add/edit snippets

    Now live in
  19. 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/
  20. 1 point
    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.
  21. 1 point

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

    How to manage open with dialog?

    Is there any way to do that other than by editing the application's info.plist? I mean, you can tell macOS to always open a specific filetype with an application, but you can't do that with folders AFAIK.
  23. 1 point
    What exactly are you asking for?
  24. 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.
  25. 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
  26. 1 point
  27. 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.
  28. 1 point
    ⌥ OPTION KEY + ← ( left arrow ) to remove the last item from the buffer. See Features > File Seach > Buffer for all key combinations.
  29. 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
  30. 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.
  31. 1 point
  32. 1 point
    Can confirm. It does exactly what it says on the tin.
  33. 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
  34. 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 !
  35. 1 point
    I'm sure the dumb luck is on my end! Ha
  36. 1 point
    @antil I think you may be entering your older v2 single license into the upgrade page. If you enter your newer v3 mega upgrade license into that page, you'll get your free v4 upgrade If you have any issues finding your newer license, take a look in Alfred 3's Powerpack prefs to view your license, or pop an email to our info@ address and Vero will help you out! Cheers, Andrew
  37. 1 point

    [SOLVED] Launch apps as sudo? Possible?

    Still, it is possible (even if a terrible idea) with sudo --stdin /Applications/Marta.app/Contents/MacOS/Marta <<< PASSWORD_HERE.
  38. 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!
  39. 1 point

    Browse Reddit

    Added new NSFW option to include subreddits marked "over 18" in search results.
  40. 1 point

    adding to list filters via Alfred

    you could use the technique here and add a mechanism to update the csv
  41. 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).
  42. 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)
  43. 1 point

    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
  44. 1 point
    Ah sorry @vitor, I read your post too fast and thought you suggested System Preferences -> Dock -> Prefer tabs when opening document -> Always I now remember why this particular setting was a no-go for me: If I have multiple SublimeText windows open, and I relaunch the app, all windows are combined within one, meaning that I have two levels of tabs open. This is actually a really cool feature, if it was supported by SublimeText, but it isn't. This means that I have no way of recombining separate windows except for relaunching the app, cause *all* windows to recombine. As for: Finder Preferences → General → (tick) Open folders in tabs instead of new windows. - unfortunately, this doesn't even work for me. It makes no difference how this setting is set; Finder will always open folders in a new windows, regardless of whether I use Spotlight search or Alfred. Does it work for you?
  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
    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.
  47. 1 point
    To allow Unicode characters: set the clipboard to "{query}" as text tell application "Calendar" to activate tell application "System Events" keystroke "n" using {command down} keystroke "v" using {command down} keystroke return end tell Note that we're side-stepping the text entry by simply pasting the Unicode string into the field that is already selected.
  48. 1 point
    Since you are new to Alfred 2, let me explain the difference in case it wasn't already obvious. A run script (with the language set to bash) is the same as running the command from the terminal except it runs it in the background with no new windows popping up. Terminal command will launch a terminal window and run the command in that new window. If a command works normally in a Terminal Command item, then it should work normally as a Run Script with the language set accordingly as long as the script isn't reliant upon something in your profile settings or environment variables. Alfred doesn't import your environment so, if you have environment variables set that the script would need access to, these would need to be brought into Alfred. Also, paths in Alfred are relative to the folder that the workflow is stored in. So if you needed to access something in your documents folder, you wouldn't just use "cd Documents" assuming that you started in your home directory, you would have to specify full path to your Documents folder.
  • Create New...