Jump to content

Search the Community

Showing results for tags 'Workflows'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Categories

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 139 results

  1. Hi folks. I'm totally new to scripting and was trying to create a script that turns on Do Not Disturb for a set number of seconds and then turns it off. The number of seconds would be passed in as an Alfred argument. I have the script mostly done and working, but the last part is figuring out how to pass in the argument. Can someone please help me? Here's what I have so far: on run argv delay 3 tell application "System Events" option key down delay 0.1 tell application process "SystemUIServer" try tell (every menu bar whose title of menu bar item 1 contains "Notification") click (1st menu bar item whose title contains "Notification") end tell end try end tell option key up end tell delay ****[the argument from Alfred]**** tell application "System Events" option key down delay 0.1 tell application process "SystemUIServer" try tell (every menu bar whose title of menu bar item 1 contains "Notification") click (1st menu bar item whose title contains "Notification") end tell end try end tell option key up end tell end run Any help would be greatly appreciated! Thank you!
  2. Hey Folks, Sorry in advance if this isn't the place for V3 workflow tips (and sorry if discussing V3 stuff, here, before public release is poor manners!). I am trying to have the following as a workflow: Filter file types (e.g. search only PDFs or only .skim notes or only .mmd files) Search for text within files of that type (e.g. search for 'justice' within only PDFs, or within only .skim notes) ​(So long as we're talking dream workflow, here, it would also be nice to filter multiply e.g. Search only in [.skim notes] with [tag=Aristotle' AND 'Nussbaum] for [query=justice]...) I know I can do 'in {query}' to search within files, and I know I can do file filters to search for specific file types, but I don't know how to chain the two so as to search within specific file types. I gather that Alfred V3 should be able to accomplish this (some kind of dynamic file search?), but I'm at a bit of a loss as to how to do it. Would I do a file filter, and pass off the entire result-list of files of that type to the next filter as a JSON utility? Or is this a bit outside the scope of what workflows are supposed to accomplish? Thanks! Caleb
  3. tl;dr: A new Alfred workflow to launch Zapier workflows from your keyboard. Ever wanted a quicker way to add data to your web apps? Say you get an email from a potential customer, and you want to add them as a new lead to your CRM. You have to copy their email address, open your CRM app in your browser, find your Lead page, open the Add Lead page, and finally paste in the info. Or if you wanted to find more details about a contact—perhaps to see what products they've bought from your store, or their last email to your support team, or the notes you wrote about your last call with them—you'd need to open a handful of other apps and search in each one manually. Personally, I wanted a simpler way to send template emails. I wanted to enter a contact's name in Alfred and have it find details about the contact in address book, then make a new draft email to them. That's why I made this Zapier for Alfred workflow. Zapier's to web apps what Alfred is to your Mac—it connects 750+ web apps (including Evernote, Salesforce, Shopify, Gmail, PayPal, and much more) so you can build workflows and automate tasks. And with Zapier for Alfred, you can start those workflows from your Mac's keyboard. Everyone will have a different use case, but the core workflow works the same. You'll make a Zapier workflow, and connect it to your Zapier for Alfred workflow in Alfred. Then, to run it, you'll enter some text into Alfred, and this workflow will send it to your Zap to kick off the online workflow you made. Then you can get the results back to your Mac in a Pushbullet notification, email, Dropbox file, or even an SMS message in Messages. Download Zapier for Alfred here, or check out our launch blog post for more details. Looking forward to hearing how you use Zapier with Alfred!
  4. How do I set up a workflow to choose a specific contact in Contacts and send that person a message via the Messages app? (Akin to how Alfred allows a user to email a specific contact.) I started a new workflow that launches the Messages app, and I tried to add a Contact Action, but that doesn't exactly work: Contact Action comes before, rather than after, Messages -- and I want Messages to start first and enable a specific contact to be used as the input. I welcome advice and suggestions. Thanks!
  5. Ok, I've put off moving past Alfred v1 for years because Workflows looked like an elephant gun when all I needed was a flyswatter. But I'm building out a new Mac from scratch, so thought I'd catch up and bite the bullet. All I really want is to assign hotkeys to apps. I used the Workflow template "Launch file group from hotkey," which I assumed I'd need to do once for each app, and just create "file groups" of one app each. But it looks like you're supposed to be able to set up a bunch of these inside of a single workflow: https://www.alfredapp.com/help/workflows/triggers/hotkey/creating-a-hotkey-workflow/ The problem: The instructions refer to and show a + icon in the upper right corner of the workflow panel that I don't see. I will try to resist voicing the cascade of frustrations that the UX for what must surely be a common task is so oblique, though I really hope Alfred gets some UX design help. But can anyone enlighten me on how I can set up hot keys for apps in the way the help page indicates I should be able to? Thanks!
  6. It would be very nice if, instead of only being able to use the context menu, we could also use a keyboard shortcut to quickly access the 'Edit Details' for Workflow components (and groups).
  7. I found myself often converting hours & minutes to a decimal format when creating invoices. This workflow simply does that calculation and copies it to the clipboard. Type in the keyword, then hours:minutes to get that amount of time in decimal (rounded to the nearest hundredth). For example, 6 hours and 38 minutes: dtime 6:38 Copies 6.63 to clipboard. http://static.etling.com/assets/decimal_time_workflow.zip
  8. This tutorial is aimed at Alfred 2. Alfred 3 allows you to connect one Script Filter to another, so these workarounds are not necessary. (They might still be interesting, however.) [added 2017-03-20 by deanishe] Provided below is a workflow that provides a demonstration of how to reuse a single script filter or, how to chain multiple script filters together so that you can create the illusion of having multiple steps or allow you to further refine results from the first script filter, using the second. Demo 1 This demo shows how you can use AppleScript to call the next step (another script filter) after the first script filter has completed. This could be used to send the value of the first script filter into the second, or, you could just save the values to file and then read them all back in when you are done. This example will save the value to file. Demo 2 This demo shows how you can reuse a single script filter using autocompletion to separate multiple inputs with a delimiter. When the filter completes, you could then use that delimiter to split the string into its multiple parts. This works really well if your input data is numeric or short strings. Demo 3 This demo shows how you can reuse a single script filter, with AppleScript to provide multiple inputs/steps to the end user.The data entered by the user is saved to file in each step, then read in and appended together at the end. You could separate the final output with a delimiter and pass it on to something else if you wanted. There are many ways that this could be customized to your liking. Change the delimiters, how values are passed, etc. This thread is merely meant to provide examples of how this could be accomplished for those interested. Download the demo workflow here.
  9. When an object in a workflow outputs valid configuration JSON, this will be applied similarly to the JSON Config object in the workflow editor. Unfortunately, this seems to apply to all objects, including keyword inputs and the like, meaning that if valid configuration JSON is typed into any workflow keyword input, the workflow will not work as expected. This can be easily reproduced by creating a workflow similar to the one shown below and typing the following text into Alfred: To break the intended functionality: test { "alfredworkflow" : {} } To actually manipulate the workflow: test { "alfredworkflow" : { "config" : { "title" : "Title", "text" : "Text (this should not be possible)" } } } I am using Alfred v3.3.1 [806] on macOS 10.12.3. This could easily be fixed by adding a checkbox specifying whether the output of the object should be interpreted as configuration.
  10. *************** Please see new thread ****************** Alfred already has the ability to search in many different contexts due to the versatility of workflows, and this is great. The downside is that the more workflows that you have, the more Alfred starts to lose part of its initial appeal as being a quick way to search everything in one place. For example, I'd like my pinboard bookmarks to always show up in my default results since they have equal importance to me as the files on my computer. This is just one example of many. Two possible features that could help: Allow workflow results to be included in the default search. Allow items be passed between workflows, to easily combine them into "meta-workflows" and reduce the total number of searches you have. I understand this is a performance risk, but I don't have the technical knowledge yet to understand exactly how to solve that. I'm grateful that a conversation has already been started in another thread about this, and I think we should continue it here and work together to find the best solution. In response to one part of that conversation, @Andrew said: And @deanishe responded: I think @deanishe is on to something important. Thank you for considering.
  11. I use Alfred as my main clipboard history tool, and it's very handy for re-pasting something I recently copied, and then copied over. However, it's a clunky process to open the clipboard history -- is there any way to make it accessible from within the Alfred main window, so I can select clippings via a Cmd+number combo?
  12. Installed Sierra last night. None of my workflows are working anymore. Is there a compatibility issue?
  13. I have updated my description of how I use Karabiner in combination with different workflows and keyboard maestro macros. I think it's insanely powerful in combination. Perhaps some will find this idea interesting and would like to implement something like that too on their machines, the only current requirement is being on El Captain as this software is being rewritten for Sierra still and is thus not compatible. The most amazing thing though is that there really is no longer a barrier to adding a new hotkey. I don't have to twist my hands. I don't have to try and remember the shortcuts as first, I use them daily, and secondly, I can map my hotkeys naturally into their appropriate sections. Ultimately I am always two keypresses away from everything that I can dream of doing. And if you don't find this idea interesting, you can just see what workflows I personally use and love and there are many of them. P.S. I hope it is okay that I share links to the workflows like that, if any author takes offence in how I present this information, I am willing to take down the links. I am also currently in process of trying to understand how to use either awgo or alfred-workflow library to write a goodreads and quora search with autosuggestions workflows so I hope I can share those some time later.
  14. It would be nice to have an easy way to access the clipboard in a workflow. It's not that hard using script actions, but it would be nice to have an utility for that. I would suggest to add dynamic placeholders to the "Args and Vars" utility. This way we could not only access the clipboard with "{clipboard}" but also combine it with the current query or easily use date objects.
  15. Is there a way to call a script from a snippet or inversely trigger a workflow with a snippet?
  16. Currently, if a workflow extends beyond the bottom of the editor window in Alfred Preferences, it's only possible to scroll as far down as the bottom edge of the lowest element. This makes it mildly tricky to add an element beneath that (i.e. start a new row). You have to create it somewhere in the middle of your existing elements, then drag it down into position. It'd be helpful if Alfred allowed you to scroll down about a row's worth of pixels beyond the bottom of the lowest element, so you can create elements where you want them. It's a fairly minor thing, but if it's easy to implement, I think it would improve the workflow-building experience a wee bit.
  17. A significant problem in adding Alfred 3 features to my workflows is that Alfred-Workflow's update mechanism, which is based on GitHub releases and used by scores of workflows, has no way to tell if a workflow is Alfred 2 compatible or not. Either there's a release with a higher version number containing an .alfredworkflow file or there isn't. That's how GitHub releases work. Developers currently have 2 options to prevent their updated-for-Alfred-3 workflows trying to break themselves in Alfred 2: Start a new repo Mangle the release in some way that older library versions ignore it No. 1 is not a popular solution for obvious reasons. With option 2, you can either mess up the tag (version number) to something that isn't a valid semver, but contains one, like "a3v1.0.1", or you change the file extension of the upload to something that isn't .alfredworkflow. Changing the file extension involves deliberately breaking the fewest things, so that's currently the preferred solution, and it's the one I'm going to go with. The library will rename the file after download if need be. The problem then is that anyone who downloads the file directly from the releases page then won't be able to install it without first changing the extension. That seems to be the least evil on offer, however, and it would be awesome if Alfred 3 "blessed" this behaviour by adding support from an additional, Alfred-3-only file extension. Alfred 2 apparently also has issues with installing workflows it shouldn't because it doesn't support them. A v3-only file extension could head off issues in that direction much more simply that heaps of logic in Alfred 2 to figure out if it's about to overwrite a functioning workflow with a newer, but incompatible, version. In the above-linked GitHub issue, Shawn goes further and says Alfred 3 should use a different extension by default (i.e. if I export a workflow from Alfred 3, it gets a different extension) to provide "a consistent visible indication to the user that a workflow is only for Alfred 3". Certainly a valid point, but it not one I came here to push, as I'd be happy with an "everything works and nothing is broken" solution to the problem as laid out above. (It would also allow parallel Alfred-2 and -3 workflows in the same GitHub release, not that this strikes me as a particularly compelling reason.)
  18. Update: This doesn't work anymore, not sure if it is Mavericks or not, but regardless I've created a completely rewritten python version of the extension which you can download here http://goo.gl/uhzK7I . It is just as hacky as the original version of the extension and uses a deprecated API from Google that is currently being aggressively rate-limited, which all goes to say this may stop working at any time. Enjoy! ------------------------------------------------------------------------------------------------------------------------------ Here's a hacky attempt at my first workflow. It is a google search workflow that lists results from google as you type. It probably needs a bit more work, but is pretty cool. I used the google-search gem and https://github.com/canadaduane/alfred2-ruby-framework in addition to some code from the Google Autocomplete plugin written in ruby by Ted Wise. I've only tested it on my Mac, so let me know if it breaks on yours. Here's the link: http://goo.gl/ufg81 (see new version posted above)
  19. Hi everyone, Trying to have Alfred trigger one of my workflows by searching, not by a hotkey combination. Eg: do a regular Alfred search for for "asdg" => trigger workflow X. Is this possible? Thanks a bunch!
  20. I love Alfred but I struggled at first to troubleshoot my workflow scripts due to difficulty finding a way to debug. I've seen posts mentioning writing logs to an external file but that seemed hack-y, especially since Alfred includes a debug console. If you'd like to use the console to debug your scripts, I found the following very useful. It would be great if there were a mention of this in the docs: To show script output in the debug console, print (or echo or put, etc) the output to stderr instead of stdout. In a Bash script: >&2 echo "Log this output to the console" In a Python script: import sys sys.stderr.write("Log this to the console") For other languages, look for an equivalent method that allows you to log to stderr.
  21. I am in the process of creating an Alfred 3 workflow that uses a list filter option and the chosen option is passed into the script filter So typing the first keyword umb triggers the list filter, where the user can choose from all, forum, documentation or packages After choosing this option the user presses enter and then types in their search query which passes the query into the script filter which queries an API using a CURL script with BASH to return JSON What I would like to achieve is the following, that a user types in umb forum followed immediately by the search query so umb forum inserting images so this allows users to choose what Here is a quick gif of what I am trying to describe http://cl.ly/061V3L3p2v0w Current Workflow, if anyone is able to download it & provide any help or pointers would be fantastic http://cl.ly/0k0l1f441f2s Cheers, Warren
  22. I'm not 100% sure whether this qualifies as a bug rather than a feature request, but this seems the best place to post about it: When using the file filter input in a workflow, it would be super handy to have it show previews and file info the way it does in the file navigator like this: Also, if animated gifs could actually animate in the preview as well, that would be *amazing*!
  23. I know that it's all the rage in 2016 not to document products and rely on inefficient, inaccurate, poorly-written user forums to document a product. But in Alfred's case, I think it's a big mistake. From what I can gather, Workflows are quite powerful. And indeed, you've expanded them significantly in Alfred 3. But for those of us who aren't currently programmers, the documentation is virtually nonexistent, so we just don't use them. There's one overview page saying "here's what trigger/input/output are." Then the next pages are getting into bash script construction, instantly dropping to the level of discussing variables and control structures. But for those of us who aren't bash programmers, who don't understand what workflows do beneath the covers, how variables are used, etc. I think Alfred could be boosted to even higher success if people really understood and could access its power. But I'm a power user and I can't figure out how to access its power with a modest level of investment. I doubt other non-power users are able to either.
  24. I often find myself wanting to research the last thing I just searched on Alfred. So I thought it would be cool if I could open up my previous search using a keyboard shortcut. I guess it would kind of be like the inbuilt 'Previous path' where, if you are in file navigation, you can open your last path.
  25. Hi all, I installed Maverick today morning, I made a clean install. Now I would like to find my workflows files on the clone of my old system (ML) to put on my new one. Where can I find these workflows files ? Thank you for your help.
×
×
  • Create New...