Leaderboard


Popular Content

Showing most liked content since 04/27/2017 in all areas

  1. 10 likes
    Here's another little tool I've just whipped up: Get an instant list of the current time in various cities around the world. Which you can customize, of course. Main keyword: tz (for TimeZones) - this just shows the World Clock list (seen above). (Select a city for a Large Type display.) To remove a city from the list - option-select it. To add a new city - timezone add Name of City To update all cities' timezone offset information - timezone update To look up the time in a place without storing it (custom loookup), just keep typing the place name after the initial tz (eg. tz timbuktu) To move the location of your stored city list - timezone move Download v1.7a This workflow saves a list of your cities and their UTC offsets locally, so the basic world clock will display instantly. Adding new city information is done via an API call to Google Wolfram Alpha. The only downside to locally cached offsets is that there's no provision for automatically updating for Daylight Savings changes, but a manual timezone update will refresh all the cities with their current offset. Enjoy. As usual, I welcome comments, bug reports, feature requests, etc. ---- 28 March 2013 - UPDATE to v1.5 Major rewrite - now uses Google Maps APIs, which should be a lot more reliable and consistent. Flag icons! Bit of eye candy, courtesy of http://www.free-country-flags.com (and managed to squeeze flags for every country in the world into just over 400k - thank you TinyPNG ) More detail retrieved and displayed, including timezone name, country, etc. When doing a full "update", a text file is saved to your Desktop summarising any changes found. General enhancement and tweaks. PLEASE NOTE: Because this version stores its data substantially different to previous versions, it will create a new timezones.txt file with default cities. However, it will attempt to save your old timezones.txt file to your Desktop, so you should be able to rebuild your previous list without too much hassle. A quick note about the flags: The workflow simply compares the retrieved name of the country and does a simple name match against the workflow's local repository of flag icons. From my testing, it's working very well, but I'd appreciate it if you'd report back if you find any countries that don't properly match a flag icon. Cheers. ---- 31 March 2013 - UPDATE to v1.6 New feature: Custom lookups. Just keep typing a new place name after the tz keyword to look up the time in a place without saving it to your saved list. Added support for phyllisstein's Alleyoop auto-updater. [EXPERIMENTAL] - support for autocomplete for adding place names (timezone add). You'll need to add a keyword yourself to the script filter if you want to try it out. The reason I haven't enabled it by default is that I've found it kind of slow and I'm not sure it's actually an improvement over the current method. Let me know what you think. [Add a keyword to this script filter if you'd like to try it out] Novelty: Added (unofficial) Antarctica flag to flag repository. (Try tz south pole. ) ---- 2 April 2013 — UPDATE to v1.61 Small fix for Dutch (Netherlands) flag matching. ---- 22 March 2014 — UPDATE to v1.7 City List now always shows in the same order. (Achieved by removing “uid” parameter.) Removed Alleyoop updater. ---- 22 March 2014 — UPDATE to v1.7a New 256x256px icon
  2. 10 likes
    Big update, cleaning out all the old stuff! Lots of wonderful minimal themes on here, but I think this is the minimalist. Minimalist details: We only show the path for the selected item (which is basically how you read these details anyway) That also makes it easy to see which item is selected so we don't need a highlight! Keyboard shortcuts for matches (e.g. "⌘4") are harder to use than just up/down+enter, so I hid those Uses the light weight of the system font (San Francisco) for that native, readable feel Looks best with a medium amount of blur Available in a wide array of colors Downloads listed below, preview images beneath (I'm not sure how to show images inline any more…): Almost white: http://cozy.es/PRYr Almost black: http://cozy.es/eBRP Almost alizarin: http://cozy.es/WjeE Almost asbestos: http://cozy.es/4Jul Almost carrot: http://cozy.es/NyKn Almost clouds: http://cozy.es/QyXj Almost emerald: http://cozy.es/AxKm Almost midnight: http://cozy.es/qnEA Credit to flatuicolors.com for the colors. Best with these appearance settings. Enjoy, and let me know how these work for you. Thanks!
  3. 5 likes
    I have re-implemented ctwise's excellent implementation of the Menu Search workflow in Swift. This version is ever so slightly faster (at least on my machine ) - YMMV. Requires OSX 10.7+ Download Setup Accessibility must be enabled for Alfred in order for this to work properly. For example, in macOS Sierra, this is configured using the Security and Privacy preference pane, under the Privacy tab with the Accessibility section selected. Alfred must be included in the list of apps allowed to control your computer. This step is required for the workflow to generate the list of menu items, and also click on a specific menu item. Here's a snapshot of what the preference pane might look like in macOS Sierra. Usage Type m in Alfred to list menu bar items for front most application You can filter menu items by name, or do a fuzzy search. E.g m new tab will match the menu item New Tab m cw will match the menu item Close Window Settings You can change the workflow environment variables to fine tune menu listings -show-disabled true/false controls if diabled menu items should be shown (default is false) - change this setting if certain items are not displayed, even though active -show-apple-menu true/false if true, menus items under the apple menu will be shown (default is false) -max-children number how many sub-menu items to load for each menu item (default is 30) -max-depth number how many nested levels if sub menus should be listed (default is 10) v1.6 and above You can also have customised settings per app. Typing ms into Alfred will give you a list of options to configure your settings.txt config file. The workflow comes bundled with a sample configuration file for reference. Your app settings will override any workflow level variable settings you may have specified. Here's the settings file I use for reference: # always show disabled menu items appFilters { app: "BibDesk" showDisabledMenuItems: true } # for Safari, ignore the History and Bookmarks # menus since loading it take a lot of time appFilters { app: "Safari" ignoreMenuPaths { path: "History" } ignoreMenuPaths { path: "Bookmarks" } } # For Finder alone, show the Apple menu entries, # and ignore any recent entries listed in the # Apple > Recent Items menu appFilters { app: "Finder" showAppleMenu: true ignoreMenuPaths { path: "Apple" path: "Recent Items" } } Change log 1.0 - Initial Release 1.1 - Added Fuzzy Text Matching for Menus If you have a menu item New Tab, then typing m nt in Alfred will match New Tab, since n and t matches the first letters of the menu text. 1.1.1 - Changed run behaviour to terminate previous script, this makes the experience slightly more faster 1.2 - Completely native menu clicking, removed reliance on AppleScript 1.2.1 - Performance improvements when generating menus using direct JSON encoding 1.2.2 - More performance improvements while filtering menu items 1.3 - Added -async flag to allow threaded scanning and populating of menus 1.4 - Added -cache setting to enable menu result caching and also set a timeout for cache invalidation 1.4.1 - Invalidate cache (if present) after actioning a menu press 1.4.2 - Slide the cache invalidation window forward in case we get invalidated by a near miss 1.4.3 - Speed improvements to caching, text search and fuzzy matching 1.4.4 - Added -no-apple-menu flag that will skip the apple menu items 1.4.5 - Tuned fuzzy matcher, allows non-continuous anchor token search 1.5 - Faster caching using protocol buffers 1.5.1 - Reduced file creation for cache storage 1.5.2 - Better support for command line apps that create menu bar owning applications 1.5.3 - Protocol buffer everything - microscopic speed improvements, but hey... 1.5.4 - Added various environment variables to fine tune menu listings 1.5.5 - Tweaked ranking of search results for better menu listings 1.6 - Per app customization via the `settings.txt` configuration file
  4. 5 likes
    There is a bug in my (unofficial) Alfred-Workflow library that causes very many workflows using it to hang quite dramatically on Sierra. If you are affected (i.e. you see Alfred's CPU usage spike to 100%), Activity Monitor will show two Python processes like this (choose View > All Processes, Hierarchically), with the bottom one at ~99% CPU (this screenshot is actually of a non-misbehaving workflow): Download and run this workflow, which will update any old versions of Alfred-Workflow in your installed workflows. That should get your workflows working again until the workflow developers can push official fixes.
  5. 4 likes
    Movie and TV Show Search Search for movies or tv shows and get general info and ratings from various sites. UPDATE May 23, 2017 - Bummer! This workflow is no longer functioning as the API (OMDb) that it relies on for movie ratings has gone private. If you are willing to support the OMDb API, you can purchase an API key. It shouldn't be too difficult to append your private API key in the code to get the workflow working again. Good luck! Features Get movie/tv show runtime, genre, MPAA rating Get ratings from IMDb, Rotten Tomatoes, Metacritic (if available) Show a link to a trailer (if available) Show a few credits Download Get the workflow from Packal. Usage Type 'movie' and the title you'd like to search for. Select item (ENTER) to get movie info. Type 'tv' and the title you'd like to search for. Select item (ENTER) to get show info. Thanks Thanks to deanishe for Alfred-Workflow. Uses TMDb and OMDb APIs for info. Changelog 2.3 (2015-07-30) - Add RottenTomatoes audience score 2.2 (2015-05-01) - Open YouTube trailer (if available) when choosing to search all rating sites - Friendly message when internet connection isn't working properly 2.1 (2015-01-28) - added menu item to search all rating sites at once - added script behaviour queue delay (requires Alfred 2.6 or higher) - fixed rotten tomatoes search 2.0 (2015-01-20) - added tv show search - fixed issue with quick look not working for some items - removed tiny poster icon (didn't like the squishing and there was an issue with caching the icon in Alfred) 1.3 (2015-01-16) - removed argparse reference (and setting personal TMDb API key functionality) - updated alfred-workflow library to latest (v1.11.0) - fix/tidy up string encoding issues - error handling fixes 1.2 (2015-01-11) - show tiny poster in movie details listing - generate sexy html file for when first item in details listing is selected - add fallback search item (must be added manually in Alfred preferences > Features > Default Results > Setup fallback results) 1.1 (2015-01-10) - Add default TMDb API key 1.0 (2015-01-10) - Initial release This workflow is released under the MIT Licence.
  6. 4 likes
    Allows you to open any address in the Apple Maps application. Basically anything you can enter anything you would enter in the Maps query filed. You can also enter directions between two destinations be simply connecting the two locations with the word "to." For example, to get directions you would type "map los angeles to new york." To get a specific address you would simply type "map buckingham palace" Click here to download.
  7. 4 likes
    Libraries/Frameworks Python: Alfred-Workflow, by @deanishe Go: goAlfred, by @raguay.customct Haskell: AlfredLibraryInHaskell, by @raguay.customct Swift: Alfred Swift Library, by @raguay.customct Node.js: Alfy, by @sindresorhus Workflow templates Convert Excel spreadsheet to Workflow: I Sheet You Not, by @deanishe Convert JavaScript browser bookmarklet to Workflow: AlfredBookmarklet, by @vitor Utilities/Components Add auto-updating to your Workflow: OneUpdater, by @vitor Support multiple browsers: Get frontmost tab’s url and title of various browsers, by @vitor Workflow management Workflow searching: Packal.org Alfred Workflow Search, by @deanishe Not Workflow related iTerm2 intergration: custom-iterm-applescripts-for-alfred, by @stuartcryan This list replaces the old one. Most of the libraries on that list are either abandoned or incredibly outdated. While they might still work, they might also work poorly with Alfred 3 or have been obsoleted by it. All the libraries on this list are (at the time of the last edit) up-to-date and their developers are either still supporting them or forum regulars. That means any problems you find and suggestions you have are likely to be addressed. If there’s any library you think belongs in (or should be removed from) this list, leave a reply below. I’ll evaluate it and then delete your comment (so the thread can be kept tidy).
  8. 3 likes
    openthesaurus - Alfred v2/3 Workflow Alfred v2/3 workflow for searching for synonyms on openthesaurus.de. Usage: Type ot <keyword> and get a list of german synonymous. Enter will copy the word to your clipboard. CMD Enter will search the word on duden.de with a description. Download & Installation: Click here for the ready to use .alfredworkflow file. Simply download the file and execute it for automagical install in Alfred. The source can be found at Github. Your feedback is very welcome - let me know what you think about it! Greetings Andreas
  9. 3 likes
    Generate relative dates based on a simple input format and your own date formatting parameters (there are some default placeholders you can delete). Supports multiple locales/languages. Downloading Get the workflow from GitHub. Keywords date — Generate a formatted date using the [input format][] ↩ — Copy date to clipboard ⌘+↩ — Copy date to clipboard and paste into frontmost app datehelp — Open the help file dateformats — View saved date formats ⌘+↩ — Delete date format dateadd — Add a new date format ↩ — Save the date format datereset — Reset the saved date formats to the defaults Input format (+/-)<NUM>(w|d|y) where w = week(s), d = day(s) and y = year(s) You needn't specify a sign: + is understood as the default, so +1d and 1d mean the same thing. Months are not supported, as it leads to ambiguity: what if today is the 31st, but the target month only has 30 days? Similarly, a year is naively defined as 365 days. Examples 0 = now = today — today's date 1d — 1 day from now 7d = 1w — 1 week from now -21d = -3w — 3 weeks ago Supported formats The Workflow includes a few defaults for the locales en_US, en_GB and de_DE. You can specify your own custom date formats using the formatting options listed at the below links, and you can also specify a language with the format lang=de or lang=de_DE if you want to use dates formatted for a language different to your system's. For a list of the formatting options, please see the GitHub page or the Packal page. Examples %d/%m/%Y — e.g. 21/01/2014 %A %B %d %Y — e.g. Wednesday March 12 2014 %A %d. %B %Y lang=de — e.g. Mittwoch 12. März 2014 Bug reports, feedback Report any issues or feature requests either on GitHub or in this thread. Licensing, thanks etc. This Workflow is released under the MIT Licence. It uses the docopt library.
  10. 3 likes
    I Sheet You Not Create auto-updating workflows from Excel worksheets. Works like a List Filter but using an Excel file as the data source. I Sheet You Not is a workflow generator/template for Alfred 3. It reads data from an Excel workbook and displays them in Alfred. You can specify which rows and columns the data are read from, and changes to the data are picked up automatically by the workflow. Download and installation Download the workflow from Packal or GitHub releases and double-click the downloaded I-Sheet-You-Not-X.X.X.alfredworkflow file to install in Alfred. Usage Use keyword isyn to create a new copy of the workflow. You can either create an empty copy or search for an Excel file to base the workflow on. See the documentation for detailed usage/configuration instructions. Source code The source is hosted on GitHub. Bugs and feature requests Bugs and feature requests should ideally be submitted via GitHub issues, but asking in this thread is cool, too.
  11. 2 likes
    Get ratings from metacritic for different types of media. Supports movies (movie), games (game), TV shows (tv), and music albums (album). Download | Source
  12. 2 likes
    The theme I started using after switching to version 3. Três Mil
  13. 2 likes
    The workflow is working again. Updated the workflow and moved to other github repo!
  14. 2 likes
    What @xilopaint said. "Python" apparently points to Python 3. Which is confusing because the macOS Python is Python 2. Better to use "Python 3" for Python 3. "Python" should point to the Python 2 docs. That's the system Python and what any python executable is. Python 3 binaries are called python3.
  15. 2 likes
    Python is lacking a subtitle: Additionally, I would split Python 2 and 3.
  16. 2 likes
    I wrote a workflow in ruby to convert currency. Requires Alfred v3. Github Download Features: Support 30+ currency units with fixer.io. Basic support for sign. e.g.,$,¥,£,etc. Customizable displayed currency units and base unit. Input once to get all result. Usage: Tap 'cy' to get latest exchange rates. Tap 'cy money' to get exchanged result. You can press enter to send the result to the clipboard. Tap 'add-cy', 'remove-cy' to customize displayed currency units. Tap 'base-cy' to set base currency unit. Hope you like it.
  17. 2 likes
    The current version of the workflow didn't have support for apparent ("feels like") temperatures; I've added that to version 1.3.0. Regarding the discrepancy between hourly and daily forecast, that happens sometimes. The workflow isn't actually interpreting the data to generate the forecast text; the text comes directly from the service (Dark Sky or Weather Underground). Sometimes the textual descriptions may not appear to agree with the hourly data. You can double check the workflow by visiting the relevant service (Dark Sky or Weather Underground) and double checking that what the workflow says agrees with a forecast for your location (or whatever location you were checking with the workflow).
  18. 2 likes
    I am very happy using Glosbe translation workflow http://www.packal.org/workflow/glosbe-translation out of the box, it is ready for english/german translation ende word - will translate from english to german deen word - will translate from german to english but it was very easy to customize the workflow to add new languages, so now I have also enit word - english to italian iten word - italian to english and more... hope it helps, Giulio
  19. 2 likes
    @cands BibDesk (programatically) reports all menus items under "Copy As..." to be inactive and disabled always. This is the reason why menu search is not able to pick up the sub menu items. One workaround possible to to display all menu items (enabled or not) - but this means that if a menu item is truly disabled, actioning that from Alfred will not have any effect, and you will not be able to know beforehand if the item is indeed disabled or not. The workflow will blindly list all available menu item entries. If you download and update the workflow to version 1.5.4, I have included some environment variables to control the default menu listing. In your case, because of BibDesk, you may want to set the value of "-show-disabled" to true. Note that this will affect all menus across all apps. I'll attempt to come up with a better solution, but not very hopeful at the moment.
  20. 2 likes
    Alfred Git Repos Workflow Browse, search and open Git repositories from within Alfred. Download Get the workflow from GitHub or Packal. Usage This workflow requires some configuration before use. See Configuration for details. repos [<query>] — Show a list of your Git repos filtered by <query> ↩ — Open selected repo in app_1 (see configuration) ⌘+↩ — Open selected repo in app_2 (see configuration) ⌥+↩ — Open selected repo in app_3 (requires configuration) ^+↩ — Open selected repo in app_4 (requires configuration) ⇧+↩ — Open selected repo in app_5 (requires configuration) fn+↩ — Open selected repo in app_6 (requires configuration) reposettings — Open settings.json in default JSON editor reposupdate — Force workflow to update its cached list of repositories. (By default, the list will only be updated every 3 hours.) reposhelp — Open this file in your browser Configuration Before you can use this workflow, you have to configure one or more folders in which the workflow should search for Git repos. The workflow uses find to search for .git directories, so you shouldn't add huge directory trees to it, and use the depth option to restrict the search depth. Typically, a depth of 2 will be what you want (i.e. search within subdirectories of specified directory, but no lower). Add directories to search to the search_dir array in settings.json (see below). The default settings.json file looks like this: { "app_1": "Finder", // ↩ to open in this/these app(s) "app_2": "Terminal", // ⌘+↩ to open in this/these app(s) "app_3": null, // ⌥+↩ to open in this/these app(s) "app_4": null, // ^+↩ to open in this/these app(s) "app_5": null, // ⇧+↩ to open in this/these app(s) "app_6": null, // fn+↩ to open in this/these app(s) "global_exclude_patterns": [], // Exclude from all searches "search_dirs": [ { "path": "~/delete/this/example", // Path to search. ~/ is expanded "depth": 2, // Search subdirs of `path` "name_for_parent": 1, // Name Alfred entry after parent of `.git`. 2 = grandparent of `.git` etc. "excludes": [ // Excludes specific to this path "tmp", // Directories named `tmp` "bad/smell/*" // Subdirs of `bad/smell` directory ] } ] } This is my settings.json: { "app_1": "Finder", "app_2": ["Finder", "Sublime Text", "SourceTree", "iTerm"], "app_3": "Sublime Text", "app_4": "SourceTree", "app_5": "iTerm", "app_6": "GitHub", "global_exclude_patterns": [], "search_dirs": [ { "path": "~/Code" }, { "path": "~/Sites" } ] } Search Directories Each entry in the search_dirs list must be a mapping. Only path is required. depth will default to 2 if not specified. excludes are globbing patterns, like in .gitignore. name_for_parent defaults to 1, which means the entry in Alfred's results should be named after the directory containing the .git directory. If you want Alfred to show the name of the grandparent, set name_for_parent to 2 etc. This is useful if your projects are structured, for example, like this and src is the actual repo: Code Project_1 src other_stuff Project_2 src other_stuff … … Open in Applications The applications specified by the app_N options are all called using open -a AppName path/to/directory. You can configure any application that can open a directory in this manner. Some recommendations are Sublime Text, SourceTree, GitHub or iTerm. Note: As you can see from my settings.json, you can also set an app_N value to a list of applications to open the selected repo in more than one app at once: … "app_2": ["Finder", "Sublime Text", "SourceTree", "iTerm"], … You can also use → on a result to access Alfred's default File Actions menu. License, Thanks This workflow is released under the MIT Licence. It uses the Alfred-Workflow and docopt libraries (both MIT Licence). The icon is by Jason Long, from git-scm.com, released under the Creative Commons Attribution 3.0 Unported Licence.
  21. 1 like
    You'll need to update the URL to my library, as I've renamed the server to git.deanishe.net now I'm using Gitea, not Gogs: https://git.deanishe.net/deanishe/awgo
  22. 1 like
    @FroZen_X I'm working on it in my spare time, but I didn't find a good and reliable way to switch to the window on a different desktop. But it is on my todo list, I use a few spaces occasionally.
  23. 1 like
    Hi @mrchow19910319 Can Spotlight find the app? It's likely that you need to rebuild your Mac's index, as latest macOS update may have caused some corruption to your metadata index. To rebuild your Mac's index, go to Alfred's Advanced preferences, press the "Rebuild macOS metadata" button and follow the instructions in Terminal. Be sure to check the box to "Delete /.Spotlight-V100" when it pops up. The reindexing can take up to an hour, and on completion, you'll need to type "reload" into Alfred to refresh the application cache. You should then be finding all your apps as expected Cheers, Vero
  24. 1 like
    Great to know, @boddicker! And thank you for the nice words.
  25. 1 like
    This is such a great workflow, vitor. Thanks for making such great stuff. I'm now using it for Slicereader. A couple of years ago I wasn't able to get it to work, but the updated workflow makes it magically work. Now, when I want to read an article online, all I have to do is trigger Alfred, type 'read', then Slicereader opens and I can concentrate and read. Now I just wish Slicereader imported GIFs in addition to text/images.
  26. 1 like
  27. 1 like
    What matters to me is the notification at the time it appears, not how it looks in the notification center. And there, the difference is not subtle at all. It’s the difference between looking native or looking like it was called by another application. I want it to look native. I don’t care at all about the icon on the right side because that’s not what identifies an app.
  28. 1 like
    I created a compact dark solarized theme to match my iTerm colors, so I thought I'd share it in case someone else was looking for the exact same thing! Theme: VVV Dark Solarized (Compact)
  29. 1 like
    If you want it to happen automatically when some event (plugging the monitor) occurs, then Alfred was never the way to go. By design, Alfred needs to be specifically called. That’s an explicit feature, not a limitation. There may be a way to auto-detect when a monitor is plugged in, yes, but you should ask on Ask Different.
  30. 1 like
    I have been using Alfred for switching between different apps for a long time. I have also found multiple desktop a useful way to cleanly separate different projects and have all the necessary apps, browser tabs etc. open for the different projects. However I have always been super annoyed with how macOS decides to auto switching between desktops when switching apps (or more precisely showing hidden applications). Today I found a solution: https://discussions.apple.com/thread/4995042?tstart=0: defaults write com.apple.dock workspaces-auto-swoosh -bool NO killall Dock I can finally use multiple desktops without frustration. My deepest thanks goes out to whoever shared this originally (the link in the thread above seems to be dead).
  31. 1 like
    Basically it looks like you're trying to reinvent the wiki, and honestly I think you'd do much better to use an off-the-shelf solution like WIkidot, where all this infrastructure is taken care of for you and you can concentrate on content. Wikidot has a decent API & it would be pretty easy to build a workflow that queries it. Or you could use mediawiki & adapt the existing Wikipedia workflows.
  32. 1 like
    Again, you’re taking the long route. You’re overcomplicating. You are already pushing your workflow updates to Github, just push the compiled workflow as well. Its download link won’t change, like it does with Dropbox. Dropbox sucks for this, and it’ll just keep sucking more. They are incredibly and increasingly hostile to hotlinking. At this point in time (and likely in the future) Dropbox sucks for distributing software. And they know it. They crippled those features on purpose.
  33. 1 like
    A few lines of Python in the REPL. If I were you, I'd rename the folders and markdown file to match the category names, then write a script to generate JSON files that can be fed straight into Alfred via Script Filters. No need to update the List Filter that way, and no unnecessary parsing of Markdown files on every run.
  34. 1 like
    First of all, delete all those Script Filters. Instead of keywords, put the paths of the Markdown files in your List Filters and connect them to one Script Filter, not dozens. Like this. The way you're doing it is crazy. Your screencasts are far too fast to follow. You're supposed to be showing me something, not trying to break records. I also can't really figure out which List Filters you're using because you're using Hotkeys, not keywords. At any rate, as best as I can tell, the workflow works just fine for me.
  35. 1 like
  36. 1 like
    Hi, Yesterday I updated Alfred to the latest version of Alfred (3.3.2) as I wanted to get rid of the little bug I encounter every time I expand a snippet for the first time of my session. Alfred either expands the latest clipboard item or if the text of my snippet is "Alfred", Alfred expands "AAlfred".
  37. 1 like
    {query} in the custom search refers to what you've typed into Alfred - you can type in a comma-separated list of terms, and it will search for each term, just as if you had typed it into the ngrams search box. Here are the directions for creating a custom search : https://www.alfredapp.com/help/features/web-search/ - basically you need to click the Add Custom Search button and paste the URL I provided above. It's really not hard to do, and well worth looking at so you can try the solutions other people have provided (preferably before saying they don't work....) even if you are not going to be creating your own custom searches.
  38. 1 like
    Of course, I should have known that! thanks vitor!
  39. 1 like
    When I use « snip » keyword (and a short text start) to see my snippet list, the snippet list appears with some CMD + N keystroke. I use this list when I forget my keyword so, in this list, I'd like to see my keyword too, for memory refresh (see the pict).
  40. 1 like
    I use it in Alfred file actions, mostly (I can't think offhand of any conventional workflows where I use it....). e.g. I have a file action "Move to Dropbox tagging current" which runs the following bash script: /opt/local/bin/tag -a current {query} mv {query} '~/Dropbox/'
  41. 1 like
    v1.6 - per app configuration You can now specify custom configuration settings to fine tune menu listings for at an app level. Type ms into Alfred to get started. Here's the settings.txt config I use: # always show disabled menu items appFilters { app: "BibDesk" showDisabledMenuItems: true } # for Safari, ignore the History and Bookmarks # menus since loading it take a lot of time appFilters { app: "Safari" ignoreMenuPaths { path: "History" } ignoreMenuPaths { path: "Bookmarks" } } # For Finder alone, show the Apple menu entries, # and ignore any recent entries listed in the # Apple > Recent Items menu appFilters { app: "Finder" showAppleMenu: true ignoreMenuPaths { path: "Apple" path: "Recent Items" } }
  42. 1 like
    FWIW, I've added support for setting variables from Run Script actions to v1.26.
  43. 1 like
  44. 1 like
    How it works View a version with syntax highlighting. • Call it with a single argument at a time. • It checks if the argument is valid (i.e. if the script supports that tool). • If it does not, it fails and explains why. • If it does, it continues. • It checks if we already have the tool installed (including in /usr/local/bin/). • If we do, it checks if it was previously installed by this script or not. • If installed by this script, check how long since its last update. If longer than a defined period, update it. • If not installed by this script, leave it alone. • If we do not (have the tool installed), download it to Library/Application Support/Alfred 3/Workflow Data/com.vitorgalvao.alfred._sharedresources. • The full path to the tool is output. So we should call the script with whatever method we want and assign its result to a variable. Then, every time you want to call the tool use the referenced variable. Alternatives considered While writing this post, I though of an alternative method. Take all arguments and iterate on them to output a new PATH. That way we could even call the tools by their name afterwards. I played with it a bit and abandoned the idea. Changing the whole PATH could (unlikely but possible) cause weird behaviour between dependencies. Less relevant, needing to call the tool from a variable might be useful as a reminder when debugging. Notes I’m using ~/Library/Application Support/Alfred 3/Workflow Data/com.vitorgalvao.alfred._sharedresources (technically, {var:alfred_workflow_data}/com.vitorgalvao.alfred._sharedresources) because I do not yet know if this is a good idea or useful to anyone else. I don’t want to presume and clutter your Workflow data directory with something you have no idea where it came from. So for now it includes my bundle ID, making it recognisable. The leading _ should also help to clarify this is not from a Workflow named SharedResources. I’m sharing the method not only because it might be useful to someone else, but to extend it and gather feedback. I’m starting to use this in my Workflows and everything seems fine. But I’d still like to know if there are no objections to it. To me it sounds like a net win, but I might be missing something. Reasoning Bundling dependencies with Workflows makes for a better experience. It ensures users can start using our Workflows without fumbling with configurations or extra downloads. Many would have a hard time doing so. The tradeoff — a slight increase in size for the workflow — is mostly worth it. For most dependencies, whatever version we bundle at the time will be sufficient. They don’t tend to be updated all the time, and even if they are the version you included shouldn’t break on its own. If you ever need to update it, you do it and release a new version of the Workflow. There’s one notable exception to this rule: youtube-dl. It’s an incredibly popular and capable tool with constant releases. But if you want to include it in your Workflow you need to include a way to auto-update it1. You need this since what makes youtube-dl break are external factors; there’s no other option. A few of my Workflows use youtube-dl. Even though it’s not huge (≈1.5MBs), having a bunch of them with the exact same bundled tool, each one updating it at different times, is inelegant. It was from this use-case that _sharedresources was born. 1. Unless you want to go through the trouble of constantly releasing new Workflow versions.
  45. 1 like
    I've not heard the variation with the off-by-one error before. Even better. You're spot on about the bug report. Should really be in the Alfred-Workflow thread, but the library seems to "enjoy" assumed official status (possibly because of the name?) But that's by the by. You posted an exemplary issue, @Tony_Et. Took me less than a minute to identify the issue because you gave me everything I needed to do so. It's genuinely a pleasure to help posters like you, who make the effort to make it easy to help. It's also a big help with improving AW's documentation: You clearly tried to figure it out yourself first, but the information you needed was rather between the lines. Now I know what I need to clarify.
  46. 1 like
    Is it possible to create a snippet that includes an image, and/or different fonts? Ideally, I would like to create a snippet that inserts an image of my signature, followed by my address in smaller fonts.
  47. 1 like
    This isn't as nice as an integrated iOS keyboard, or even dedicated app... but I wanted access to my Alfred snippets (which I sync with Dropbox) on iOS too.... so I made a Workflow for it, which you can see and grab over at http://abednarz.net/alfred-dropbox-snippets.html
  48. 1 like
    Hi Stuart, Any chance you could provide some guidance on writing an integration for Hyper? Thanks! Sean
  49. 1 like
  50. 1 like
    Ah brilliant thanks. Totally missed seeing that when I was hunting about