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. I have a number of VPN accounts that I need to log in and out of throughout the day, so I thought I would create a workflow where I could type "vpn" and then have Alfred show a list of VPN's I could choose from. The list of choices would come from an AppleScript something like this: tell application "System Events" set np to network preferences get name of every service of np whose kind is 12 end tell This seems like a job from a Script Filter using osascript, but I can't find any information on what that AppleScript should return to get Alfred to display the list of results. It says "The custom filter must return results in a specific order. See the documentation for more information." Unfortunately, I can't find any such documentation. Any guidance on how to do this? Thanks, Rob
  2. This is best explained with an example: The Amazon Suggest and Google Suggest workflows work fine on fast internet connections. On a slow connection however, it can take a noticable amount of time to load the suggestions. To make those Workflows more usable, i tried to alter them to output the input value as first feedback item, and do that before any connection is even made. The problem now is, that the output of a script is only read once, when the script finished executing. This python script: import time xml = """ <items> <item uid="0" arg="~/Desktop" valid="YES" autocomplete="Desktop" type="file"> <title>Desktop0</title> <subtitle>~/Desktop</subtitle> <icon type="fileicon">~/Desktop</icon> </item> """ print(xml) time.sleep(5) xml = """ <item uid="0" arg="~/Desktop" valid="NO" autocomplete="Desktop" type="file"> <title>Desktop1</title> <subtitle>~/Desktop</subtitle> <icon type="fileicon">~/Desktop</icon> </item> <item uid="0" arg="~/Desktop" valid="YES" autocomplete="Desktop2" type="file"> <title>Desktop2</title> <subtitle>~/Desktop</subtitle> <icon type="fileicon">~/Desktop</icon> </item> </items> """ print(xml) outputs all items, but does so only after 5 seconds, while i think the expected behaviour would be to output the first item immediately, and then the other ones after 5 seconds. A related problem I have is that when a script outputs multiple <items> groups, only the first one is processed. If Alfred would only read the last one, and combined with the previous problem, a script could also change feedback items while it is running.
  3. 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)
  4. Hi, I have a pretty noob question. I am trying to hack around with some of the workflows that I have seen in the community and make a few of my own. I am having trouble adding workflows that I have modified to Alfred. I have been zipping them up and then adding the .alfredworkflow extension to them, and when I double click them alfred opens but the workflow is not added. Any help would be appreciated.
  5. I have my workflows hosted on GitHub, you can check them out and submit pull requests with any changes you think would be good. https://github.com/cwagdev/AlfredWorkflows
  6. I use zsh as my primary shell and have added a few crucial directories to $PATH in my ~/.zshenv: - $HOME/.rvm/bin (allows use of rvm ruby) - /usr/local/bin (Homebrew binaries) - /usr/local/mysql/bin (mysql executable) - a personal scripts directory This prevents me from needing to specify absolute paths in many of my scripts. As far as I know, bash lacks a file that is automatically sourced for scripts (non-interactive shells); instead you need to set the BASH_ENV environment variable to point to such a file. I'd like to avoid setting this in all of my Alfred bash scripts, so typically I just run `zsh -c "PATHTOMYSCRIPT ARGS"` for Alfred workflows. This is just a hoop I have to jump through though, and it would be nice if /usr/bin/zsh were added directly to the language list.
  7. 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
  8. NOTE: This workflow has not been updated to work with Alfred 3.0 and above, and is known to cause issues. Use at your own risk. ---- Keep all the miscellaneous crap off your Desktop by sweeping everything into a "DeskDrawer" folder, which is easily accessible from our good friend Alfred. Download DeskDrawer v1.5 [updated 25 March 2014] Okay, the idea is not completely original — I've used apps like DesktopTidy and Unclutter to achieve this, but it's amazing how simple it is to replicate the basic concept with an Alfred workflow. This is your "DeskDrawer" in Alfred (keyword "drawer", default hotkey Shift-Cmd-D). From there you can: search the list (just start typing) open an item (select it) move it back to your Desktop (option-select) reveal it in DeskDrawer/Finder (cmd-select) browse/open it in Alfred (ctrl-select) for further action. Move item to the Trash (fn-select) [NEW in 1.3] There is a file action, "Move to DeskDrawer" (as well as the keyword "move") for quickly flicking items into the Drawer. There is also the keyword "sweep" to scoop all your Desktop items into DeskDrawer in one hit. And finally, "deskrestore" will dump the contents of your DeskDrawer back on the Desktop in all its messy glory. You can also undo your last file/folder movement with the "unmove" keyword. [New in v1.5] And now you can protect certain items on your Desktop from being moved during a sweep, with either the File Action "Protect from DeskDrawer Sweep" or the keyword "protect". (Reverse this with the File Action "UnProtect from DeskDrawer Sweep" or keyword "unprotect".) [New in v1.5] And finally, for full documentation, use the keyword "deskdrawer help". [New in v1.5] I don't about the rest of you, but I like to keep my Desktop as clutter-free as possible (unlike my IRL desktop! ), so having this capability in Alfred is great. Let me know what you think, or any bugs you find. Features I'd still like to add: The ability to "protect" certain files from the "sweep" and "deskrestore" actions. [DONE in v1.5] Be able to specify the location of your DeskDrawer folder. [DONE in v1.2] Any requests? UPDATE: 1 April 2013 - v1.3 New action: "fn-select" item to Trash it. Consolidated and tidied up workflow setup panel. Support for Alleyoop auto-updater Minor cosmetic tweaks. UPDATE: 2 April 2013 - v1.4 New keyword: "move" — moves selected items to Drawer (same as the file action, but you just enter it in Alfred's main window — some people seem to prefer this approach.) UPDATE: 25 March 2014 - v1.5 New icon for DeskDrawer folder (to fit in with OS X custom folder look). DeskDrawer is now allowed on the Desktop itself. “Undo” function to reverse the last “Move” to DeskDrawer or Sweep. “Protect” specified Desktop items from being moved to the DeskDrawer during Sweeps. Fix for XML-illegal characters in filenames. More icons. Removed AlleyOop updater support. Default DeskDrawer location is now Home folder. Local documentation (keyword: deskdrawer help) Miscellaneous minor tweaks and fixes.
  9. I use Elements for a lot of little note taking stuff on iOS, and having a dedicated filter for it in Alfred makes it easy to pull up those docs on my Macs. Simple, yet effective. Elements Workflow / File Filter
  10. It'd be great to allow workflow updates/bug fixes through some kind of built-in update system. It should check a repository master branch for new commits (on GitHub for example), and pull if there's any - or at least give the user the option to. Currently you have to keep an eye on every workflow developers' blog/twitter account to get notified about updates. An app that does something like this is Sublime Text 2's unofficial package manager called "Package Control".
  11. I made a couple of workflows: PHP functions php {query} Shows function description in subtext, enter will bring you to php.net for full documentation. Download: http://cl.ly/MHVj Drupal API d {query} Shows Drupal 7 functions available with query, enter brings you to api.drupal.org. d6 {query} d7 {query} d8 {query} Shows Drupal X functions available with query, enter brings you to api.drupal.org. Download: http://cl.ly/MAzw Purge Memory free Purges and frees up memory. (hotkey ctrl+alt+cmd+m can also be used) Download: http://cl.ly/MBc6 The PHP and Drupal workflows are highly based on "Google Auto Complete" by David Ferguson. Cheers.
  12. A way to customise the results returned from a file search e.g: Access to the returned xml and a way to pass this to a script filter Access to the Alfred search api which could be used directly from a script filter (I'm currently using a scripted Spotlight search which works, but I presume Alfred does some of his own indexing/other optimisations of the search) Thanks Tom
  13. That's something I felt the need for with v1 already, now that what used to be Hotkeys in v1 also are Workflows, I'd appreciate an option to group Workflows in folders even more. In v1, I currently have 41 extensions installed and 18 hotkeys configured, which would sum up to 59 items in the Workflow sidebar in v2. That's quite a list to scroll. Apart from having these sorted alphabetically, I'd love to be able to put them into groups/folders, e.g. one for extensions covering aspects of my private life, one for professional tasks, a group for my own extensions, another for extensions I have under development, or even extensions that are specific to clients of mine (e.g. extension triggering client-specific build-/deployment tasks).
  14. 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
×
×
  • Create New...