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


  • 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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 139 results

  1. This is a limit imposed by UNIX, not Alfred, but the error message shown is slightly confusing, and there should be a way to overcome this issue. Right now, selecting more than exactly 260527 characters on my system and using it in an Alfred workflow (with the Argument:'selection in OS X' setting) as "{query}" will throw an error. You can see your system's bash argument character limit with: getconf ARG_MAX Alfred should allow a way to pass the selection as stdin instead of a quoted and escaped string, otherwise there is no way around this hard limit, and Line-Counting workflows, etc. are useless for larger bodies of text. ^ Confusing error message when selecting too much text. ^ A workflow example that would trigger this. echo "{query}" > .wordcount echo "Characters: "$(wc -m < .wordcount)" Words: "$(wc -w < .wordcount)" Lines: "$(wc -l < .wordcount) rm .wordcount
  2. Hi, A lot of workflows are not working when being used behind a proxy. After some debugging it seems that you are just passing the proxy value from the system preferences, alas this will not work with a lot of languages and programs as the correct format for the http_proxy and https_proxy environment variables includes the protocol like so: http_proxy=http://username:password@proxy:port https_proxy=http://username:password@proxy:port And for the system proxy to work, only an ip or a hostname can be specified. I don't know of any way that you can obtain the correct protocol prefix from the system. Prefixing with http:// should work in most(but not all) cases as most proxies are run on a non secure port. If you can't find a way to get the prefix from the system, then you have to connect to the proxy and detect it there. -- Best regards, David Jack Wange Olrik <david@olrik.dk> http://david.olrik.dk GnuPG fingerprint 4171 FCB3 EE86 6A03 B436 5AED 5F41 087D 7AB1 A4B5 ["The first rule of Perl club is You do not talk about Perl club"] Using v2.5.1 (308)
  3. Good Morning. Long time Alfred User/new poster on the forums. I greatly appreciate all the hard work workflow dev's provide to give us fantastic tools. I did have a request if you can point me in the right direction. Is there a workflow to quickly disable/enable location services in OS X Yosemite? That would be very useful. Thanks in advance!!
  4. Hi, Does anyone know of a workflow that can quickly bring up a list of shortcuts for a variety of applications? Just as reference would be enough. Or does anyone have ideas for creating such a workflow in Alfred? Thanks, Ryan Edit: Just realized this might be better suited in the questions and help forum
  5. The Format ** This will be an evolving document. Check here for updates and new documentation. ** There is also an XML format example available in Alfred 2 preferences. To see it, open Alfred Preferences, navigate to Workflows. Click the + i nthe bottom right corner of the installed workflows list, select Examples->Script Filter XML format. Result feedback is generated by returning an XML string back to Alfred from a Script Filter item in your Workflow. Script Filters are the only way to pass feedback to Alfred. The following is an example XML string that would be returned to Alfred. <?xml version="1.0"?> <items> <item uid="rdioartist" arg="r96664" valid="yes" autocomplete="Incubus"> <title>Incubus</title> <subtitle>Artist</subtitle> <icon>rdio-artist.png</icon> </item> <item uid="albumart" arg="/Users/user/Documents/album.jpg" type="file"> <title>Incubus Album Art</title> <subtitle>Album Art for Science</subtitle> <icon type="filetype">public.jpeg</icon> </item> </items> Results will be returned as a list of "items", with each one being an "item" inside. Each item has several arguments and pieces of information associated with it. Item Attributes uid (optional in Alfred 2.0.3+) The uid attribute is a value that is used to help Alfred learn about your results. You know that Alfred learns based on the items you use the most. That same mechanism can be used in feedback results. Give your results a unique identifier and Alfred will learn which ones you use the most and prioritize them by moving them up in the result list. As of Alfred 2.0.3, this attribute is now optional. If no uid is provided, Alfred will simply generate a UUID. This will allow you to maintain a specific order of generated feedback. Previously, the uid (if not unique for each result) would be added to Alfred's knowledge and would be prioritized in later executions. arg The arg attribute is the value that is passed to the next portion of the workflow when the result item is selected in the Alfred results list. So if you pressed enter on the sample item above, the value 'r96664' would be passed to a shell script, applescript, or any of the other Action items. type The type attribute allows you to specify what type of result you are generating. Currently, the only value available for this attribute is file. This will allow you to specify that the feedback item is a file and allows you to use Result Actions on the feedback item. valid ( optional - Defaults to 'yes' ) The valid attribute allows you to specify whether or not the result item is a "valid", actionable item. Valid values for this attribute are 'yes' or 'no'. By setting a result's valid attribute to 'no', the item won't be actioned when this item is selected and you press Return. This allows you to provide result items that are only for information or for help in auto completing information (See autocomplete flag below). autocomplete ( optional - Only available when valid = no ) The autocomplete attribute is only used when the valid attribute has been set to 'no'. When attempting to action an item that has the valid attribute set to 'no' and an autocomplete value is specified, the autocomplete value is inserted into the Alfred window. When using this attribute, the arg attribute is ignored. Elements title The title element is the value that is shown in large text as the title for the result item. This is the main text/title shown in the results list. subtitle The subtitle element is the value shown under the title in the results list. When performing normal searches within Alfred, this is the area where you would normally see the file path. icon ( optional - If not icon value is available, the icon will be blank. If the icon element is not present, a folder icon will be used ) The icon element allows you to specify the icon to use for your result item. This can be a file located in your workflow directory, an icon of a file type on your local machine, or the icon of a specific file on your system. To use the icons of a specific file type or another folder/file, you must provide a type attribute to the icon item. Example: <icon type="fileicon">/Applications</icon> - Use the icon associated to /Applications Example: <icon type="filetype">public.folder</icon> - Use the public.folder (default folder) icon
  6. Proposed Feature: Provide a default argument that will be used in place of a query in the event that no query is provided. Rationale: In my particular use case, I have workflows that are mapped to urls, with the keywords representing unique customer identifiers within local/qa/production environments. For example: app.ourdomain.com/feature/{query}/some/path I'd like to have a single workflow that would populate the customerID field with a default value if no query is provided (the ID i'm working w/ 90% of the time), but that would still respect queries when they are used. Possible Implementation: Possibly something like: app.ourdomain.com/feature/{query|1234}/some/path
  7. hey guys! I don't usually ever make videos like this, but this app for OSX users is just too incredible in every way possible .. it has literally changed everything, and I truly feel that this is the future of computing. also went ahead and uploaded all my favorite "workflows" to dropbox and attached the link in the description of the youtube page enjoy!
  8. Hey all Alfred lovers out there, After David Ferguson created the PHP Workflows class to help PHP gurus create complex workflows with ease, I decided to create an equivalent solution for AppleScript gurus, because let's face it: you can't really do with PHP (or other languages) what you can do with AppleScript in terms of controlling your Mac system and its apps. This library provides an object-oriented library of functions for working with plist settings files, reading and writing data to files, generating Alfred feedback results, requesting remote data, and more. But before you begin working with it, please make sure you read the documentation first as it contains vital information on how to use it, as well as help & examples (there's even an example AlfredWorkflow file that uses this library to show you how you can use it for your own workflows). P.S. at the moment the library lacks JSON support since AppleScript doesn't know anything about it, so until I develop a JSON parser for AppleScript you can either use David's PHP class or improvise on my work and keep an eye on the github repository because I will probably add more AlfredWorkflows, and hopefully I'll manage to make a proper JSON parser in the meantime.
  9. I've made more than one workflow where I wanted the ability to copy some text to the clipboard *or* open a URL in the browser (using an action modifier to trigger the URL case). In both cases, I start with a script filter, but what I want to copy to the clipboard is not the actual URL, but some different data. My script filter would like to send two pieces of information, and this is no problem to do just by concatenating them and adding a custom delimiter. The problem is that "Open URL" can only be an action and not an output. So because only one {query} is allowed, and "Open URL" has no parsing abilities (other than adding some static portions of the URL), I must past only the URL data through the query. This means that I cannot pass the rest of the data to the clipboard copy portion of the workflow. If only passing the URL, I'd basically need to duplicate the same code in the script filter. Of course it's not hard to write your own script to open a URL in the default browser (which is what I've done), but if "Open URL" could be an output (and not just an action) then it would actual be useful for these use cases. Example below is essentially what I'd prefer to do, instead I replace "Open URL" with a "Run Script" than handles the parsing and open URL functionality. I'd still need the "Run Script" anyway to parse the two-part query, but it could reuse the exact same script from the top "Run Script". Then I'd connect to "Open URL" on the far right if it was an output option.
  10. Hi there, I would like to share some workflows I have built. Play iTunes: pl [name|artist|album] Add Calendar Event cal meeting at 15 on 21 in shopping @Personal alarm 0 min 2 days Please, see my page: http://code.google.com/p/tox-alfred-workflows/ I am going to publish more. Thank you. Tox
  11. Let say I want to edit one of my workflows. I would like to be able to type the workflow's keyword/name, hit enter (or any key combination). It would open the workflow preferences in Alfred's preferences . It would make editing workflows easier and faster. What do you think?
  12. I'm familiar with many other solutions for automation including PHP, AutoHotKey, Quickeys, and other similar macro/scripting languages. But I can't for the life of me wrap my head around some seemingly simple things in Alfred, despite having had Powerpack for a few years now. How can one perform simple conditional logic to detect for instance if a particular application has focus? I would like to perform an action only when a particular app has focus, but use the same hotkey that is already assigned to bring that app into focus. This is specifically because I want to show/hide an application in Windows under Parallels, but these apps don't support the show/hide functionality already available in Alfred. I want my hotkey to bring the app into focus, and minimize its window if that app is already in focus. I can't even seem to use the same hotkey more than once in a workflow because if it is already assigned to something, then you can't type it in another hotkey module since it will instead execute the hotkey. Appreciate any help with this... thanks!
  13. In short, accessing workflows versions easily would be a great time-saver. 1°) When a workflow you use every day doesn't work anymore. It would help answer the questions "Do I have the latest version available? Does the version I have conflict with my OS, ..." 2°) Easier feedback to the workflow developer. So many times, one of the first questions of the developer is "Do you use the latest version of the workflow?/please update, reinstall it". 3°) Spare the time reinstalling a workflow when you already have the latest version available. Readme files are too often blank. One could add a form after the Bundle Id form. What do you think?
  14. - "Facebook Graph Search", At first I simply wanted to type "f" as a workflow shortcut and be able to search for contacts, pages to open in browser... But now with Graph Search it could go even further by typing "Photos of Contact Name"...etc - "Siri Answers style", Instead of talking to Siri I was wondering if it was possible to type questions in Alfred and get answers within Alfred like "what's the weather like?" "what's the capital of Australia?". I understand that this might require the "Siri intelligence" but I know Google started providing direct answers for queries (ex: if you type "capital of Australia" in Google you get "Canberra" on top of results) so maybe it's possible? - "Notifications", my last workflow wish would be a way to get my notifications displayed as a list in Alfred and selecting them would have the same consequence as clicking them in Notification Center. So for example if I had "n" as a workflow shortcut typing "n" would display that I got a mail and a reminder let's say, selecting the mail notification preview in Alfred and pressing "Enter" would launch Mail app and the mail in question. Anyway I love Alfred and I hope it will survive the Yosemite update with their new Spotlight! PS: I don't know anything about creation of workflows or understand how they work, but after years of usage I thought I'd ask
  15. All of my workflows that are requesting data from external resources don't get response. I think there is nothing wrong with the workflows, since their authors confirm that they're working. Workflows tested are: caniuse v1.3 (https://github.com/willfarrell/alfred-workflows#caniuse-download) Fahrplan (https://github.com/josefweibel/Public-Transport-Timetable-Alfred-Workflow | http://www.josefweibel.ch/alfred/fahrplan/) Leo Dictionary (https://github.com/psistorm/alfredapp) openthesaurus (https://github.com/widmr/workflows/tree/master/openthesaurus) Package Managers v1.25 (https://github.com/willfarrell/alfred-workflows#package-managers-download) At the time of writing, I redownloaded the latest version from all of them. When I type the shortcut for one of the workflows, for a very short time there's a loading indication ("Updating database...", "Retrieving data from..." or similar) but as soon as I'm typing my request it stops and looks like this: Is it possible to get an error log or something which could help me understand what's going on? Or does somebody has another clue? - Alfred v2.3 (264) - Mac OS X 10.9.3
  16. I love the way Matt Healy's Text Tools workflow looks, and I wanted a workflow to move selected finder items to a specific folder in the same way that you can create a new text file in his workflow. I don't know Applescript or shell script, but I do know how to grab pieces of code from other places and throw them at Applescript editor until something works. After several weeks of googling and throwing rotten apples at the wall, I've finally gotten the workflow to work. All you have to do is select the item you want in the Finder and type "move" and the name of the folder you want in Alfred. Then hit enter and voila! It moved! You can download the workflow here. Questions/comments/concerns/suggestions, please let me know! This is my first workflow and I have very little idea what I'm doing.
  17. I had just finished categorizing some workflows, and decided to rename the workflow. When I was done and I selected that category, it was empty. I selected one of the workflows I had just assigned to that category (previous to the renaming) and found it was "Uncategorised". Also, it'd be nice if one could create categories while in the Details view of a workflow, instead of having to get out of the workflow Details window and go to the search field.
  18. 1. Create a new Workflow 2. Add a new Terminal Command 3. Type quotes in the dialog box for the script RESULT: The quotes ("") are made into smart quotes, if your system is set to use them. Bash does not like smart quotes, and your script will fail. EXPECTED: This dialog should disable smart quotes, dashes and the like, as they are not appropriate for Bash scripts. Alfred Version: 2.2 OS X Version: 10.9.2
  19. Hi all, I've have some problems with determining the locals language in bash script in workflows in Alfred2. I'm on OSX 10.7.5 FR. My script : DATE=$(echo "{query}" | sed -e's/HAEC/CEST/g' -e's/HNEC/CET/g'); export LC_TIME="fr_FR.UTF-8"; date -jf "%d %B %Y %T %Z" "$DATE" "+%Y%m%d%H%M%S" I use it : Select a text date (i.e. : "18 décembre 2006 19:24:12 HNEC"), use my hotkey to launch Alfred2/Workflow/Bashscript Problem : Works • In Alfred2 when month has NO accented character (i.e. : "18 janvier 2006 19:24:12 HNEC") • In terminal as is with or without month with accented characters Does NOT work • In Alfred2 when month has accented character Note : I had to add 'export LC_TIME="fr_FR.UTF-8"' as I assume Alfred bash script works in EN. It didn't work with french dates even though my whole system is in french and it DOES work in terminal without the export command. Also, I had to "translate" HAEC and HNEC as date command doesn't understand this frenchified CEST and CET. Any ideas on how I can bypass this problem ? Is it a bug ? Thanks in advance ! Hubert
  20. When using a Terminal Action in a workflow, the Terminal app is started and the command run successfully. If, however, a new tab is started with cmd-T or through the Terminal "Shell" menu, the command that Alfred originally sent to Terminal is run again in the new tab. Cheers, -Ben
  21. Is it possible to restrict a hotkey to be active only when a particular application is in the foreground? The default implementation of hotkeys in Alfred's workflows causes all hotkeys to be 'global' in scope, which is to say that they work regardless of what application is running. For example, I'd like to run an apple script using the hotkey combination 'command+D' when Adobe Illustrator is in the foreground. Currently, setting this hotkey in Alfred achieves my purpose, however it also overrides the same hotkey combination in other apps that already use it, such as the 'duplicate' command in Finder. What I'd like is for 'command+D' to continue functioning as is when Finder is in the foreground, and make it run my apple script when Illustrator is in the foreground. Appreciate any feedback or ideas!
  22. WakeOnLan v1.1 https://dl.dropbox.com/u/677787/alfredworkflows/WakeOnLan2.alfredworkflow Now includes the possibility to automount a share after the NAS has been woken up. If you do not need this feature use 1.0 Credits for the Mounting part @malt3 on App.net WakeOnLan v1.0 https://dl.dropbox.com/u/677787/alfredworkflows/WakeOnLan.alfredworkflow WakeOnLan Python Workflow v1.0 Credits @dirkessl on App.net for helping me find the right Python-Script Original Python Script from: http://pastebin.com/3Zd9MvE1 *** IMPORTANT *** Edit the very end of the script with the MAC address of the device(s) you want to wake up. You may use more than one device, simply add another line Example: wake_on_lan('XX:XX:XX:XX:XX:XX') wake_on_lan('XX:XX:XX:XX:XX:XX')
  23. Hi all! So I'm finally getting around to doing my very own workflow programming and I've run into some weirdness creating a Workflow that Runs a Bash Script in Alfred v2. I've tested this bash script on the command line and it works a treat. In fact, most of the workflow works in Alfred but a couple of things are funky: When using \n inside my echo commands it literally prints \n instead of using a new line. I'd like to format my virtual hosts files as I have them now. It's even more critical for /etc/hosts where that needs to on a new line. When running the mysql logic - It doesn't create the database. It will, however, start MySQL which is something. Note I have tried to both make the commands sequential and used the && distinction. Neither works. The long and short of this is that basically I am creating a new local site on my stack. I create a directory, a virtual host entry, an /etc/hosts entry, and a MySQL database. Simple enough. I am sure this is due to my being very new to Alfred workflows. Probably something silly. Any help you can offer would be appreciated greatly. Interpreter is /bin/bash - All of the escapes are checked in the workflow window (Backslashes, Brackets, etc.) and the whole script looks like this... site="{query}" # Create a new directory mkdir ~/Sites/$site # Create a new entry in the Apache virtual hosts file. echo "\n<VirtualHost *:80>" >> ~/Sites/httpd-vhosts.conf echo " ServerName $site.localhost" >> ~/Sites/httpd-vhosts.conf echo " DocumentRoot \"/Users/ksilanskas/Sites/$site\"" >> ~/Sites/httpd-vhosts.conf echo " ErrorLog \"/Users/ksilanskas/Sites/Logs/$site-errors.log\"" >> ~/Sites/httpd-vhosts.conf echo "</VirtualHost>" >> ~/Sites/httpd-vhosts.conf # Ensure MySQL is running and then create the database. mysql.server start >> /dev/null && echo "CREATE DATABASE $site" | mysql -u root -proot >> /dev/null # Add an entry to the /etc/hosts file and restart Apache osascript -e "do shell script \"sudo echo ' $site.localhost' >> /etc/hosts && sudo apachectl restart >/dev/null\" with administrator privileges" Thanks again! P.S. To prove I did a little searching... I did find this but it didn't look like a complete topic... http://www.alfredforum.com/topic/879-create-mysql-database-from-script-action/?hl=mysql - I'd prefer to just stick with using command line on this one if possible.
  24. I found out last night that my MBA HDD has been recalled so I'm going to have to get it replaced. While I have TimeMachine Backups I wanted to use this opportunity to have a fresh start with things such as my Ruby installation and basically have a good clean up of my machine, so I don't really want to restore a backup to the new HDD. Does anyone know of a way to export all my Alfred settings and my workflows, then import them onto the new HDD in a single process? I'm aware that I can sync the settings to a folder in Dropbox (or a similar service) and sync them onto another machine, which I would assume would sort the settings out on the new HDD. However it appears the only way to export workflows in individually then re-import them all on the new HDD. Is there a way to do it in bulk? I have quite a lot... Any help would be grand, and if it's not possible a new feature in Alfred for this could be worth the implementation? It would also work as a way of syncing everything in your Alfred setup between machines, all I think needs to happen is the existing settings sync to be extended to include workflows...
  25. Now that I have more than 200 workflows + assigned a keyboard shortcut to as many of them as I could, my keyboard might look like a weapon of massive destruction if not properly used (ie. closing a 40+ opened tabs in background window in Google Chrome ). I really like the Alfred's system commands confirmation windows. So, I would really like one object/object option that would let me add an "ask for confirmation" step so that I would really be aware of what I am doing. What do you think?
  • Create New...