Search the Community

Showing results for tags 'workflow'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media


  • New Features
  • Other

Found 585 results

  1. DJ Pedro - Create iTunes playlist based on similar artists (Updated 10/11/2015 - Fix for broken API links) This workflow uses the API for "similar artists" to create and play a playlist based on either the artist of the currently playing song or an artist searched for within the local iTunes Library. The workflow does not require that you use, it only pulls information from their database using their API. (i.e., no scrobbling required.) DJ Pedro now lives on the wonderful Packal repository. The best reason for you to get this version is that Packal will handle tracking any future updates so you no longer need to watch this thread. Get the Packal version here The workflow is triggered by a hotkey or the keyword "dj", and if an argument is added the workflow searches your iTunes library for artists that match the query. NEW: I added a couple Alfred Remote triggers to the workflow, the best one allows you to create a DJ Pedro playlist from anywhere in your house via the currently playing iTunes track. This is a feature I have wanted since originally creating the workflow. :-) You can add the individual trigger(s) to your own custom Remote page or use the DJ Pedro Remote Page. It's fairly minimal at the moment, but I'm considering adding a Favorites feature since we can't yet type directly into an Alfred window via the remote. NEW: If you use my and/or Discogs workflows you can now trigger those from results in DJ Pedro's Suggested Artist list using modifier keys. I tend to think that's pretty sweet. Settings for the workflow can be modified by triggering the "djprefs" script filter. Available modifications are: Playlist name Number of tracks in the created playlist Search limit for 'similar artists' the workflow requests from Maximum tracks per artist added to the playlist. Enable/disable the notification that lists any artists suggested by that were not found in your Library. Credits/Acknowledgments: Much of the script for displaying artists and their artwork was borrowed from the great "Play Song" workflow, by "caleb531", which you should download if you don't have it yet. Additional scripting was improved by using the qWorkflow library developed by "ursanrazvan". Yes, DJ Pedro is named after our cat. Notes: This workflow creates a folder in your iTunes folder called "Alfred Album Artwork" for easy access to album artwork icons. This folder should be extremely small and is easily deleted if you delete the workflow. Known/Possible Issues: Because of the way iTunes 11 handles playlists, there's a pause/un-pause coded into DJ Pedro at the start of playback. If Apple ever provides a better way to deal with Up Next, besides GUI scripting, I'll update this. I'm an amateur coder, so please be kind to my messy code, etc. Constructive criticism is greatly appreciated! I hope this workflow helps you enjoy your music a little bit more.
  2. Create temporary email inboxes via Teleosaurs Mail or Forward Cat. Call any option with tmpmail. Quick email: Create a temporary email address and open a background tab with the corresponding inbox. The address will be copied to your clipboard. Supported browsers: Safari; Safari Technology Preview; Webkit; Google Chrome; Google Chrome Canary; Chromium. Forwarding email: Create a temporary email address that forwards to your real one. This requires you set up forwarding_email. The address will be copied to your clipboard. With any of the options, giving it an argument will try to use that specific name, while leavng it blank will create a random address. Download | Source
  3. I am builing my first workflow that i wan tto make public available. Therefor I need it to have an auto update function, because i want to be able to have extre features implemented in the future. But, I am new to prgramming and github. But found an interesting article about this But I have no idea where to do this configuration shizzle: Anyone here that knows how to do this and can help me out?
  4. Download videos from a plethora of video sources, even when embedded to other pages. Copy a link to your clipboard, run dv, and you’re done. The workflow will show you a notification when it starts downloading and another when finished. If you have WatchList you’ll see an option to automatically add the downloaded video to your watchlist. Run with the ⌘ modifier, and the full playlist the video is part of will be downloaded. To see the download progress, run dvp. It will auto-refresh the progress. Actioning it with the ⌘ modifier will restart the current download (adding it to the back of the queue), while actioning with ⌃ will abort the current download. You can also run :downvidservices to install (or later remove, running the same command) DownVid actions to macOS Services. What this means is wherever you find a URL, you’ll be able to right click it and start the download right from the context menu. The two Workflow Environment Variables represent the directories (relative to your home) where videos will download to. Download | Source If on Alfred 2, download this one. Works well with WatchList
  5. IMPORTANT NOTE ABOUT HANGING PROCESSES ON SIERRA (2017-04-03) Versions of Alfred-Workflow older than 1.25 cannot launch background processes properly on Sierra. In fact, they regularly hang quite dramatically and consume 100% CPU Users (in particular) affected by this bug should install and run this workflow, which can find and fix any workflows with broken versions of Alfred-Workflow. -- Alfred-Workflow (for Python) GitHub | Documentation A state-of-the-art Python library for Workflow developers. Being about a year late to the party, I've taken the opportunity to steal all the best ideas from other libraries and circumnavigate the bad ones, combining a plentitude of goodness into a library for the best language for Workflows (Python, natch). The library is simple to install, has no external dependencies, is very well-documented and maintained, and boasts an eye-wateringly high feature-to-size ratio at just 140 KB. Main features Catches, logs and notifies users (and developers) of errors in Workflows. No more confusing, silent failure. Super-simple, yet powerful data caching (e.g. from a web service) and storage. Easy-to-use storage of Workflow settings. Keychain access for secure storage (and cross-machine syncing) of sensitive data, like passwords and API keys. Tunable and understandable Alfred-like fuzzy search (e.g. got matches Game of Thrones as well as Baby Got Back. Or not: that's up to you.) Now with solid support for multi-word queries. Extremely lightweight, but full-featured, HTTP library with Requests-like interface, but just 12 KB instead of > 2 MB. Convenient access to standard OS X icons, for high-quality, familiar icons without adding size to the library. Also available via proper English. Pre-configured, built-in logging to enable simpler Workflow debugging. Painlessly run (update) scripts in the background without blocking your workflow, so you can still show "old" results while fetching new ones. Supports Alfred's new (version 2.3) modifier-specific subtitles. Simple support for 3rd-party libraries your Workflow relies on. "Magic" arguments to make developing/debugging Workflows so much easier, especially when helping less technically-inclined users. With "magic" arguments, you and your Workflow's users can open the Workflow's log file in, its cache and data directories in Finder, and its root directory in Finder or Terminal from the comfort of Alfred's query box. You can also delete the cache/data/settings if something is corrupted. Your workflow can update itself via GitHub releases. Accent-folding, so you can search non-ASCII text (e.g. voilà will be matched by voila) Functions to support migrating settings/data from older versions of your workflow. Well supported and kept up-to-date with Alfred's features as they are added. Alfred 3-only features Workflow variables Advanced modifiers Alfred 3-only updates Re-run Script Filters And as you can see from the above links, there is extensive documentation, including a two-part tutorial on building a Workflow from scratch. Examples Here are a few examples of how you can do some pretty cools stuff in just a few lines of code. A simple Workflow I made to search Packal in ~90 lines of code. A simple Workflow to search your recent Pinboard posts in ~50 lines of code. A polished, user-friendly, wicked-fast Workflow to search your recent Pinboard posts in ~200 lines of code. Remember, each of these Workflows also has—for free—full error-catching and -logging support, and the ability to open its log file (which contains all errors) via Alfred's query box. No need to ask users to grub around in ~/Library or flounder in Terminal here. This is not the Workflow library 2014 deserves, but it's the one it needs Selected workflows based on Alfred-Workflow ZotQuery, by Stephen Margheim, and one of the hottest Workflows on the forum. Gmail Client for Alfred by Fabio Niephaus. See the forum thread. Convert by me. Convert between units offline. See the forum thread. And dozens more. Testimonials — me — Stephen * = might be taken a wee bit out of context Feedback If you have any bug reports/feature requests, add them either here or on GitHub. More info The documentation is the definitive source of information on the Alfred-Workflow library. The User Manual and Tutorial provide fairly extensive information both on how to use Alfred-Workflow and write Workflows in general (if you're new to this lark).
  6. First, thanks for the app that makes life so much easier! When I'm creating new workflows, it would be great to be able to see when two inputs are aligned in the canvas. It may sound silly request, but I think the visual design of workflows really helps people understand how they work. The current grid snapping helps, but if alignment guides appeared when things are aligned and/or evenly spaced, a la Pages or Keynote, would be super helpful and make all our Workflows that much better. I added a screenshot with what alignment guides might look like just for reference Thanks!
  7. I developed a fairly robust workflow for Asana. Its main purpose is to allow for the fastest possible adding of tasks. You can read more about it and the instructions for its use on my site: And you can download the workflow here: There are also instructions in the workflow Readme. It has fairly comprehensive error handling, but if you find any bugs, please let me know! Credit to David Ferguson for his workflow PHP class, without which I probably couldn't have pulled this off.
  8. ALFRED TODOIST WORKFLOW Add and search Todoist tasks straight from Alfred. It uses Todoist v7 API. Prerequisites For this workflow to work you need version 3.x of Alfred and a powerpack licence. For adding projects or labels to a new task and for searching for a task, the project uses use Node.js. If you want these features, an installation command is provided. Installation Download and import workflow. For updates use the t:update command. Add Tasks Alfred command todo {task}, {date}, {project} Example: todo Get things done, tomorrow @ 9, work Example: todo Build tree house #home !!2 @15min, tomorrow @ 9 * #project @label and !!priority will be parsed from anywhere in the text Task Can be any string as long as there are no comma's in it. Markdown in the string will be parsed (in the Todoist app), but anything else won't. Date See the Todoist documentation for supported date formats. Project* Add task to an existing project. If no project is selected the task will be added to your inbox. Use either the hashtag notation #project (preferred) or the comma-separated 3rd {project} argument. Project names are case insensitive and (for now) can't contain any whitespace characters. Labels* You can add labels to your tasks using the @ character. Label names are case insensitive and can't contain any whitespace characters. Priority A number between 1 and 4, where 1 is the lowest and 4 would be the highest priority. * Relies on node.js to work Search and Browse Tasks Alfred command todos {query} Query Any search query one character or longer. Uses fuzzy search to find the tasks. Example: todos car => returns (because of fuzzy search): Rent car New cat recipe's Cut Gras tomorrow Configuration Some magic will happen when you run the t command, like creation of files and refreshing of todoist data cache. Other than that use it to configure the workflow. Alfred commands t:token {api token} (no default) Example: t:token 2d2e2a334c5f36e7a7c43b46e t:language {language} (default: en) Example: t:language nl t:items {max list items} (default: 9) Example: t:items 9 t:update Example: t:update t:node Example: t:node Token* Your Todoist api token, get it from Todoist Preferences => Account => API-token (should be 40 characters) Language This is relevant for parsing date strings ('tomorrow @ 9pm', in en). Valid languages are: en, da, pl, zh, ko, de, pt, ja, it, fr, sv, ru, es, nl. Max Items to Show This parameter limits the amount of tasks shown when using the todo command. Node.js is required for listing todos Check for updates Checks current version against latest online version and download if a newer version is available. Node.js Node.js is required for listing todo's. Working with JSON API's in batch is no fun and the JavaScript force is strong in my, yet none of the other forces (ruby, PHP, python etc.) are. If you decide you want this feature there is an install function included. This will install Node.js as well as a package manager called Homebrew to install Node (all other ways of installing node require admin permissions or leave files on your computer). This has the added benefit of making it easy to uninstall as well. Example: t:nodejs => ENTER Uninstall Node (terminal): brew uninstall node Uninstall Homebrew (terminal): ruby -e "$(curl -fsSL" * Required Changelog View CHANGELOG License The MIT License (MIT) Copyright (c) 2017 Martien Oranje Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  9. Use the thesaurus service provided by to get synonyms and antonyms to words. To set up, get an API key and set it in the Workflow Environment Variables. You can then check for synonyms and antonyms by calling syn or ant followed by a space and the word you wish to check against. Alternatively, select a word and press the shortcut you defined to get the results. Pressing ↩ on a word will paste it to the front most app, which is useful when writing a text and want to change a word in place. Download | Source
  10. Check and correct spelling in various languages. There are six configurable keyboard shortcuts, but you’ll typically need to setup only between one and three. Select a word and press a shortcut — the first one will show you the word following Alfred’s spell keyword, so you’ll have a set of words to pick from for the substitution (to have it automatically switch the word in this case, you’ll need to set it up in Alfred’s preferences under Features → Dictionary). The following five will immediately replace the word with the best suggestion (using the After the Deadline service). Download | Source
  11. If you regularly need to set the same files or directory structures somewhere, say a set of prebuilt scripts and template files for certain types of regular projects, this workflow is meant to make your life easier. It can take files, directory structures, and even URLs, and set them up as templates that’ll be copied over to your frontmost Finder window (if you’re using Path Finder, it will be used instead). Files and directory structures will be copied, and urls will be downloaded when requested (so you always get the latest version). Templates are kept in Alfred’s Workflow data directory by default, but can be saved anywhere else by setting the custom_templates_dir Workflow Environment Variable. Any path you set will be relative to your home directory. Use this method to easily set up syncing. If you have a template that consists of a directory, you can place inside it an executable script with the name starting as _templatesmanagerscript. (the extension will be your pick), to be executed automatically after copying. It has a lot of options and you’ll likely use most of them, so I’ll fire through them succinctly: Add to TemplatesManager [File Action] — Add a file or directory to your local templates. tml (TemplatesManagerList) [Script Filter] — Show a list of your local templates. Type to sort with your query. Press ↩ to copy the selected one to your frontmost Finder window. tml (with ⌘) — If the selected template is a directory, instead of copying the directory itself, copy what’s inside it. tml (with ⌥) — Delete your template. tme (TemplatesManagerEdit) [Keyword] — Open the templates directory so you can add, remove, and edit them manually. rtml (RemoteTemplatesManagerList) [Script Filter] — Show a list of your remote templates (download name and url). Type to sort with your query. Press ↩ on the selected one to download the file to your frontmost Finder window. rtml (with ⌘) — Paste contents of template file, instead of downloading it. rtml (with ⌥) — Remove the url from your remote templates list. rtme (RemoteTemplatesManagerEdit) [Keyword] — Open the remote templates urls file in a text editor so you can add, remove, and edit them manually. rtma (RemoteTemplatesManagerAdd) [Keyword] — takes the URL in your clipboard and adds it to your remote templates list. Download | Source
  12. Prevent your computer from going to sleep. Uses caffeinate under the hood, so no third-party apps are required. Type coffee to turn it on. Action it with ⌥ to also prevent display from going to sleep. If you give it a value it’ll be active only for that amount of time. It defaults to minutes, but will also understand seconds and hours. Run coffee again to manually turn it off. Download | Source
  13. Following the footsteps of PingPong, here’s a two-player game for Alfred. TurnShoot is a game where you try to react faster than your opponent. By default player 1 uses q and player 2 uses p, due to the position of both keys on a typical QWERTY keyboard. If you’d like to change these, do so on the Workflow Environment Variables. Download | Source
  14. Clean clutter from URLs such as all sorts of utm_ variants and subdomains like m. for mobile sites. Copy a link to your clipboard and call lc in Alfred. The clean link will both be copied to your clipboard and pasted to your frontmost app. The option for shortened links will also work on long URLs. This option, however, takes a bit longer since it needs to first make a call to expand it into its longer form, which is why there are two options — if you have a long link and pick that option, it’ll be way faster (and does not require internet connectivity). Download | Source
  15. Upload to directly from Alfred. Pick paths to upload via the Upload file File Action. Directories and multiple paths will be zipped prior to upload. You can check your upload progress with ufp. It will auto-refresh the progress. Press ⌘↩ to cancel the transfer. You’ll get notifications of the various phases, with a sound when it’s complete (or canceled). The download URL will be copied to your clipboard. Donwload | Source
  16. Provides both a File Action to run shell commands on selected files/directories and a Keyword to run them on the current directory. It will detect your default shell, and if it’s bash, zsh, tcsh, csh, or fish, it’ll load the appropriate startup files and your aliases. For the File Action, use Alfred to pick what you want to run a command on and choose Run command. Alfred’s main window will appear and you simply type the command you want. For the Keyword, type . followed by a command. A space between the period and the command is not necessary. This will run the command on the active Finder window (e.g. .touch this_file). You can also easily chain commands (.cd Desktop && rm that_file). For commands that would benefit from the files not being at the end (like cp and mv), you can use {} as a placeholder for the files. So if you select some files and want to copy them to ~/Desktop/ you’d type cp {} ~/Desktop/. To get the output of the command as Large Type, use ⌘ when actioning it. Download | Source
  17. Hi Folks, nearly every time I have to connect to my companies VPN I need the samba shares, as well. So I decided to automate connecting to VPN and mounting the shares. It is so boring to do that by hand every time. In march, I wrote about that in my blog (only German language). At that time I didn't know about Alfred and I started the apple scripts with the software Butler or with a double-click. Meanwhile I only use Alfred to automate the things on my Mac. I build a workflow to connect our VPN and samba shares. An it works like a charm ! The workflow I created looks that way: The scripts are still apple scripts, but I tried to make them more easy. To use them, simply open the scripts in Alfred and change the defined variables to your individual settings. It is well commented (in English, so all of us can use it, not only Germans) The connect script needs a couple of simple variables, the disconnect script only two. Credits: The part of connecting to the VPN appears first on, a site that doesn't exist anymore. Feel free to give me feedback or change everything you need in the workflow. Remember, it s my first workflow and script in apple script. Maybe you have an idea to put all the stuff in one script. You can download the initial version of the workflow out of my dropbox: Happy connecting ;-) Kind Regards U. Ivens P.S.: You also can find an article about that workflow in my Blog.
  18. Hi everyone, Based on my day to day workflow, I'll need to open multiples files from different location like Dropbox, Google drive, local folder, links at the same time. Been doing this repeatedly and I thought workflow might be able to fasten the process. I manage to open all the files that I need (which is great✨) but now what's missing is that I can't seem to merge them directly from workflow, I have to go window > merge all window. (which I have created a shortcut for it) Anyone knows how to do it?
  19. Run browser bookmarklets from Alfred, without needing to having them installed in the browser itself. Note that on Safari, Safari Tehcnology Preview, and Webkit, you need to Allow JavaScript from Apple Events under the Develop menu, which you can enable under the Advanced tab on the browser’s preferences. 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
  20. OneUpdater is an updater you can plug with minimal configuration into workflows, to keep them up-to-date in users’ machines. Easiest way to use it is to copy one of its OneUpdater nodes (the pink ones, with the note) to another workflow. If the workflow actions anything (you press ↩ at some point during usage), copy the top node (Run Script). Connect it to the most used action and double click to edit it. Fill the top variables with the correct values, and you’re done. If the workflow doesn’t action anything (Script Filters with no connections), copy the bottom node (Script Filter). Double click to edit it. Make its Keyowrd the same as the most used in the workflow, fill the top variables with the correct values, and you’re done. The top lines (the ones that need changing) have comments explaining what they mean and some example values, but here’s an overview with a real example, from a version of ShortFilms: readonly remote_info_plist='' readonly workflow_url='' readonly workflow_type='workflow' readonly frequency_check='15' remote_info_plist is the URL to this workflow’s up-to-date info.plist on a server. When checking for updates (in this case every 15 days, the number in frequency_check), the workflow version in that file will be compared to the one in the local workflow. If they differ, the code will continue. If workflow_type is set to workflow, workflow_url will be treated as the direct URL to a .alfredworkflow; it will be downloaded and opened. If workflow_type is set to page, workflow_url will be treated as a webpage and opened in the default browser. For it to work you need only update the workflow version in the configuration sheet (which should be done anyway). When any update happens, the user will be informed via a notification. It will be delivered by one of (in order and stopping at the first it finds) notificator, terminal-notifier, or plain AppleScript-called notification. Download | Source
  21. Hello, Just purchased powerpack license and was wondering how to create workflow with keywords to pause and resume dropbox syncing?
  22. Output info from videos from a plethora of video sources, even when embedded in other pages. Copy a link to your clipboard, run vidur and pick your verbosity level. It’ll output the video’s link with its duration and optionally its title and description. Download | Source
  23. Stream from a selection of short films, powered by Short of the Week. Run shorts and it’ll download and show a list of the latest films. Pick one and it’ll start streaming. Alternatively, use ⌘ to download the video (requires DownVid and will automatically add to WatchList if available), ⌥ to see its synopsis, or ⌃ to copy the short’s link to the clipboard. Short of the Week publishes a new short every day and building the initial list takes a few seconds, so after the initial download the list is cached for one day. If you want the list ready at all times without having to wait, run :shortfilmslaunchd to install (or later remove, running the same command) a launchd service to seamlessly update the list every day close to the time Short of the Week updates their website. Streaming is done with either mpv or vlc, depending on what you have (mpv takes precedence). Download | Source
  24. Even though a native solution exists, it suffers from a big flaw: it right-clicks where you cursor is, not what you’re selecting. This workflow (or gist, if you prefer it as a Service) addresses that limitation. Starting with Mavericks, it only works inside Finder windows, not on the Desktop. Download | Source
  25. Select some text, press the keyboard shortcut, and it’ll convert it to a QR Code that’ll be opened with QuickLook. Download | Source